The HARDEST part about programming 🤦‍♂️ #code #programming #technology #tech #software #developer

  Рет қаралды 1,331,362

Coding with Lewis

Жыл бұрын

Пікірлер: 727
@DiamondSaberYT
@DiamondSaberYT Жыл бұрын
Naming variables one was extremely relatable.
@jeanssradio.7067
@jeanssradio.7067 Жыл бұрын
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 Жыл бұрын
god its just confusing to name variables
@bankaihampter2802
@bankaihampter2802 Жыл бұрын
​@@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 Жыл бұрын
Put a comment after every variable 😂
@godwhitelight8877
@godwhitelight8877 Жыл бұрын
dbInstance is meh
@Lucas-pq8hs
@Lucas-pq8hs 7 ай бұрын
The most unrealistic part is how fast they agree with each other.
@spencercooper1603
@spencercooper1603 6 ай бұрын
I can't believe there is even more than 1 dev in a room 😮
@markfrederickromualdo9191
@markfrederickromualdo9191 Ай бұрын
hahahahaha
@mattboemer4549
@mattboemer4549 2 күн бұрын
Usually waste like 3 hours arguing before you both realize you could’ve made both of the solutions and been testing right now
@mohamedmourad5230
@mohamedmourad5230 Жыл бұрын
Planning for our project VS how it ends up 😂
@sexymeal2427
@sexymeal2427 Жыл бұрын
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 Жыл бұрын
Naming variables is my bad part of programming.
@iliyasamine6483
@iliyasamine6483 Жыл бұрын
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 11 ай бұрын
@@iliyasamine6483 underscores by far
@davidbreier84
@davidbreier84 10 ай бұрын
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 Жыл бұрын
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 Жыл бұрын
You forgot segmentation errors
@mudubasa
@mudubasa Жыл бұрын
​@@freeloaderuser6793 so there are 5 hard th Segmentation fault (core dumped)
@kuroxell
@kuroxell Жыл бұрын
​@@nigerianprince2620 u into structs huh
@carlosrobinson4230
@carlosrobinson4230 Жыл бұрын
😂😂
@saikaushikvardhan
@saikaushikvardhan Жыл бұрын
I see what you did there 😂
@jaejonmalloy1341
@jaejonmalloy1341 Жыл бұрын
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 Жыл бұрын
I'm gonna do this when I get deep into coding
@benjaminjordan2330
@benjaminjordan2330 11 ай бұрын
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 ай бұрын
@@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 ай бұрын
Long ass names are also not readable, they must be as short as possible yet understandable
@v0id_d3m0n
@v0id_d3m0n 8 ай бұрын
Based
@ardentofzeal6244
@ardentofzeal6244 Жыл бұрын
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 Жыл бұрын
That's probably because it made ~33% sense though, in your defense
@gutsjoestar7450
@gutsjoestar7450 10 ай бұрын
Where do you work at
@goosydev
@goosydev 9 ай бұрын
can it blockchain?
@TacTicMint
@TacTicMint 8 ай бұрын
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 Жыл бұрын
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 Жыл бұрын
go developers: hold my one letter variable name
@thomas.thomas
@thomas.thomas 11 ай бұрын
oh god i hope i wont ever need to maintain your old code
@izd4
@izd4 9 ай бұрын
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 8 ай бұрын
@@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
@arhamsayyed9518
@arhamsayyed9518 Жыл бұрын
I suffer form this everytime 😭
@MaximBordyug.
@MaximBordyug. 6 ай бұрын
The main reason I haven't succeeded in learning programming is that I constantly watch videos like this instead of learning, haha)
@DetectiveNoir_
@DetectiveNoir_ 5 ай бұрын
I hate how relatable your comment is. F*** you dude!! 😭
@arthurbella-un2gs
@arthurbella-un2gs 3 ай бұрын
😂😂😂😂😂
@valeriacerpasalas2330
@valeriacerpasalas2330 3 ай бұрын
x2
@khableguy
@khableguy Ай бұрын
me too fam
@CodingWithLewis
@CodingWithLewis Жыл бұрын
Last video with Tiff! Working with her was a pleasure. Make sure you check out Tiff in Tech!!!
@Scuffy
@Scuffy Жыл бұрын
You better have clapped
@weissProduction
@weissProduction Жыл бұрын
💀
@dr_corrupt1014
@dr_corrupt1014 Жыл бұрын
@@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.
@DudeWhoCodes
@DudeWhoCodes Жыл бұрын
The Collab we never expected 😮.
@outside8312
@outside8312 Жыл бұрын
Me struggling to not put swears in the names when other people are going to see it 😅
@elcapitan6126
@elcapitan6126 Жыл бұрын
"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.
@tocraft573
@tocraft573 Жыл бұрын
They nailed the idea of the joke, just not the example of the joke
@tjdjultima
@tjdjultima Жыл бұрын
“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”
@johnshaff
@johnshaff Жыл бұрын
Literally how non technical PM’s talk 😂
@cablesimple
@cablesimple Жыл бұрын
Pro tip. It's easier to just say PMs
@TheRealInky
@TheRealInky Жыл бұрын
This video is just pain
@comedyclub333
@comedyclub333 Жыл бұрын
Half of my commits are basically for renaming variables because I start to hate the names I gave them 😅
@Lkabss
@Lkabss Жыл бұрын
I am both horrified and glad that never goes away and its not just me.
@greentower6192
@greentower6192 Жыл бұрын
Connecting two seperate things is very difficult. We have to know everything to the core.
@nicholasfinch4087
@nicholasfinch4087 Жыл бұрын
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 Жыл бұрын
@@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 ай бұрын
That's what software engineers are for, unless you are the software engineer.
@bankaihampter2802
@bankaihampter2802 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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 Жыл бұрын
@@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 Жыл бұрын
OOP solves all the problems.
@FireRust
@FireRust Ай бұрын
I’m a newbie to programming, and naming variables is the absolute worst. Takes half my time
@legendrags
@legendrags Жыл бұрын
Variable names and conflicts be like: hello mother- * board *
@pervert_kun
@pervert_kun Жыл бұрын
I had named it db and then created another object that has connect method
@stand355
@stand355 8 ай бұрын
I just randomly pick a cuss word
@michaelvik870
@michaelvik870 Жыл бұрын
Yea, the "variable-naming crisis" thing is very relatable 😂
@orivalx
@orivalx Жыл бұрын
Be a madman name the variable peepeepoopoo
@noonecares616
@noonecares616 Жыл бұрын
There is nothing harder than naming variables
@mohammedeleriaan5986
@mohammedeleriaan5986 Жыл бұрын
Her : It's gonna be too short. Him : we are gonna be here all day.
@babywaffles
@babywaffles 16 күн бұрын
Why is this so true lol. I always hammer my head because of variable naming and always get stuck at it for minutes.
@eduardosegatto8424
@eduardosegatto8424 Ай бұрын
"2 weeks?! No. I need it for tomorrow afternoon. 👋 See ya tomorrow"
@kilteddwarf
@kilteddwarf Жыл бұрын
The 2 things hard in it: - Cache - Naming things - Off by 1 errors
@szilagyimiklos4757
@szilagyimiklos4757 8 ай бұрын
A variable cannot be short enough. I never ever heard that complaint
@avidrucker
@avidrucker Жыл бұрын
Love the tech channels collab!
@supernovic99
@supernovic99 Ай бұрын
I just name it whatever comes to mind. I know its bad programming practice but i'm pretty used to it now.
@mohaabd5614
@mohaabd5614 Жыл бұрын
Suffering from naming more than solving problems 😂😂😂😂
@wobbywells
@wobbywells Жыл бұрын
Glad to hear others go through this
@alegon2
@alegon2 7 ай бұрын
Just ask for variable names in chatgpt 😂😂
@GHoStRider-ru1gx
@GHoStRider-ru1gx Жыл бұрын
- "I think it's too short" - "we're gonna be here all day" 🌚
@inod5656
@inod5656 Жыл бұрын
Rough architecture skit vs. actual coding.
@moizmoiz02
@moizmoiz02 Жыл бұрын
Naming variables is the hardest part for me
@AE-cc1yl
@AE-cc1yl Жыл бұрын
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
@failednova6533
@failednova6533 8 ай бұрын
Just name it as "a"
@herom123
@herom123 11 ай бұрын
THIS IS SO GOD DAMN TRUE!! All that shit and i be sitting trying to name some MOST INSIGNIFICANT VARIABLES!!!
@CyberInfosec184
@CyberInfosec184 Жыл бұрын
The hardest stage of Programming Selecting a variable name
@scherzer6428
@scherzer6428 5 ай бұрын
Yeah let's draw some random words all of the place 😢lol
@OM-el6oy
@OM-el6oy Жыл бұрын
Tip: If you struggle finding a good name for your variable, you may have a design problem.
@iseeflowers
@iseeflowers 5 ай бұрын
Nowadays, the hardest part is getting a programming interview/ job and passing the coding interview.
@lordgiacomos2551
@lordgiacomos2551 Жыл бұрын
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 Жыл бұрын
😂😂😂😂😂naming the variables I swear...ongoing struggleee
@tootyrnt5533
@tootyrnt5533 3 ай бұрын
Choosing PR label colors is definitely one of the hardest things I’ve had to do
@GoogolEnergy
@GoogolEnergy Жыл бұрын
Hardest part of the coding, where even a genius also stuck in the web is "Naming a var"...😂😂😂
@yogasrinivasreddy504
@yogasrinivasreddy504 Жыл бұрын
As a person working in the same field i fully agree with this
@energiemic
@energiemic Жыл бұрын
Me that use x y z as variable name
@alfellati
@alfellati 7 ай бұрын
Great collaboration
@prosmasher
@prosmasher Жыл бұрын
Last night I was giving a Reactjs test and I was stuck for 15 minutes naming a variable 😅
@SDZ675
@SDZ675 Жыл бұрын
This is why we need ChatGPT to name our variables for us.
@oppopp9336
@oppopp9336 11 ай бұрын
"Mal nommer les choses c'est ajouter du malheur au monde" >> "Wrongly name things is adding sadness to the world"
@saram2339
@saram2339 7 ай бұрын
the part about naming variables is just sooo true
@judahschwartz7459
@judahschwartz7459 Жыл бұрын
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
@Salieri01
@Salieri01 8 ай бұрын
The guy started the video with “block chain” like really man lol
@murtajiz545
@murtajiz545 6 ай бұрын
Thank you, KC. Your words resonate with me deeply, man.
@Coups_Detat
@Coups_Detat 2 ай бұрын
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
@hanac5586
@hanac5586 Ай бұрын
True
@victortesla2935
@victortesla2935 11 ай бұрын
Me casually naming them x,y,z
@ShaharHarshuv
@ShaharHarshuv Жыл бұрын
I love that "ChatGPT" is just casually written there 😂 Ironically, it's better at naming variables than me
@aaronbowie6339
@aaronbowie6339 Жыл бұрын
simple solution, name all variables var1, var2, var3... etc
@cholobok
@cholobok 5 ай бұрын
Or maybe var000001, var000002, etc. to have consistent indentation
@davidduffield1713
@davidduffield1713 4 ай бұрын
@@cholobokvar010234 is NSFW don’t forget
@yinyang9508
@yinyang9508 2 ай бұрын
Just make it a small description Int bigD = 12; or something
@5095smf
@5095smf Жыл бұрын
😂😂 I love these skits
@trapped-ion
@trapped-ion Жыл бұрын
Im sure every engineer has heard the famous project manager phrase: "How hard can it be?" 😂
@panlis6243
@panlis6243 Жыл бұрын
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
@carlspring7151
@carlspring7151 6 ай бұрын
The hardest part has always been naming things
@fallennarcotic6981
@fallennarcotic6981 10 ай бұрын
„Hmm blockchain“ 😂
@lunaletuna
@lunaletuna Жыл бұрын
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
@elektronischdev
@elektronischdev Жыл бұрын
Using underscores for variables in Java is a crime.
@DiamondSaberYT
@DiamondSaberYT Жыл бұрын
String User_name = MainReader.readLine(); if (User_name == "Holmes") { // rip
@cholobok
@cholobok 5 ай бұрын
⁠​⁠@@DiamondSaberYToh god. That inconsistent capitalization too 💀
@dryadeknight2993
@dryadeknight2993 Жыл бұрын
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.
@tobiassjoholm9325
@tobiassjoholm9325 2 ай бұрын
Most annoying coworker ever
@SomeoneOnlyWeKnow.
@SomeoneOnlyWeKnow. 2 ай бұрын
???
@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
@jerryhall5709
@jerryhall5709 2 ай бұрын
"Make it work" is my philosophy. You can come up with smarter solutions later but first you need something.
@zuhaibahmed2241
@zuhaibahmed2241 Жыл бұрын
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?".
@SpinyDisk
@SpinyDisk 3 ай бұрын
There are only two hard things in programming… Cache invalidation, Naming things, And off-by-one errors…
@captheobbyist6434
@captheobbyist6434 Жыл бұрын
hardest part of programming is not the languages or syntax, but it'd planning out lots of stuff
@littlethings7587
@littlethings7587 Жыл бұрын
Oh my God, it's so amazing to see you with Tiff🥳
@geek_24
@geek_24 Жыл бұрын
Center a Div is still the most difficult thing in the world
@komalthecoolk
@komalthecoolk 8 ай бұрын
It's actually selecting the VSCode color theme.
@sprintmiles
@sprintmiles 8 ай бұрын
This is applicable to so many domains. So true!
@artwork-studios
@artwork-studios 3 күн бұрын
Thats why I give variables funny names
@cleasbycode7506
@cleasbycode7506 Жыл бұрын
The amount of times I keep changing variable names... Lol.
@DsComputerWorld
@DsComputerWorld 8 ай бұрын
Naming variables is the most confusing part.
@diegofonseca7457
@diegofonseca7457 8 ай бұрын
I think setting up libraries/frameworks with compatible versions and dependencies is the worst.
@mastermindinclude7198
@mastermindinclude7198 2 ай бұрын
dont worry, i call my database Jason
@georgwagner5577
@georgwagner5577 6 ай бұрын
I like to name variables with a single letter.
@syukcode
@syukcode Жыл бұрын
when you want to update the project, but what you do is just change the variable name 😂
@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
@brokemono
@brokemono Жыл бұрын
for some reason "ass" is my most used one.
@AndersJackson
@AndersJackson 4 ай бұрын
Hardest two problems in programming 0. Cash invalidation. 1. Naming things 2. Off-by-one errors. 😂
@squash9189
@squash9189 2 ай бұрын
Hardest part: explaining the entire code to your partner
@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)
@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.
@lazyman2451
@lazyman2451 3 ай бұрын
The hardest part of development is is installing all the necessary files for the work 😂
@paddotk
@paddotk Жыл бұрын
Date/times and timezone offsets. That's just lovely.