NEVER WRITE CODE LIKE THIS | 5 Most Common Mistakes

  Рет қаралды 18,185

Internet Made Coder

Internet Made Coder

Күн бұрын

Пікірлер: 48
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
Join Showwcase, the social network built for developers - www.showwcase.com?referralToken=x0jj4ve6f8q
@elonfc
@elonfc 2 жыл бұрын
Your videos always finds a top place in my KZbin home feed, and that why I'm here just 5 minutes after, loved to watch your video. Keep doing:)
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
Legend!!
@vamsichikkam
@vamsichikkam 2 жыл бұрын
Thanks a lot... You are helping me in learning new and correcting my mistakes in codes.
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
Happy to help
@BlazeTheCatMan
@BlazeTheCatMan 8 ай бұрын
here are things that i learned on my own! 1 i already knew not to short name variables instead i always named them based off of what they do cuz i never liked people actually naming them short 2 i was repeating myself in code until i found out or realized that i could use the for i in range or for item in items for loop! 3 for cleaner code! if something i write works!? then i will keep it that way until i figure out or discover a shorter better way to write it! like for example the for loop or for i in range! and ill go and change it! 4 for the weird names that look like people just hit there keys! i never name my variables like this cuz i find it weird or hard to understand! i always believed in being descriptive when it comes to naming stuff
@EgoCheap
@EgoCheap 2 жыл бұрын
Another great video dude. Very helpful
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
Glad you think so!
@rajajunaidf
@rajajunaidf 2 жыл бұрын
He always do great work! appreciated you! 🙂👍
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
Thank you 👍
@alexandrinamehandzhiyska6947
@alexandrinamehandzhiyska6947 2 жыл бұрын
Thanks for the video! I believe it's really helpful for beginners. Regarding the code you started explaining at 2:56 - for lines 15 to 17, wouldn't it be cleaner if we removed the ternary operators? They seem redundant as we know that .endswith already returns a boolean. So we're basically receiving a boolean and then re-converting it to the same data type with the same value? I believe it would be more readable to just write is_correct_type = data.name.endswith('wav') or data.name.endswith('mp4').
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
oh yes you are absolutely right! That would be even better indeed!
@mattgriffiths4
@mattgriffiths4 2 жыл бұрын
What VS code theme is this? Really looking for a new theme that highlights key words clearly...
@atlanticx100
@atlanticx100 2 жыл бұрын
Comments are king. Pain in the ## to write but a saver to you and your team hunting bugs.
@beingkentechke
@beingkentechke 2 жыл бұрын
viewing this awesome video 20 minutes after being uploaded.. keep up the good work
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
🔥
@raj-cr4nl
@raj-cr4nl 2 жыл бұрын
Great vid
@CallousCoder
@CallousCoder Жыл бұрын
Argument 1 “write code people or team understands” is lowering the bar to the weakest link in the team. An example, we had some Python (ugghhhh) scripts that had about a million transactions, it gotten a bit slow so I wrote a dispatcher that send every other request to another node. And I wrote: if i & 1 == 0: mq.Publish(node1, record[i]) else: mq.Publish(node2, record[i]) My colleague didn’t understand the logical and. I explained him that’s basically the same as a modulo 2 == 0 except it’s fast because it doesn’t do the divide and in a shitty language like Python modulo is slow! He changed the code to writing modulo because it was more understandable and the next day we didn’t meet the delivery time because the code ran 10 times slower 😂 Something I knew and had tested empirically. Same for example with
@InternetMadeCoder
@InternetMadeCoder Жыл бұрын
Great points
@kiwingist2856
@kiwingist2856 2 жыл бұрын
amazing stuff
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
🔥🔥🔥
@LiveKitchenDinu
@LiveKitchenDinu 2 жыл бұрын
I have to develop time prediction system for bus route. I don't have enough knowledge to do it. Plzzz help me about AI and how to do it with Google API..🔥🔥🔥
@PakistanIcecream000
@PakistanIcecream000 2 жыл бұрын
what are the software tools you use to do the coding?
@mattgriffiths4
@mattgriffiths4 2 жыл бұрын
With Tip 2, I have tried the code out for myself (as below) and get this error "local variable 'sum' referenced before assignment" - can someone explain please? transactions = [203, 408, 23, 6, 87] sum = 0 def sum_of_transactions(transactions): for eachItem in transactions: sum += eachItem sum_of_transactions(transactions)
@mattgriffiths4
@mattgriffiths4 2 жыл бұрын
After much googling, I defined sum as global so it was not just in the function scope and that seems to work. Is this the best way of accomplishing this task?
@jadeisip8360
@jadeisip8360 2 жыл бұрын
you can also just put the 'sum' variable inside the function.
@linamondal9727
@linamondal9727 2 жыл бұрын
Can you make a complete course on javascript???
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
I’m more a Python guy these days :(
@linamondal9727
@linamondal9727 2 жыл бұрын
Ok
@blindmanaction6201
@blindmanaction6201 Жыл бұрын
Is showcase free?
@ericng8807
@ericng8807 2 жыл бұрын
That long if-statement actually isn't too bad imo lol
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
Haha I guess it’s not the worst example
@d.r1775
@d.r1775 2 жыл бұрын
Do you have any guide to start with python?
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
I made a video on this
@karvapatel2998
@karvapatel2998 2 жыл бұрын
What are you doing now in computer science?
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
Nand to Tetris, it's a course on computer systems / building a computer from scratch
@lyricsaroundmusic4693
@lyricsaroundmusic4693 2 жыл бұрын
Which one is best... Ztm or cs50 Pick one
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
cs50. But that one is only an introductory course, ZTM is what you can continue with after.
@lyricsaroundmusic4693
@lyricsaroundmusic4693 2 жыл бұрын
@@InternetMadeCoder thankyou and is it good to only stick with ztm after cs50?
@ConradLiebers
@ConradLiebers 2 жыл бұрын
How to I get job as coder?
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
get good
@iam3130
@iam3130 2 жыл бұрын
Basically I want to become a software developer and I taken admission in college for that but I am not able to pay for both, I can just pay my fees of college and so I am not able to buy a laptop for atleast 3 years, 🥺 bro can you please donate me your any old laptop , I want a laptop for coding. Please help me if possible, means alot for ♥️
@abdoue4865
@abdoue4865 2 жыл бұрын
Also you can add comments to the start of each code so people can understand what are you doing without need to understand the language
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
ah good point, I should have done that!
@Brlitzkreig
@Brlitzkreig 2 жыл бұрын
Oh Darling you're code is sooo filthy!
@InternetMadeCoder
@InternetMadeCoder 2 жыл бұрын
oh yes indeed.
@nisatstays
@nisatstays 2 жыл бұрын
Stop using annoying sidecam
I Coded a Bot to Find me a Girlfriend
15:58
Internet Made Coder
Рет қаралды 28 М.
Simple Strategies to Learn Coding Faster
14:24
Internet Made Coder
Рет қаралды 33 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 326 М.
5 Coding Projects (from beginner to advanced)
18:10
ForrestKnight
Рет қаралды 307 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,7 МЛН
How to Remember Everything You Read
26:12
Justin Sung
Рет қаралды 3,8 МЛН
I Was Learning to Code WRONG - Don't Make This Mistake..
9:38
Internet Made Coder
Рет қаралды 21 М.
PYTHON vs JAVASCRIPT // What I Would Choose as a Beginner…
12:48
Internet Made Coder
Рет қаралды 334 М.
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 647 М.
How I Study SMARTER, Not HARDER (my secret hacks)
9:13
Internet Made Coder
Рет қаралды 54 М.
ADHD Is a Curse… Until You Learn This
17:34
ADHDVision
Рет қаралды 804 М.
Stop Doing this as a React Developer
12:27
CoderOne
Рет қаралды 165 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН