8 Mistakes Beginner Programmers Make

Sdílet
Vložit
  • čas přidán 1. 07. 2024
  • Instagram: / keep_on_coding
    Discord: / discord
    Become a Member: czcams.com/users/keeponcoding...
    -----------------------------------------------------------------------------------
    Business Inquiries: contact@keeponcoding.org
    My Gear: amazon.com/shop/keeponcoding
    -----------------------------------------------------------------------------------
    #keeponcoding #tech #programming
    Intro: 0:00
    1 0:43
    2 2:08
    3 2:59
    4 3:55
    5 4:53
    6 6:04
    7 6:38
    8 7:48
  • Věda a technologie

Komentáře • 91

  • @KeepOnCoding
    @KeepOnCoding  Před 2 lety +81

    Would you like to see a part 2?

  • @jimb6554
    @jimb6554 Před 2 lety +6

    For those who like to read ahead
    1. Using Bad (abbreviated-non-obvious) Variable Names = Confusing/Cryptic/Less Readable
    2. Not Backing up Code/not using Source Version Control/ and not pushing to a Remote Repository = Losing your Work
    3. Inconsistent Formatting ("Curly Bracket on the same line convention" in one section combined w/"Curly Bracket on the next line" in another) = Confusing
    4. Adding Code You "Might Need" Later but definitely not right Now = Confusing/It'll be treated as sacred & immutable by others even when still not needed
    5. Getting Stuck in Tutorial H**L = You'll be Entering into an Infinite Loop while Gaining Zero Hands on Experience
    6. Not testing Code Often/Periodically = Can't Find where the logical errors are located
    7. Hard-coding Magic Numbers or Strings(literals) = Less Readable/can get Buggy/Hard to keep track if same value is used in multiple places
    8. Commenting Out Large Blocks of Code = similar to #4 && adds clutter plus if you follow #2, you'll be able to look up what you need

  • @DemetriPanici
    @DemetriPanici Před 2 lety +32

    Love the overall aesthetic of your channel and setup man! Great stuff!

  • @pottomzola
    @pottomzola Před 2 lety +28

    My suggestion would be to invest time into setting up your IDE, learning shortcuts, customize preferences, save actions etc. Can save you a lot of time and improve quality of life and code. On the other hand, it can be a pain to set it up after a wipe.

    • @FridayParanormal
      @FridayParanormal Před 2 lety +1

      More IDEs need a function to export these settings. Just for this reason. One could also share a good setup to friends this way.

    • @bayrock1337
      @bayrock1337 Před 2 lety

      Write yourself some scripts that help setup your environment! That way you can easily deploy it on multiple machines.

  • @NaudVanDalen
    @NaudVanDalen Před 2 lety +16

    X and Y are for math only, so if you're programming some math equations, you can use them. Otherwise I'm always specific.

  • @enjintft
    @enjintft Před 2 lety +2

    Spot on! All mistakes I made when I started. And those things seem small but avoiding them makes you such a better developer!

  • @privileged6453
    @privileged6453 Před 2 lety +35

    The mistake I see happening often: Not using already existing libraries to do tasks. Writing your own library with exact functionality can be very useful, but if you're writing mundane functions like Logging, requests, io etc then these tasks are almost certainly available in a library that someone else has already written

    • @wordonice4457
      @wordonice4457 Před 2 lety +3

      This is so true. I remember as a young engineer, I had this obsession with proving myself to my peers and superior, and one of the ways I did that was trying to "reinvent the wheel". Stuff that I could do with a library, I preferred writing them myself so they could see how "awesome" I was. Man... Well, I'm all grown now!

  • @marshallross
    @marshallross Před 2 lety +2

    This was great! I've watched so many of these "mistakes programmers make" videos but this one is different and specific. I really learned a few things here!

  • @Mohamed_Ismail91
    @Mohamed_Ismail91 Před 2 lety +1

    I like the new camera angle thing. Keep it up Sam!

  • @TetaroSeth
    @TetaroSeth Před 2 lety +1

    Great video! Awesome reminders

  • @spade6774
    @spade6774 Před 2 lety +1

    Part 2 love your work and effort ;)

  • @marcosotavionovais5618
    @marcosotavionovais5618 Před 2 lety +4

    It’s great when you notice that you don’t commit these mistakes anymore and you realize that you are evolving

  • @murtajiz545
    @murtajiz545 Před 2 lety

    Best programming channel on CZcams currently. Always a pleasure seeing that notification in my sub box! Keep striving Sam.

  • @Kato-eg4ef
    @Kato-eg4ef Před 2 lety

    Thank you. This helped with organising my code and avoiding bad habits

  • @Lthe1
    @Lthe1 Před 2 lety

    number 7 actually helped me get past a mental block i was having, so thank you for that!

  • @tanishtyagi1301
    @tanishtyagi1301 Před 2 lety +2

    definitely forget to test my code often - have been working on it over the years, but still need to work on testing WAY more often.

  • @matthewcolfer4280
    @matthewcolfer4280 Před 2 lety +2

    I've been programming for about a year and following your channel for most of that time and honestly videos like these are great. I'm in my first software dev role now and small videos outlining basics like this can be nice boosts to know I'm doing some of the small things right. Thanks for all the time you put into this channel, would love to see part 2!

  • @mehtibaby
    @mehtibaby Před 2 lety +1

    Keep on making these types of videos brother !

  • @TCW_Consulting
    @TCW_Consulting Před 2 lety

    Cheers man - some good points to remember! Documenting my journey on CZcams, just posted my first programme video haha. I’m sure I’ll look back in a year and be embarrassed 😄

  • @hamza582
    @hamza582 Před 2 lety

    Good advice. Thanks man

  • @princessportsassociation5958

    Love the video, you're one of my motivation to keep on coding, but I still feel like I can't do anything tangible on my own and rely on docs or videos to give me ideas on how to implement anything, is that a bad thing and if so please can you explain how I can overcome it. With love from Nigeria.

  • @iq0578
    @iq0578 Před 2 lety +3

    We want a part 2!

  • @prsmahajan
    @prsmahajan Před 2 lety +1

    We have been missing your videos since a while👀

  • @rhinoTube
    @rhinoTube Před 2 lety

    Do a part two and also common coding mistakes of intermediate coders!

  • @Moukeaf
    @Moukeaf Před 2 lety +2

    Mistake i'm currently doing and that goes into your "backing-up your code" : Not commiting enough.
    Commit a lot. Even if your team has some standards about commits (Squash exists), makes a lot of small commits. And when you deliver your feature, squash them into some meaningful commits. Commits should tell a story.

  • @NaudVanDalen
    @NaudVanDalen Před 2 lety +1

    Sometimes I get these really long variable names because I don't know what to call it or because it looks similar to different variables. Like $users meaning the amount of users or an array with users. Luckily in that case, naming is simple and you can just add "amount" or "number" or "sum" to it and "list" or "array" to the other variable.

  • @StarRoseAngelic
    @StarRoseAngelic Před 2 lety

    Thank you for the helpful vid! Btw Do you work for Disney? If so can you give insight into the interview process? I feel like developers only talk about interviews when it concerns FAANG but not other companies.

  • @NaudVanDalen
    @NaudVanDalen Před 2 lety +1

    In the past I didn't use source control, but instead copied the entire folder every day I worked. Needless to say, it was a disaster. I couldn't check what's changed at all and it takes more space. Especially when using some large third party folder full of megabytes of stuff since my own website code is only a few dozen kb. I ended up using git to commit all of those changes later on. It was day by day based instead of issue by issue, so I either did multiple things a day or some got spread out between days. Very messy. I definitely learned from that and used git from day 1 with other projects.

  • @FridayParanormal
    @FridayParanormal Před 2 lety

    I do the whole commenting out blocks of code thing until the final revision (all in arduino), but then save it to a txt file or remove entirely so the code is not so cluttered. Or if it's needed for other functions someone may need because of hardware change, I'll leave it in.

  • @wwijsman
    @wwijsman Před 2 lety

    Dumb mistakes I've made are making a pull request without properly testing the code, forgetting to keep my list with dependencies needed to install the software up-to-date and forgetting to commit the code when it was still working.

  • @rainyonrecord
    @rainyonrecord Před 2 lety

    A common mistake I have made was actually when I was doing web design for some company I would always forget to specify the main html file as index.html and yeah let’s just say this was a long term problem and I did not keep the job for long..
    Edit; I moved to backend development and I’m working with c++ at the moment and it’s quite enjoyable not going to lie though I wish my company would switch to rust as it can do everything that c++ could do in our use case

  • @ares106
    @ares106 Před 2 lety +1

    part 2 Please!

  • @hassanfarhat7604
    @hassanfarhat7604 Před 2 lety +3

    I'm going back to school for CS. As a beginner, I know right off the bat I caught myself trying to learn multiple languages after really only understanding the fundamentals of a single language. Example, I grasped the concepts of Python really well, and tried to jumping straight into Java right after that; EVEN knowing damn well that I still had a lot of learning and questions bc I have not mastered or written much code with Python. With that said, understanding the syntax is very different from the implementation of the language in problem solving or creating projects in code.

    • @uscjake868
      @uscjake868 Před 2 lety +1

      Funny. I did java and then python. Python was so easy that I blew through writing a basic program for it since it has a lot less syntax nuance. I have mastered nothing, but it does feel satisfying to have made a functional GUI program faster with python.

  • @pepperino-hotterino
    @pepperino-hotterino Před rokem

    getting the debugger in my IDE running

  • @marcalistaircoffi
    @marcalistaircoffi Před 2 lety +3

    I felt attacked when you talked about turtorials, It helps me realised that I need to actually code on my own😅

  • @AxleWack
    @AxleWack Před 2 lety

    Not sure its mentioned in the comments yet, but at around 7:40 (magic numbers), you could use an enum as well, which will be even better than the public variables you used in your sample code. But, I am sure you knew this, as you are not doing a tutorial :)

  • @-Corvo_Attano
    @-Corvo_Attano Před 2 lety +1

    I will rectify my mistakes thank you:)

  • @antobenedetti6464
    @antobenedetti6464 Před 2 lety +1

    part 2 !

  • @chunkymonkey2285
    @chunkymonkey2285 Před 2 lety

    what is an efficient way to put my coding skills to practice, in order to get better?

  • @Juzzyjuzzy
    @Juzzyjuzzy Před 2 lety

    excellent video.

  • @adybydy50
    @adybydy50 Před rokem

    My mistake which i still kind of do but not that often, is bad commit messages

  • @urban_borders_6934
    @urban_borders_6934 Před 2 lety

    Now this is quality content

  • @adipurnomo5683
    @adipurnomo5683 Před 2 lety

    Nice bro

  • @LemmonTea
    @LemmonTea Před 2 lety

    For my variable names I normally abbreviate what the variable is for.

  • @yd742
    @yd742 Před 2 lety

    part 2 please

  • @reprovedcandy
    @reprovedcandy Před 2 lety +1

    I feel like a big one was missed: Copy / pasting code blocks all over the place instead of converting into a function and calling the function.... I did that one a painful amount in my early coding days =/

  • @bhartiwadhwa9241
    @bhartiwadhwa9241 Před 2 lety

    I knew like 30 of them and now I have been coding for a month and a half so I think that's decent

  • @benjamincrew1949
    @benjamincrew1949 Před 2 lety

    I always feel like I'm overly verbose with my variable naming. I don't abbreviate a lot of the time either.

  • @perodactyl490
    @perodactyl490 Před 2 lety

    I _really_ expected not using a delimiter. I use JS without any semicolons and I get _so many_ errors in other languages involving semicolons.

  • @barackobama5867
    @barackobama5867 Před 2 lety +1

    I have been doing cp for a year, and its really hard, do you think I should continue or no?

  • @Viper40256
    @Viper40256 Před rokem

    As a current 1st year student, the only thing I'm stuck on is I understand the logic behind the topic theoretically but have no idea of how how to implement it in code or write code that follows the logic. And the language I'm learning right now is JAVA

  • @NaudVanDalen
    @NaudVanDalen Před 2 lety

    I'd hate to have to do a handwritten code interview. I'm so bad and slow with writing because I barely write anything with pen. Typing is 10 times faster and it's what we all use to code anyway.

  • @eliodrallag4806
    @eliodrallag4806 Před 2 lety +4

    My answer would be Leaving a lot of console.logs.

  • @saumilagarwal9420
    @saumilagarwal9420 Před 2 lety +1

    This guy lowkey looks like Oscar Issac.

  • @ProbablyAnEarthbender

    You have magic numbers labeling your timestamps in the description.

  • @NooglerNafiz
    @NooglerNafiz Před 2 lety +1

    I should avoid bad variable name...

  • @slr150
    @slr150 Před 2 lety

    6:26 No the way you go about is by writing your tests forts #TDD.

  • @zanelindquist3689
    @zanelindquist3689 Před 2 lety +1

    Im kinda a noob but one I make a lot is not reading documentation.

  • @typicaloofers
    @typicaloofers Před 2 lety

    One thing EVERY beginning developer does wrong is overestimate their future. They will be like "Oh I'mma make a competitor to Minecraft!" Then end up quitting after they try to listen to a 3 hour video of how to learn Java, C#, C++, C, but end up sleeping or something, or "Oh I'mma make this rad website, then quit after trying to learn HTML, CSS, JavaScript, and PHP. My advice is to choose what language you want to learn first, and then learn it to a point where you feel comfortable without using tutorials all the time. (Excluding intermittent google searches,) and then learn another language, and repeat the cycle.

  • @aintea2122
    @aintea2122 Před 2 lety

    One of the mistake I see is to trying to learn syntax more than logic. It's ok to forgot syntax, there is stack overflow. But logic is the most important thing ever, master it in the first place

  • @youssefmic
    @youssefmic Před rokem

    Library hell because I use reactjs and here you can literally install anything so.. avoid it… please

  • @royalkumar795
    @royalkumar795 Před 2 lety +1

    9th mistake is Disney might copyright strike this video

  • @makay9674
    @makay9674 Před 2 lety

    So a quick recommendation : change the tone of your voice throughout the video go up on and down this video had a single tone and i found myself looking away at times and not listening

  • @olabanjiosifowokan8888

    my advice is: if it works, don't touch it

  • @anwarulbashirshuaib5673

    Help me get out of the tutorial hell. Please.

  • @mikesummer5760
    @mikesummer5760 Před 2 lety

    Dude, are you on Twitter?

  • @henry_9
    @henry_9 Před 2 lety +2

    Mistake 1: 0:43
    Mistake 2: 2:08
    Mistake 3: 2:59
    Mistake 4: 3:55
    Mistake 5: 4:53
    Mistake 6: 6:04
    Mistake 7: 6:38
    Mistake 8: 7:48

    • @KeepOnCoding
      @KeepOnCoding  Před 2 lety +1

      Thank you! I added it to the description.

  • @fredirecko
    @fredirecko Před 2 lety

    One mistake is watching too many CZcams videos

  • @colinmaharaj
    @colinmaharaj Před 2 lety

    Rookie mistakes, like using java? 😂

  • @djlclopez128
    @djlclopez128 Před rokem +1

    Please throw away the Disney shirt, it's trash. Wear Python shirts instead!

  • @wasteoftime434
    @wasteoftime434 Před 2 lety

    I'm weak at codingg and want to improve but don't like spending time learning and solving problems.Boring and Difficult.Help me Out!!!