Clean Code Is Killing Your Career | The Myth of Clean Code

  Рет қаралды 47,748

Harkirat Singh

Harkirat Singh

5 ай бұрын

In this video, I'll talk about why everyone wants to write clearer, simpler code, but sometimes trying to improve or 'refactor' your code isn't a good choice. I'll explain the unexpected problems that can come with trying to clean up code and give easy tips on how to do it the right way. Let's learn together about making code better without the extra headaches!
Links:
Open Source Cohort: harkirat.classx.co.in/
Twitter: / kirat_tw
Linkedin: / kirat-li
Instagram: / kirat_ins
Discord: / discord
Telegram: t.me/kirat_internal_group

Пікірлер: 90
@user-hw4mc7wh6q
@user-hw4mc7wh6q 5 ай бұрын
Congrats for 299K, I wish your subscribers reach to 1 million soon,
@mithunmahaadevan463
@mithunmahaadevan463 5 ай бұрын
Advance congrats for 300K kirat
@Chiragsharma-gi1eb
@Chiragsharma-gi1eb 5 ай бұрын
🎯 Key Takeaways for quick navigation: 01:09 📝 *Overly descriptive comments in code are unnecessary if the function is self-explanatory. Use comments only for critical explanations, like weird numbers or unusual logic.* 03:02 🐳 *Containerize your application for open source projects. It helps new contributors set up the project quickly and make changes locally, improving the onboarding process.* 03:56 ⚙️ *Use a top-level .env file for managing environment variables in open source projects. It simplifies the setup for contributors and avoids the need to hunt for scattered configuration files.* 04:52 🧹 *Regularly eliminate unused code from your codebase. Dead code can accumulate, making it harder for new contributors to understand and slowing down the development process.* 07:22 🔍 *Avoid eating up errors in code. Propagate errors back through callbacks or use promises to ensure proper handling, preventing issues from being silently ignored.* Made with HARPA AI
@ehsaanfayaz1671
@ehsaanfayaz1671 5 ай бұрын
happy to see you reaching 300K, cool bro.
@tahaali01
@tahaali01 2 ай бұрын
One underrated practice is of retries, whenever we are dependent on some other service (including AWS) it's helpful to put a retry mechanism in place, for example like an exponential backoff mechanism.
@anandrp8456
@anandrp8456 5 ай бұрын
great knowledge thank you.
@abhishekjadhav8319
@abhishekjadhav8319 5 ай бұрын
Very valuable video, please make a video for about more good practices
@abhinavgupta1518
@abhinavgupta1518 5 ай бұрын
Finally harkirat bhaiya speaking at normal human speed😂
@abjee1602
@abjee1602 5 ай бұрын
clean speech
@shankar4359
@shankar4359 5 ай бұрын
😅
@user-yg2gf6dh2z
@user-yg2gf6dh2z 5 ай бұрын
08:26 may be that's a Security Measure as sometimes you should not directly send the error information back to client, as sniffers in between might make a guess about the working of the system through the error info!
@TalhaMubarak-qm7yj
@TalhaMubarak-qm7yj 5 ай бұрын
You are right but maybe we can take another approach like sending the error messages to some sort of error files in the server that one can lookup to see what caused the error. And yeah sending the err in the console in not a promising thing I guess. I believe that going this way we can maintain a healthy software. Please go easy on me if i am wrong. As i am in college in Pakistan and yeah I know that my grammar sucks
@hiSubhajit
@hiSubhajit 5 ай бұрын
Can you please make more / longer videos on this topic, I couldn't find similar informative videos in YT. Please allocate some time for making this.
@cryptogita8699
@cryptogita8699 5 ай бұрын
Harkirat Sir please make video on neovim setup
@laplock7129
@laplock7129 5 ай бұрын
Why I am getting addiction of this channel?
@arjitsinghfan1320
@arjitsinghfan1320 5 ай бұрын
We can see his eyes , how he does hardwork to do code daily 12 to 14 hours
@himanshujasaiwal3967
@himanshujasaiwal3967 5 ай бұрын
bhai google opinion reward m paise h jab se apne live kri h superchat ka option dundh rha hu on kardo ek bar expire ho jayenge jan m
@bhartiom560
@bhartiom560 5 ай бұрын
Why the sound for this channel is way too low comparatively to other channels? Please fix it
@user-zn7bb2bm8b
@user-zn7bb2bm8b 5 ай бұрын
cohort link is not working
@monicakherajani5840
@monicakherajani5840 5 ай бұрын
Links of these projects??
@vaibhavjangid3112
@vaibhavjangid3112 5 ай бұрын
At 8:30, can someone explain why using promises is better in such cases except the fact that the code looks cleaner?
@tarunpai2121
@tarunpai2121 5 ай бұрын
Gives you a more consitent API when you're looking for standardization in your codebase. With the "good code" example, even though you handle the error by passing `err` to the `cb` function, the eventual function that calls the `findUserByUsername` function will need to handle the error scenario separately with an `if` statment. As opposed to if you use a `Promise`, it becomes more standard with how you would handle any other scenario; you could do this with `.then().catch()` & now since you're using promises the calling function can also use `async-await` and you can handle the error with a `try-catch` block.
@ajaysonar6713
@ajaysonar6713 5 ай бұрын
Please make video on neovim setup, guys please like for neovim setup video
@cryptogita8699
@cryptogita8699 5 ай бұрын
Yes please make video on neovim setup @harkirat1
@shourya2408
@shourya2408 5 ай бұрын
I'll see after class
@galaxy792
@galaxy792 5 ай бұрын
Me too
@ninabetty5637
@ninabetty5637 5 ай бұрын
Which class
@ayushtiwari1280
@ayushtiwari1280 4 ай бұрын
Me too
@ayushtiwari1280
@ayushtiwari1280 4 ай бұрын
Me too
@ayushtiwari1280
@ayushtiwari1280 4 ай бұрын
Me too
@xade8381
@xade8381 5 ай бұрын
300k this Christmas
@user-zn7bb2bm8b
@user-zn7bb2bm8b 5 ай бұрын
cohort link is not workinh
@FlKarthikjidagam
@FlKarthikjidagam 5 ай бұрын
08:26 WHAT ABOUT TRY CATCH
@Mian-hm9es
@Mian-hm9es 5 ай бұрын
💜💜💜
@Hemanth-21
@Hemanth-21 5 ай бұрын
And first like tooo
@satyamkr.7355
@satyamkr.7355 5 ай бұрын
@raoulnair5885
@raoulnair5885 5 ай бұрын
One more point i would say Guard clauses that can make code more readable by clearly stating assumptions upfront and reducing nested if-else blocks Guard clauses act like bouncers at a club, checking preconditions before things crash, making code cleaner and happier!🌟🌠
@user-yb7vc5oj8x
@user-yb7vc5oj8x 4 ай бұрын
Always have a good readme file
@yashwanth7209
@yashwanth7209 5 ай бұрын
Hi, bruh !
@sumeet08
@sumeet08 5 ай бұрын
The title is not related to content and could have been better. Looks like it was made dramatic to pull in the viewers
@evgen5647
@evgen5647 4 ай бұрын
Yep, I have the same feeling. Click-bait.
@sargurunathan8568
@sargurunathan8568 5 ай бұрын
Why do I feel like this is a click bait....
@akshaymishra6475
@akshaymishra6475 4 ай бұрын
Imagine creating swagger docs for your pm and other non-tech teams
@xade8381
@xade8381 5 ай бұрын
another point: use a popular formatter
@NaveenSingh-js6ts
@NaveenSingh-js6ts 5 ай бұрын
6:55 Why not to use DSA logic? Can anyone explain?
@none665
@none665 5 ай бұрын
he is simply saying instead of using a dsa logic always better to use inbuilt functions. and alsow rite your code in smaller functions
@NaveenSingh-js6ts
@NaveenSingh-js6ts 5 ай бұрын
@@none665 thank you
@Quantum_Zenith
@Quantum_Zenith 5 ай бұрын
Bro could you please suggest path for perfect programming starting from my 12 th I am preparing for jee please let me know, sorry this completely irrelevant to this vedio 🙏
@ImRajdip
@ImRajdip 5 ай бұрын
jan may mains hay vai parle avi galti se achha NIT may chala geya , waha isse ayese hi roadmaps mil jaye ga ..... and agar coding main hay to jee chor de na idhar ka rehe ga na udhar ka
@amandwivedi7640
@amandwivedi7640 5 ай бұрын
bro leave coding and start freelancing if you really want to code and make money. If you are preparing for jee dont waste time rather start leetcode and do dsa hard if you really want to get into faang or else jee will suck few crucial years of your life, rest depends on you ,your life, your career.
@Quantum_Zenith
@Quantum_Zenith 5 ай бұрын
@@amandwivedi7640 thanks for the information bro I will definitely be looking into it
@mein3324
@mein3324 5 ай бұрын
Hello, my friend was got charged Rs 80000 for using free tier of AWS. Although he somehow convinced amazon that he was student and was just learning. But why is it called free tier if they charge money? Can you tell how to learn aws without getting such big bills?
@kadamsahil2528
@kadamsahil2528 5 ай бұрын
so lemme explain, what happens is AWS will give you credits which will last for x minutes (I've taken x buz i haven't tried it yet, so I'm just having a rough idea about it) and your friend probably wrote a faulty code which was repeating itself resulting in exhausting credits and thereafter that it'll charge and hence ending up with a large bill Correct me if I'm wrong, not having a credit card so I haven't tried aws yet
@parthachoudhury4152
@parthachoudhury4152 5 ай бұрын
Read about Cloudwatch . Set it up so that you don't get such surprises. Also, not all services are free in AWS. Eg: in a EC2 instance, only the smallest ones are free.
@vaibhav5783
@vaibhav5783 5 ай бұрын
I do not have credit card. I am using GCP. which is much safe and it has limit and they gave me 300 credits
@Hemanth-21
@Hemanth-21 5 ай бұрын
1st comment bhaiii
@jaadu2551
@jaadu2551 5 ай бұрын
Sir how many hours do you sleep in a day
@debojeetdutta1390
@debojeetdutta1390 5 ай бұрын
Don't sleep
@IllIIIIIIllll
@IllIIIIIIllll 5 ай бұрын
yea dude his left eye got slouch.
@SachinDolta
@SachinDolta 5 ай бұрын
Prime made similar video earlier
@Adonis08
@Adonis08 5 ай бұрын
Please give Christmas Discount🎉.??
@shreyanshmishra6613
@shreyanshmishra6613 5 ай бұрын
Just read the book on Clean Code. Harkirat is talking from that book only. You'll learn more from the book than this video. 12min video isn't gonna teach anything. But might make a case for him to sell his course.
@sayantaniguha8519
@sayantaniguha8519 5 ай бұрын
Proper timestamps Dede koi
@sumitchakrabortystudy651
@sumitchakrabortystudy651 5 ай бұрын
First comment
@eshwarnag
@eshwarnag 3 ай бұрын
I watched 6 mins, where are the myths?
@abubakarshf
@abubakarshf 5 ай бұрын
First :D
@evgen5647
@evgen5647 4 ай бұрын
Click-bait title. Not very professional huh
@dhanushkumar7020
@dhanushkumar7020 5 ай бұрын
300k subs before 2024 😃@Harkirat Singh
STOP Watching Coding Tutorials Right Now! My LEARNING FRAMEWORK
12:19
Harkirat Singh
Рет қаралды 208 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,3 МЛН
狼来了的故事你们听过吗?#天使 #小丑 #超人不会飞
00:42
超人不会飞
Рет қаралды 65 МЛН
Каха инструкция по шашлыку
01:00
К-Media
Рет қаралды 4,9 МЛН
When someone reclines their seat ✈️
00:21
Adam W
Рет қаралды 21 МЛН
Sprinting with More and More Money
00:29
MrBeast
Рет қаралды 154 МЛН
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 114 М.
How to Become a Blockchain Developer from Beginner to Expert | Arcana
8:42
These Mistakes Can End Your Career As A Software Developer!
8:49
Harkirat Singh
Рет қаралды 113 М.
"Clean Architecture" and indirection. No thanks.
25:06
CodeOpinion
Рет қаралды 42 М.
How To Get Ahead Of 99% Of Software Engineers (Starting Today)
14:59
Harkirat Singh
Рет қаралды 244 М.
How I CODE For HOURS With NO Breaks
9:41
Harkirat Singh
Рет қаралды 79 М.
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,6 МЛН
Junior Vs Senior Code - How To Write Better Code
22:13
Web Dev Simplified
Рет қаралды 1,1 МЛН
狼来了的故事你们听过吗?#天使 #小丑 #超人不会飞
00:42
超人不会飞
Рет қаралды 65 МЛН