8 Mistakes Beginner Programmers Make

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024

Комментарии • 91

  • @KeepOnCoding
    @KeepOnCoding  2 года назад +81

    Would you like to see a part 2?

  • @DemetriPanici
    @DemetriPanici 2 года назад +32

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

  • @NaudVanDalen
    @NaudVanDalen 2 года назад +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.

  • @jimb6554
    @jimb6554 2 года назад +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

  • @pottomzola
    @pottomzola 2 года назад +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.

    • @FridayHouseXYZ
      @FridayHouseXYZ 2 года назад +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 2 года назад

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

  • @privileged6453
    @privileged6453 2 года назад +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 2 года назад +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!

  • @eliodrallag4806
    @eliodrallag4806 2 года назад +4

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

  • @djlclopez128
    @djlclopez128 2 года назад +1

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

  • @marcosotavionovais5618
    @marcosotavionovais5618 2 года назад +4

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

  • @-Corvo_Attano
    @-Corvo_Attano 2 года назад +1

    I will rectify my mistakes thank you:)

  • @saumilagarwal9420
    @saumilagarwal9420 2 года назад +1

    This guy lowkey looks like Oscar Issac.

  • @Moukeaf
    @Moukeaf 2 года назад +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 2 года назад +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.

  • @marcalistaircoffi
    @marcalistaircoffi 2 года назад +3

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

  • @typicaloofers
    @typicaloofers 2 года назад

    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.

  • @tanishtyagi1301
    @tanishtyagi1301 2 года назад +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.

  • @hassanfarhat7604
    @hassanfarhat7604 2 года назад +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 2 года назад +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.

  • @royalkumar795
    @royalkumar795 2 года назад +1

    9th mistake is Disney might copyright strike this video

  • @enjintft
    @enjintft 2 года назад +2

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

  • @ares106
    @ares106 2 года назад +1

    part 2 Please!

  • @Viper40256
    @Viper40256 Год назад

    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

  • @reprovedcandy
    @reprovedcandy 2 года назад +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 =/

  • @ProbablyAnEarthbender
    @ProbablyAnEarthbender 2 года назад

    You have magic numbers labeling your timestamps in the description.

  • @aintea2122
    @aintea2122 2 года назад

    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 2 года назад

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

  • @UkFuzzyBear
    @UkFuzzyBear 2 года назад

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

  • @NaudVanDalen
    @NaudVanDalen 2 года назад +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.

  • @bhartiwadhwa9241
    @bhartiwadhwa9241 2 года назад

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

  • @princessportsassociation5958
    @princessportsassociation5958 2 года назад +1

    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.

  • @adybydy50
    @adybydy50 Год назад

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

  • @barackobama5867
    @barackobama5867 2 года назад +1

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

  • @BillionaireDeveloper
    @BillionaireDeveloper 2 года назад +1

    I should avoid bad variable name...

  • @iq0578
    @iq0578 2 года назад +3

    We want a part 2!

  • @zanelindquist3689
    @zanelindquist3689 2 года назад +1

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

  • @olabanjiosifowokan8888
    @olabanjiosifowokan8888 2 года назад

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

  • @marshallross
    @marshallross 2 года назад +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!

  • @slr150
    @slr150 2 года назад

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

  • @colinmaharaj
    @colinmaharaj 2 года назад

    Rookie mistakes, like using java? 😂

  • @prsmahajan
    @prsmahajan 2 года назад +1

    We have been missing your videos since a while👀

  • @Mohamed_Ismail91
    @Mohamed_Ismail91 2 года назад +1

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

  • @anwarulbashirshuaib5673
    @anwarulbashirshuaib5673 2 года назад

    Help me get out of the tutorial hell. Please.

  • @mehtibaby
    @mehtibaby 2 года назад +1

    Keep on making these types of videos brother !

  • @spade6774
    @spade6774 2 года назад +1

    Part 2 love your work and effort ;)

  • @urban_borders_6934
    @urban_borders_6934 2 года назад

    Now this is quality content

  • @rainyonrecord
    @rainyonrecord 2 года назад

    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

  • @TetaroSeth
    @TetaroSeth 2 года назад +1

    Great video! Awesome reminders

  • @murtajiz545
    @murtajiz545 2 года назад

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

  • @StarRoseAngelic
    @StarRoseAngelic 2 года назад

    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.

  • @perodactyl490
    @perodactyl490 2 года назад

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

  • @wwijsman
    @wwijsman 2 года назад

    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.

  • @NaudVanDalen
    @NaudVanDalen 2 года назад

    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.

  • @FridayHouseXYZ
    @FridayHouseXYZ 2 года назад

    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.

  • @Lthe1
    @Lthe1 2 года назад

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

  • @Yeah_bruv
    @Yeah_bruv 2 года назад

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

  • @benjamincrew1949
    @benjamincrew1949 2 года назад

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

  • @makay9674
    @makay9674 2 года назад

    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

  • @AxleWack
    @AxleWack 2 года назад

    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 :)

  • @Juzzyjuzzy
    @Juzzyjuzzy 2 года назад

    excellent video.

  • @chunkymonkey2285
    @chunkymonkey2285 2 года назад

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

  • @fredirecko
    @fredirecko 2 года назад

    One mistake is watching too many RUclips videos

  • @yd742
    @yd742 2 года назад

    part 2 please

  • @LemmonTea
    @LemmonTea 2 года назад

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

  • @antobenedetti6464
    @antobenedetti6464 2 года назад +1

    part 2 !

  • @rhinoTube
    @rhinoTube 2 года назад

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

  • @mikesummer5760
    @mikesummer5760 2 года назад

    Dude, are you on Twitter?

  • @hamza582
    @hamza582 2 года назад

    Good advice. Thanks man

  • @henry_9
    @henry_9 2 года назад +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  2 года назад +1

      Thank you! I added it to the description.

  • @adipurnomo5683
    @adipurnomo5683 2 года назад

    Nice bro

  • @matthewcolfer4280
    @matthewcolfer4280 2 года назад +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!

  • @wasteoftime434
    @wasteoftime434 2 года назад

    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!!!

  • @pepperino-hotterino
    @pepperino-hotterino Год назад

    getting the debugger in my IDE running