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

Поделиться
HTML-код
  • Опубликовано: 22 дек 2023
  • 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

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

  • @user-hw4mc7wh6q
    @user-hw4mc7wh6q 6 месяцев назад +6

    Congrats for 299K, I wish your subscribers reach to 1 million soon,

  • @mithunmahaadevan463
    @mithunmahaadevan463 6 месяцев назад +4

    Advance congrats for 300K kirat

  • @Chiragsharma-gi1eb
    @Chiragsharma-gi1eb 5 месяцев назад +15

    🎯 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

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

    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.

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

    happy to see you reaching 300K, cool bro.

  • @abhinavgupta1518
    @abhinavgupta1518 6 месяцев назад +42

    Finally harkirat bhaiya speaking at normal human speed😂

  • @abhishekjadhav8319
    @abhishekjadhav8319 5 месяцев назад

    Very valuable video, please make a video for about more good practices

  • @anandrp8456
    @anandrp8456 5 месяцев назад

    great knowledge thank you.

  • @user-yg2gf6dh2z
    @user-yg2gf6dh2z 5 месяцев назад +2

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

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

    Harkirat Sir please make video on neovim setup

  • @arjitsinghfan1320
    @arjitsinghfan1320 5 месяцев назад +7

    We can see his eyes , how he does hardwork to do code daily 12 to 14 hours

  • @laplock7129
    @laplock7129 5 месяцев назад

    Why I am getting addiction of this channel?

  • @ajaysonar6713
    @ajaysonar6713 6 месяцев назад +7

    Please make video on neovim setup, guys please like for neovim setup video

    • @cryptogita8699
      @cryptogita8699 6 месяцев назад +1

      Yes please make video on neovim setup @harkirat1

  • @shourya2408
    @shourya2408 6 месяцев назад +63

    I'll see after class

  • @Mian-hm9es
    @Mian-hm9es 6 месяцев назад

    💜💜💜

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

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

    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-zn7bb2bm8b
    @user-zn7bb2bm8b 5 месяцев назад

    cohort link is not working

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

      Yep, I have the same feeling. Click-bait.

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

      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.

  • @monicakherajani5840
    @monicakherajani5840 5 месяцев назад

    Links of these projects??

  • @Hemanth-21
    @Hemanth-21 6 месяцев назад

    And first like tooo

  • @satyamkr.7355
    @satyamkr.7355 6 месяцев назад

  • @akshaymishra6475
    @akshaymishra6475 5 месяцев назад

    Imagine creating swagger docs for your pm and other non-tech teams

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

    300k this Christmas

  • @user-yb7vc5oj8x
    @user-yb7vc5oj8x 5 месяцев назад

    Always have a good readme file

  • @user-zn7bb2bm8b
    @user-zn7bb2bm8b 5 месяцев назад

    cohort link is not workinh

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

  • @FlKarthikjidagam
    @FlKarthikjidagam 5 месяцев назад

    08:26 WHAT ABOUT TRY CATCH

  • @sargurunathan8568
    @sargurunathan8568 5 месяцев назад +1

    Why do I feel like this is a click bait....

  • @mein3324
    @mein3324 6 месяцев назад +1

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

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

      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

  • @NaveenSingh-js6ts
    @NaveenSingh-js6ts 5 месяцев назад

    6:55 Why not to use DSA logic? Can anyone explain?

    • @none665
      @none665 5 месяцев назад +2

      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

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

    Sir how many hours do you sleep in a day

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

    another point: use a popular formatter

  • @shreyanshmishra6613
    @shreyanshmishra6613 5 месяцев назад +3

    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.

  • @leogaurav1
    @leogaurav1 10 дней назад

    Why that Title, its unclear!

  • @Hemanth-21
    @Hemanth-21 6 месяцев назад +1

    1st comment bhaiii

  • @Adonis08
    @Adonis08 5 месяцев назад +1

    Please give Christmas Discount🎉.??

  • @sumitchakrabortystudy651
    @sumitchakrabortystudy651 6 месяцев назад +1

    First comment

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

    Hi, bruh !

  • @SachinDolta
    @SachinDolta 5 месяцев назад

    Prime made similar video earlier

  • @sayantaniguha8519
    @sayantaniguha8519 5 месяцев назад

    Proper timestamps Dede koi

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

    First :D

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

    I watched 6 mins, where are the myths?

  • @evgen5647
    @evgen5647 5 месяцев назад

    Click-bait title. Not very professional huh

  • @dhanushkumar7020
    @dhanushkumar7020 5 месяцев назад

    300k subs before 2024 😃@Harkirat Singh