The HARDEST part about programming 🤦‍♂️

Поділитися
Вставка

КОМЕНТАРІ • 724

  • @DiamondSaberYT
    @DiamondSaberYT Рік тому +5252

    Naming variables one was extremely relatable.

    • @jeanssradio.7067
      @jeanssradio.7067 Рік тому +57

      You could call it a instance, but then we could also call it db_initalized.. or shall we use Hungarian case?? Or snake case?? AUGHHHH

    • @nothinghollow
      @nothinghollow Рік тому +8

      god its just confusing to name variables

    • @bankaihampter2802
      @bankaihampter2802 Рік тому +20

      ​@@jeanssradio.7067In my program I simply call it server_db or users_db or logs_db or main_db. Depending on what the database is for

    • @TakeHit0
      @TakeHit0 Рік тому +5

      Put a comment after every variable 😂

    • @godwhitelight8877
      @godwhitelight8877 Рік тому +2

      dbInstance is meh

  • @Lucas-pq8hs
    @Lucas-pq8hs 6 місяців тому +814

    The most unrealistic part is how fast they agree with each other.

  • @mohamedmourad5230
    @mohamedmourad5230 Рік тому +1531

    Planning for our project VS how it ends up 😂

    • @sexymeal2427
      @sexymeal2427 Рік тому +6

      we're all living the same life

    • @melissaharpster
      @melissaharpster 9 місяців тому

      ​@@sexymeal2427😮😢

    • @imzaino
      @imzaino 3 місяці тому

      guys where can I write code? not learn, I just want to make my own code.

    • @NandaP249
      @NandaP249 3 місяці тому

      ​@@imzainovs code

    • @Senko1800
      @Senko1800 2 місяці тому

      ​@@imzainovs code i believe

  • @ExplodeCode
    @ExplodeCode Рік тому +1081

    Naming variables is my bad part of programming.

    • @iliyasamine6483
      @iliyasamine6483 Рік тому +12

      There is the initial hassle of trying to find a decent name, then you should try to find the best writting style, like is camelCase best or using_underscores better?

    • @imfrommars7362
      @imfrommars7362 10 місяців тому

      @@iliyasamine6483 underscores by far

    • @davidbreier84
      @davidbreier84 10 місяців тому +7

      Writing useful comments and/or commit messages comes a close second

    • @vnc.t
      @vnc.t 10 місяців тому

      ​@@iliyasamine6483i tend to go for for all lowercase no underscores shortest possible, so if i went for db_connect i'd prob call it dbc

    • @SiimKoger
      @SiimKoger 9 місяців тому

      Just use a variable that kinda fits and you can just rename it when the functionality is done. Refactoring is easy with IDEs that we have today.

  • @BrianHaddad
    @BrianHaddad Рік тому +780

    What is it they say? There are only two hard things in computer programming: cache invalidation, naming things, and off by one errors.

  • @jaejonmalloy1341
    @jaejonmalloy1341 Рік тому +187

    This is why I took the white board off of my wall, and started using a spiral bound notebook for project planning and design. Also, I stopped abbreviating objects and variables, and began using the most obvious descriptors possible, regardless of length, which ultimately led to more readable code. 🤘

    • @AlmightyTJDR
      @AlmightyTJDR Рік тому +4

      I'm gonna do this when I get deep into coding

    • @benjaminjordan2330
      @benjaminjordan2330 11 місяців тому +19

      Lol yeah I used to think it was cool to make variable names super compact but over the years I have started to make them very obvious and descriptive.

    • @kukuricapica
      @kukuricapica 11 місяців тому +4

      @@benjaminjordan2330 it depends really on the style. I think that in the case of programming "too much of anything hurts". Keep it sleek, readable, document and use comments. You should be fine.

    • @skyleonidas9270
      @skyleonidas9270 10 місяців тому +15

      Long ass names are also not readable, they must be as short as possible yet understandable

    • @v0id_d3m0n
      @v0id_d3m0n 8 місяців тому

      Based

  • @ardentofzeal6244
    @ardentofzeal6244 Рік тому +277

    This is like listening to my boss try to describe an app he wants to build. I'm sitting there the entire time just thinking, "I could maybe accomplish 1/3 of what you asked"

    • @cool_dude_like_really
      @cool_dude_like_really Рік тому

      ​@@OpenWebDiscourse1/3 of cancer cure is quite good actually

    • @TheRealInky
      @TheRealInky Рік тому +24

      That's probably because it made ~33% sense though, in your defense

    • @gutsjoestar7450
      @gutsjoestar7450 10 місяців тому +1

      Where do you work at

    • @goosydev
      @goosydev 9 місяців тому +4

      can it blockchain?

    • @TacTicMint
      @TacTicMint 7 місяців тому +11

      I had a project manager/former code describe how we might fix something for five minutes. The programmer supervisor who's German sits through the whole thing thinks for about ten second on how to put it nicely and says "No. I'll figure a way to do it."

  • @LudwigvanBeethoven2
    @LudwigvanBeethoven2 Рік тому +52

    The worst part is when you have another variable already occupying the name you want to use and you end up with semi-sentence variable names.

  • @IvanRandomDude
    @IvanRandomDude Рік тому +59

    go developers: hold my one letter variable name

    • @thomas.thomas
      @thomas.thomas 11 місяців тому +4

      oh god i hope i wont ever need to maintain your old code

    • @izd4
      @izd4 8 місяців тому

      contextually I think this is ok. I have some Rust code that goes `match chars.next() { Some(c) => c, Err(_) => return Err(...) }`. But if I were to do more work on my `c` variable I would probably want to give it a better name

    • @wesleygamingnl4872
      @wesleygamingnl4872 7 місяців тому +3

      @@izd4it would be fine how you use it, and for example in for loops to keep track of a certain number, but definitely not as ‘actual’ varliaboes

  • @MaximBordyug.
    @MaximBordyug. 6 місяців тому +37

    The main reason I haven't succeeded in learning programming is that I constantly watch videos like this instead of learning, haha)

  • @arhamsayyed9518
    @arhamsayyed9518 Рік тому +75

    I suffer form this everytime 😭

  • @CodingWithLewis
    @CodingWithLewis  Рік тому +39

    Last video with Tiff! Working with her was a pleasure. Make sure you check out Tiff in Tech!!!

    • @Scuffy
      @Scuffy Рік тому +11

      You better have clapped

    • @weissProduction
      @weissProduction Рік тому +1

      💀

    • @dr_corrupt1014
      @dr_corrupt1014 Рік тому +2

      @@Scuffy she has a bf but if he played his cards right woulda been easy..

    • @boonmercado5114
      @boonmercado5114 6 місяців тому

      ​​@@Scuffyi suddenly wanna became a programmer

    • @Scuffy
      @Scuffy 6 місяців тому

      @@boonmercado5114 nah us programmers are virgins this is the only programmer that ever got close to a girl that’s why I said he better have taken the chance.

  • @elcapitan6126
    @elcapitan6126 Рік тому +8

    "what's in a name?" is an underrated question in design. the naming arguments reflect design thinking that has to happen and often takes way more effort than a whiteboarding session will suggest.

  • @DudeWhoCodes
    @DudeWhoCodes Рік тому +14

    The Collab we never expected 😮.

  • @tjdjultima
    @tjdjultima Рік тому +10

    “Like 4 hours if we really just sat down and did it” [6 months pass] “Like 4 hours if we really just sat down and did it”

  • @tocraft573
    @tocraft573 11 місяців тому +4

    They nailed the idea of the joke, just not the example of the joke

  • @comedyclub333
    @comedyclub333 Рік тому +7

    Half of my commits are basically for renaming variables because I start to hate the names I gave them 😅

  • @greentower6192
    @greentower6192 Рік тому +91

    Connecting two seperate things is very difficult. We have to know everything to the core.

    • @nicholasfinch4087
      @nicholasfinch4087 Рік тому +8

      Oh good lord yes. And then scaling is a terrible nightmare if the code you made wasn't made for hundreds of thousands of rows. Trust me... I went down that road. Always paginate your shit 🤣

    • @RealSaudiExplorer
      @RealSaudiExplorer Рік тому

      You don't have to know everything to the core.

    • @core36
      @core36 Рік тому +2

      @@RealSaudiExplorer not if someone else knows it for you

    • @ainewslatest1
      @ainewslatest1 4 місяці тому

      @@nicholasfinch4087 Connecting things in code can be challenging, but not necessarily requiring knowledge of everything:
      Abstraction and Interfaces: Modern programming leverages abstraction and well-defined interfaces. You don't need to know the internal workings of every system you connect with; understanding the interface (functions, arguments, data formats) is often sufficient.
      Libraries and Frameworks: Existing libraries and frameworks often handle the heavy lifting of connecting systems, providing ready-to-use components and simplifying the process.
      Standardization: Established standards and protocols across domains (e.g., APIs, data formats) make connecting systems interoperable without needing profound knowledge of each.
      However, challenges remain:
      Complexity: When dealing with highly complex systems, understanding their underlying principles can be beneficial for troubleshooting, optimizing integration, or creating more resilient connections.
      Edge Cases and Compatibility: Unforeseen scenarios or compatibility issues might arise, requiring deeper understanding and debugging skills.
      Performance Optimization: For performance-critical connections, knowing the internal workings of both systems can help optimize efficiency and resource usage.
      Ultimately, the difficulty of connecting things in code depends on several factors:
      Complexity of systems involved: Simpler systems with clear interfaces are easier to connect.
      Availability of tools and libraries: Pre-built solutions can significantly simplify the process.
      Desired level of integration: Deeper connections might require more in-depth knowledge.
      Programmer's experience and familiarity: Expertise and understanding of relevant concepts make connections smoother.
      Instead of requiring knowledge of everything, the key is to:
      Understand the interfaces and protocols involved.
      Leverage existing tools and libraries whenever possible.
      Be prepared to learn and troubleshoot for potential issues.
      Seek help from communities and documentation when needed.

    • @haroldcruz8550
      @haroldcruz8550 2 місяці тому +1

      That's what software engineers are for, unless you are the software engineer.

  • @outside8312
    @outside8312 Рік тому +2

    Me struggling to not put swears in the names when other people are going to see it 😅

  • @johnshaff
    @johnshaff Рік тому +16

    Literally how non technical PM’s talk 😂

    • @cablesimple
      @cablesimple Рік тому +4

      Pro tip. It's easier to just say PMs

    • @TheRealInky
      @TheRealInky Рік тому +1

      This video is just pain

  • @michaelvik870
    @michaelvik870 Рік тому +3

    Yea, the "variable-naming crisis" thing is very relatable 😂

  • @Lkabss
    @Lkabss Рік тому +26

    I am both horrified and glad that never goes away and its not just me.

  • @bankaihampter2802
    @bankaihampter2802 Рік тому +72

    Oh man... I was today making variables, and for the second user I was naming them 'second_variable' when I came to name user seconds I was totally dumb folded if I really should name it second_second 💀

    • @sshad00ww95
      @sshad00ww95 Рік тому +3

      Just name them variable2 and second2, i mean i dont know if u cant name them like this cuz of something else, but idk, im still just a beginner.

    • @bankaihampter2802
      @bankaihampter2802 Рік тому +1

      @@sshad00ww95 I know. But the variables are seen by the user, I'm making a discord bot and it was a part of a command. Writing second looks more user friendly than a number would

    • @sshad00ww95
      @sshad00ww95 Рік тому +1

      @@bankaihampter2802 oh ok then but maybe u can make that if variable is variable2 make that string they see second, idk it is just an idea xd

    • @BaronXOfficial
      @BaronXOfficial Рік тому

      I don't know what your intent I was with this but I am not a fan of that naming convention nor am I a fan of any of the suggestions, I would take some more time to consider it which kind of goes along with the meme but those names wouldn't fly in a coding interview as they seem very beginnerish. Maybe even OOP might be useful here e.g. having a user object with a time_in_seconds attribute

    • @renisrrenis9225
      @renisrrenis9225 Рік тому +2

      OOP solves all the problems.

  • @pervert_kun
    @pervert_kun Рік тому +7

    I had named it db and then created another object that has connect method

  • @babywaffles
    @babywaffles 10 днів тому

    Why is this so true lol. I always hammer my head because of variable naming and always get stuck at it for minutes.

  • @stand355
    @stand355 8 місяців тому +3

    I just randomly pick a cuss word

  • @FireRust
    @FireRust Місяць тому +2

    I’m a newbie to programming, and naming variables is the absolute worst. Takes half my time

  • @mohammedeleriaan5986
    @mohammedeleriaan5986 Рік тому +2

    Her : It's gonna be too short.
    Him : we are gonna be here all day.

  • @legendrags
    @legendrags Рік тому +9

    Variable names and conflicts be like: hello mother- * board *

  • @orivalx
    @orivalx Рік тому +1

    Be a madman name the variable peepeepoopoo

  • @noonecares616
    @noonecares616 Рік тому +5

    There is nothing harder than naming variables

  • @AE-cc1yl
    @AE-cc1yl Рік тому +1

    Worst is trying to find variable names with SAME length so that all my expressions align 😢

    • @mrocto329
      @mrocto329 Рік тому

      Whattt that's gotta be just you, I just add some spaces to align the equals

  • @herom123
    @herom123 11 місяців тому +1

    THIS IS SO GOD DAMN TRUE!! All that shit and i be sitting trying to name some MOST INSIGNIFICANT VARIABLES!!!

  • @szilagyimiklos4757
    @szilagyimiklos4757 8 місяців тому +2

    A variable cannot be short enough. I never ever heard that complaint

  • @supernovic99
    @supernovic99 Місяць тому +1

    I just name it whatever comes to mind. I know its bad programming practice but i'm pretty used to it now.

  • @wobbywells
    @wobbywells Рік тому

    Glad to hear others go through this

  • @murtajiz545
    @murtajiz545 6 місяців тому

    Thank you, KC. Your words resonate with me deeply, man.

  • @GHoStRider-ru1gx
    @GHoStRider-ru1gx Рік тому +1

    - "I think it's too short"
    - "we're gonna be here all day"
    🌚

  • @lordgiacomos2551
    @lordgiacomos2551 Рік тому +1

    When building something from scratch:
    You're naming an object with the Database type, use `main_db_obj` or really just `db_obj`.
    If you need multiple databases, name them what they're used for (i.e. `users_db`, `products_db`, etc.).
    Working on existing code and scared to have conflicting names:
    Use same basic naming logic, but come up with a short prefix representing this specific round of additions.
    Adding a new database for who all worked on the thing? Use something like `crdtsStff_contributors_db` (consonant only version of credits stuff).
    It doesn't matter what the naming is if you're going to obfuscate it, and it makes it convenient for others to do forensic code analysis to figure out what was added when and why.
    But if you're feeling brave and confident in your debugging skills & tools, just come up with the simplest descriptive names you can think of and debug as you go.
    For the love of God though, get some mind map software to digitize that whiteboard.

  • @themindhelp9584
    @themindhelp9584 Рік тому +1

    😂😂😂😂😂naming the variables I swear...ongoing struggleee

  • @avidrucker
    @avidrucker Рік тому

    Love the tech channels collab!

  • @yogasrinivasreddy504
    @yogasrinivasreddy504 Рік тому +1

    As a person working in the same field i fully agree with this

  • @kilteddwarf
    @kilteddwarf Рік тому +1

    The 2 things hard in it:
    - Cache
    - Naming things
    - Off by 1 errors

  • @AskAKill99
    @AskAKill99 2 місяці тому

    Lmao naming variable😂 cracks me up!!! Honestly ive learned for myself to just give them weird short names that i just think of like "int aglio = 2751;" or "var ayk" is definently better than having long names

  • @neck-o
    @neck-o 2 місяці тому

    I think it helps a little bit in order to not be stuck in the naming the variable phase when I just use immediately whatever pops in my mind at the moment and just mass rename it later when I changed my mind. That way my workflow isn't derailed and I'm able to accomplish more.

  • @moizmoiz02
    @moizmoiz02 Рік тому +1

    Naming variables is the hardest part for me

  • @zuhaibahmed2241
    @zuhaibahmed2241 Рік тому +1

    If Naming variable is hard for you then you are a really good programmer. It means you take the time to ensure your code can be understood by anyone without having to explain it.

    • @HikaruAkitsuki
      @HikaruAkitsuki Рік тому

      That's one thing. But we supposed to design it so that we understand "why the heck did we built this function again?".

  • @5095smf
    @5095smf Рік тому +1

    😂😂 I love these skits

  • @mohaabd5614
    @mohaabd5614 Рік тому +1

    Suffering from naming more than solving problems 😂😂😂😂

  • @OM-el6oy
    @OM-el6oy Рік тому +9

    Tip: If you struggle finding a good name for your variable, you may have a design problem.

  • @tootyrnt5533
    @tootyrnt5533 3 місяці тому

    Choosing PR label colors is definitely one of the hardest things I’ve had to do

  • @lunaletuna
    @lunaletuna Рік тому +1

    There needs to be a vscode pluging where you can just put random var names in and later down the line you can run the plugin and chat gpt will write var names in

  • @inod5656
    @inod5656 Рік тому

    Rough architecture skit vs. actual coding.

  • @oliveryt7168
    @oliveryt7168 Рік тому

    Love it!
    (I am only a CS student, but this is actually how it often is -> even naming a variable is very important)

  • @judahschwartz7459
    @judahschwartz7459 Рік тому +2

    There are 2 things that are hard about computer science
    Cache consistency
    Naming variables
    Off by one errors

    • @Nathankingston0
      @Nathankingston0 5 місяців тому

      There legit dumb I’m smart I’m rich of wow gold loser

  • @sprintmiles
    @sprintmiles 8 місяців тому

    This is applicable to so many domains. So true!

  • @littlethings7587
    @littlethings7587 Рік тому

    Oh my God, it's so amazing to see you with Tiff🥳

  • @saram2339
    @saram2339 7 місяців тому

    the part about naming variables is just sooo true

  • @GoogolEnergy
    @GoogolEnergy Рік тому +1

    Hardest part of the coding, where even a genius also stuck in the web is "Naming a var"...😂😂😂

  • @prosmasher
    @prosmasher Рік тому +2

    Last night I was giving a Reactjs test and I was stuck for 15 minutes naming a variable 😅

  • @iseeflowers
    @iseeflowers 5 місяців тому

    Nowadays, the hardest part is getting a programming interview/ job and passing the coding interview.

  • @eduardosegatto8424
    @eduardosegatto8424 29 днів тому

    "2 weeks?! No. I need it for tomorrow afternoon. 👋 See ya tomorrow"

  • @CyberInfosec184
    @CyberInfosec184 Рік тому

    The hardest stage of Programming Selecting a variable name

  • @SDZ675
    @SDZ675 Рік тому +2

    This is why we need ChatGPT to name our variables for us.

  • @bethshebaovercame5587
    @bethshebaovercame5587 10 місяців тому

    And its so important to be good at it. As a new backend developer, Sr devs kill my understanding of the code with 1 and 2 letter variables lol. 😭

  • @alfellati
    @alfellati 7 місяців тому

    Great collaboration

  • @captheobbyist6434
    @captheobbyist6434 Рік тому

    hardest part of programming is not the languages or syntax, but it'd planning out lots of stuff

  • @Coups_Detat
    @Coups_Detat Місяць тому +1

    90% of the work is planning and meetings the rest Is actual work, Everytime I come up with a good idea I end up stuck in variable naming

  • @danishsharjeel1549
    @danishsharjeel1549 2 місяці тому

    True, naming a variable while keeping many variables in check.

  • @scherzer6428
    @scherzer6428 5 місяців тому +3

    Yeah let's draw some random words all of the place 😢lol

  • @alegon2
    @alegon2 7 місяців тому +1

    Just ask for variable names in chatgpt 😂😂

  • @failednova6533
    @failednova6533 7 місяців тому +2

    Just name it as "a"

  • @dryadeknight2993
    @dryadeknight2993 Рік тому +1

    After finished designing solution, the next thing I did was to ask my coworker what is the format of the model name, variable name, and method name. 1) Because I have somewhat a compulsive tendency to have things in uniform; 2) Even if the other person doesn’t develop the model, they would still understand what’s happening.

  • @Salieri01
    @Salieri01 7 місяців тому

    The guy started the video with “block chain” like really man lol

  • @panlis6243
    @panlis6243 Рік тому +1

    It's all fun and games until you have to debug a 4 moths old code and figure out what the variable named dbOnWdrsawrr is for

  • @studraiyanjaffer9252
    @studraiyanjaffer9252 Рік тому

    This channel is very helpful for every experience and beginner programmers, the every videos are helpful to become good programmer ❤😊,
    Keep growing love from india.

  • @insoft_uk
    @insoft_uk 6 місяців тому

    ChatGPT has solved the naming problem, also good at short comments when you’re code fails to describe itself and have to resort to a comment

  • @cleasbycode7506
    @cleasbycode7506 Рік тому

    The amount of times I keep changing variable names... Lol.

  • @carlspring7151
    @carlspring7151 6 місяців тому

    The hardest part has always been naming things

  • @ShaharHarshuv
    @ShaharHarshuv Рік тому

    I love that "ChatGPT" is just casually written there 😂
    Ironically, it's better at naming variables than me

  • @ganyrehs
    @ganyrehs Рік тому +2

    Not just variable names, my IT team is having trouble coming up with printer names.

    • @kuratse205
      @kuratse205 Рік тому

      . . . Printer names? Printers had names?

    • @goat7476
      @goat7476 Рік тому

      Hahah I name my stuff Printer01 or by room names

  • @slippydouglas
    @slippydouglas Рік тому

    This is what we need ChatGPT and Copilot for, not to write questionable code for us, but just to name identifiers for us based on the code we just wrote.

  • @energiemic
    @energiemic Рік тому +2

    Me that use x y z as variable name

  • @Brahdyssey
    @Brahdyssey Рік тому +2

    I agree, that is too short!

  • @AkivaB
    @AkivaB Рік тому +1

    That hits so close

  • @nitensapkota8606
    @nitensapkota8606 Рік тому

    INT does represent whole number , whole start from 0 and goes up to infinity ,which does not include negative numbers where we can say that INT represent integer number which ranges from (-infinity , +infinity)

  • @MohammedAliUno
    @MohammedAliUno 7 місяців тому

    I start by it being a full sentence then by the end of the session it keeps on shrinking till it gets it's final most self explanatory form.

  • @trapped-ion
    @trapped-ion Рік тому

    Im sure every engineer has heard the famous project manager phrase: "How hard can it be?" 😂

  • @elektronischdev
    @elektronischdev Рік тому +3

    Using underscores for variables in Java is a crime.

    • @DiamondSaberYT
      @DiamondSaberYT Рік тому

      String User_name = MainReader.readLine();
      if (User_name == "Holmes")
      {
      // rip

    • @cholobok
      @cholobok 5 місяців тому +1

      ⁠​⁠@@DiamondSaberYToh god. That inconsistent capitalization too 💀

  • @pqsk
    @pqsk Рік тому

    😆 so relatable. Especially when management has tight deadlines

  • @DsComputerWorld
    @DsComputerWorld 7 місяців тому +1

    Naming variables is the most confusing part.

  • @samigul3548
    @samigul3548 Рік тому

    My first time relating to a programming joke, and understanding it. (I'm learning)

  • @williamseipp9691
    @williamseipp9691 6 місяців тому

    I'm still getting my color scheme setup, hold up there on the database handles there buddy!

  • @jerryhall5709
    @jerryhall5709 2 місяці тому

    "Make it work" is my philosophy. You can come up with smarter solutions later but first you need something.

  • @lordn3m3sis
    @lordn3m3sis 5 місяців тому

    Thank you, the suffering coders go through every day when naming variables goes unnoticed to most of society, coders are people too😂

  • @brokemono
    @brokemono 11 місяців тому

    for some reason "ass" is my most used one.

  • @stoufa
    @stoufa 5 місяців тому

    yup! cache invalidation and naming stuff, these are the hardest couple of things in computer science! 😁

  • @diegofonseca7457
    @diegofonseca7457 7 місяців тому +1

    I think setting up libraries/frameworks with compatible versions and dependencies is the worst.

  • @rajaanquarza8553
    @rajaanquarza8553 Рік тому

    Naming Variables are one of the most hard things that i do, because I'm not really creative at naming things

  • @kyzakplays
    @kyzakplays 3 місяці тому

    I agree with variable naming