The HARDEST part about programming 🤦‍♂️

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

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

  • @DiamondSaberYT
    @DiamondSaberYT Год назад +5990

    Naming variables one was extremely relatable.

    • @jeanssradio.7067
      @jeanssradio.7067 Год назад +64

      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 Год назад +9

      god its just confusing to name variables

    • @bankaihampter2802
      @bankaihampter2802 Год назад +21

      ​@@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 Год назад +6

      Put a comment after every variable 😂

    • @godwhitelight
      @godwhitelight Год назад +2

      dbInstance is meh

  • @Lucas-pq8hs
    @Lucas-pq8hs 11 месяцев назад +1800

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

    • @score311
      @score311 11 месяцев назад +43

      I can't believe there is even more than 1 dev in a room 😮

    • @markfrederickromualdo9191
      @markfrederickromualdo9191 6 месяцев назад +3

      hahahahaha

    • @mattboemer4549
      @mattboemer4549 4 месяца назад +11

      Usually waste like 3 hours arguing before you both realize you could’ve made both of the solutions and been testing right now

    • @yamix-tr
      @yamix-tr Месяц назад +1

      they still didn't talk about the "Push To Production" part

  • @mohamedmourad5230
    @mohamedmourad5230 Год назад +1783

    Planning for our project VS how it ends up 😂

    • @sexymeal2427
      @sexymeal2427 Год назад +6

      we're all living the same life

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

      ​@@sexymeal2427😮😢

    • @imzaino
      @imzaino 7 месяцев назад

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

    • @NandaP249
      @NandaP249 7 месяцев назад

      ​@@imzainovs code

    • @Senko1800
      @Senko1800 7 месяцев назад

      ​@@imzainovs code i believe

  • @ExplodeCode
    @ExplodeCode Год назад +1267

    Naming variables is my bad part of programming.

    • @iliyasamine6483
      @iliyasamine6483 Год назад +16

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

      @@iliyasamine6483 underscores by far

    • @davidbreier84
      @davidbreier84 Год назад +9

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

    • @vnc.t
      @vnc.t Год назад

      ​@@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

    • @ponalvsiki2254
      @ponalvsiki2254 Год назад +2

      Just call it alphabetically

  • @BrianHaddad
    @BrianHaddad Год назад +891

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

    • @freeloaderuser6793
      @freeloaderuser6793 Год назад +24

      You forgot segmentation errors

    • @mudubasa
      @mudubasa Год назад +43

      ​@@freeloaderuser6793 so there are 5 hard th
      Segmentation fault (core dumped)

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

      ​@@nigerianprince2620 u into structs huh

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

      😂😂

    • @saikaushikvardhan
      @saikaushikvardhan Год назад +17

      I see what you did there 😂

  • @jaejonmalloy1341
    @jaejonmalloy1341 Год назад +269

    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 Год назад +5

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

    • @benjaminjordan2330
      @benjaminjordan2330 Год назад +26

      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 Год назад +6

      @@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 Год назад +18

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

    • @v0id_d3m0n
      @v0id_d3m0n Год назад +1

      Based

  • @LudwigvanBeethoven2
    @LudwigvanBeethoven2 Год назад +70

    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.

  • @ardentofzeal6244
    @ardentofzeal6244 Год назад +311

    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 Год назад +27

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

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

      Where do you work at

    • @goosybs
      @goosybs Год назад +5

      can it blockchain?

    • @TacTicMint
      @TacTicMint Год назад +16

      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."

  • @IvanRandomDude
    @IvanRandomDude Год назад +75

    go developers: hold my one letter variable name

    • @thomas.thomas
      @thomas.thomas Год назад +6

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

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

      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 Год назад +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

    • @mipmipmipmipmip-v5x
      @mipmipmipmipmip-v5x Месяц назад +1

      Sounds like Fortran

  • @MaximBordyug.
    @MaximBordyug. 11 месяцев назад +68

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

  • @arhamsayyed9518
    @arhamsayyed9518 Год назад +77

    I suffer form this everytime 😭

  • @tocraft573
    @tocraft573 Год назад +6

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

  • @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 Год назад +14

    “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”

  • @boy291-z8c
    @boy291-z8c Год назад +4

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

  • @comedyclub333
    @comedyclub333 Год назад +7

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

  • @judahschwartz7459
    @judahschwartz7459 Год назад +2

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

    • @Nathankingston0
      @Nathankingston0 9 месяцев назад

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

  • @FireRust
    @FireRust 5 месяцев назад +4

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

  • @murtajiz545
    @murtajiz545 10 месяцев назад

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

  • @rakkis1576
    @rakkis1576 4 месяца назад +4

    I use chatgpt in my programming. Not to do the actual coding, it is crap at that. More...
    "I have a variable that is used for x, y and z. What do I name it? Give me ten suggestions."

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

    Rough architecture skit vs. actual coding.

  • @outside8312
    @outside8312 Год назад +3

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

  • @johnwight6041
    @johnwight6041 Месяц назад

    That whiteboard is extremely accurate lol and the variable names haha

  • @greentower6192
    @greentower6192 Год назад +92

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

    • @tisaconundrum
      @tisaconundrum Год назад +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 Год назад +3

      @@RealSaudiExplorer not if someone else knows it for you

    • @gamesshuffler-v8n
      @gamesshuffler-v8n 8 месяцев назад

      @@tisaconundrum 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 6 месяцев назад +1

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

  • @Lkabss
    @Lkabss Год назад +26

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

  • @johnshaff
    @johnshaff Год назад +19

    Literally how non technical PM’s talk 😂

    • @cablesimple
      @cablesimple Год назад +5

      Pro tip. It's easier to just say PMs

    • @TheRealInky
      @TheRealInky Год назад +1

      This video is just pain

  • @5095smf
    @5095smf Год назад +1

    😂😂 I love these skits

  • @balqaasem
    @balqaasem 11 месяцев назад

    Great collaboration

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

    Love the tech channels collab!

  • @tootyrnt5533
    @tootyrnt5533 7 месяцев назад

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

  • @iseeflowers
    @iseeflowers 9 месяцев назад

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

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

    This is applicable to so many domains. So true!

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

    The hardest stage of Programming Selecting a variable name

  • @moizmoiz02
    @moizmoiz02 Год назад +1

    Naming variables is the hardest part for me

  • @GHoStRider-ru1gx
    @GHoStRider-ru1gx Год назад +2

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

  • @stand355
    @stand355 Год назад +3

    I just randomly pick a cuss word

  • @herom123
    @herom123 Год назад +1

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

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

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

  • @AE-cc1yl
    @AE-cc1yl Год назад +2

    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

  • @suvetar
    @suvetar 23 дня назад

    We laugh 'cos it's funny ... we cry 'cos it's true.

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

    Glad to hear others go through this

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

    the part about naming variables is just sooo true

  • @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.

  • @szilagyimiklos4757
    @szilagyimiklos4757 Год назад +2

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

  • @lefteriseleftheriades7381
    @lefteriseleftheriades7381 13 дней назад

    If you are doing OO and someone names the variable a verb stop working with them. Variables are nouns. Methods are Verbs and enum values are adjectives

  • @noonecares616
    @noonecares616 Год назад +5

    There is nothing harder than naming variables

  • @linusgke
    @linusgke Год назад +3

    Using underscores for variables in Java is a crime.

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

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

    • @vaolin1703
      @vaolin1703 9 месяцев назад +1

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

  • @yogasrinivasreddy504
    @yogasrinivasreddy504 Год назад +1

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

  • @akirabinismael5942
    @akirabinismael5942 3 месяца назад

    Naming variables is like character creation in RPG games

  • @babywaffles
    @babywaffles 4 месяца назад

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

  • @mohammedeleriaan5986
    @mohammedeleriaan5986 Год назад +2

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

  • @Coups_Detat
    @Coups_Detat 6 месяцев назад +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

  • @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.

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

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

  • @themindhelp9584
    @themindhelp9584 Год назад +1

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

  • @legendrags
    @legendrags Год назад +10

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

  • @carlspring7151
    @carlspring7151 10 месяцев назад

    The hardest part has always been naming things

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

    The hardest part of programming is actually
    .
    .
    .
    .
    Talking you way out
    Or if you want your idea implemented
    Talking your way in.

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

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

  • @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?".

  • @NetaTech-p2s
    @NetaTech-p2s 4 месяца назад

    The camera movement on the white board is a turn off. Helps with generously confusing people.😢

  • @aaronbowie6339
    @aaronbowie6339 Год назад +7

    simple solution, name all variables var1, var2, var3... etc

    • @vaolin1703
      @vaolin1703 9 месяцев назад +2

      Or maybe var000001, var000002, etc. to have consistent indentation

    • @davidduffield1713
      @davidduffield1713 9 месяцев назад

      @@vaolin1703var010234 is NSFW don’t forget

    • @yinyang9508
      @yinyang9508 7 месяцев назад

      Just make it a small description Int bigD = 12; or something

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

    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. 😭

  • @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)

  • @Brahdyssey
    @Brahdyssey Год назад +2

    I agree, that is too short!

  • @alejrandom6592
    @alejrandom6592 Месяц назад

    Context: they are planming the virtual nuke from Castle

  • @Dialectic42
    @Dialectic42 8 дней назад

    Ah yes, the 2 hard problems of computers science. Cache invalidation, naming things, and off by one errors.

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

    this is most relatable video.

  • @mohaabd5614
    @mohaabd5614 Год назад +1

    Suffering from naming more than solving problems 😂😂😂😂

  • @lazyman2451
    @lazyman2451 8 месяцев назад

    The hardest part of development is is installing all the necessary files for the work 😂

  • @komalthecoolk
    @komalthecoolk Год назад +1

    It's actually selecting the VSCode color theme.

  • @squash9189
    @squash9189 6 месяцев назад

    Hardest part: explaining the entire code to your partner

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

    Date/times and timezone offsets. That's just lovely.

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

    "Mal nommer les choses c'est ajouter du malheur au monde"
    >> "Wrongly name things is adding sadness to the world"

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

    I just do "database_users" or "database_posts" for databases...
    "IInterface" for interfaces,
    "EEnumerator" for enums,
    "TType" for types,
    "CClass" for classes,
    "FFunction" for functions,
    "ConstantVariable" for constant variables,
    "normalVariable" for normal variables,
    and "temp_temporaryVariable" for temporary variables.

  • @diegofonseca7457
    @diegofonseca7457 Год назад +1

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

  • @kyzakplays
    @kyzakplays 7 месяцев назад

    I agree with variable naming

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

    All kidding aside, naming things is the hardest part of being a programming.

  • @handletodizmantle
    @handletodizmantle 6 месяцев назад

    That is soooo real it looks realistic

  • @vaolin1703
    @vaolin1703 9 месяцев назад

    Naming variables really is one hard multivariate optimization problem.

  • @grevel1376
    @grevel1376 4 месяца назад

    you forgot about cache invalidation

  • @orivalx
    @orivalx Год назад +1

    Be a madman name the variable peepeepoopoo

  • @kilteddwarf
    @kilteddwarf Год назад +1

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

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

    What's that quote?
    "The two hardest things in programming are naming variables, cache invalidation, and off-by-one errors"

  • @DsComputerWorld
    @DsComputerWorld Год назад +1

    Naming variables is the most confusing part.

  • @danishsharjeel1549
    @danishsharjeel1549 6 месяцев назад

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

  • @connorjade5460
    @connorjade5460 7 месяцев назад

    Hardest part is not to get distracted while coding.

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

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

  • @AkivaB
    @AkivaB Год назад +1

    That hits so close

  • @andrewclarke4902
    @andrewclarke4902 6 месяцев назад

    Dare I suggest taking a look at Application Hungarian Notation?

  • @AndersJackson
    @AndersJackson 8 месяцев назад

    Hardest two problems in programming
    0. Cash invalidation.
    1. Naming things
    2. Off-by-one errors.
    😂

  • @BekoPharm
    @BekoPharm 3 месяца назад

    This hits home xD

  • @lordn3m3sis
    @lordn3m3sis 10 месяцев назад

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

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

    Center a Div is still the most difficult thing in the world

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

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

  • @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.

  • @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

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

    I knew this was gonna happen the moment I saw the title 😂😂

  • @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)