Why Write Clean Code? ⛩️
Imagine if you tried to find something in a messy room—you'd waste time searching, right?
The same goes for ...
For further actions, you may consider blocking this person and/or reporting abuse
I'm glad to see this being highlighted yet again! I'm not quite sure where the hostility to code structures beyond "just code it bro" come from, but I have had to see some pretty horrific codebases and so am happy to see ANY kind of overarching structure in a codebase being talked about!
Clean code is the key to override headache!
🤣🤣
Read "Uncle Bob"s book "Clean Code". The chapter on "code smells" by itself is worth the price of admission.
Comments: always have a comment block at the top of the module/package/class/whatever, describing WHY this (whatever) exists -- what is its purpose? Not HOW it works, but WHY it exists. Give the next person to touch it the context needed to understand it.
I always loved Uncle Bob's clean code technics. He is the best. My teacher Mosh (programming with mosh) always followed him as well.
Going back to "Code Complete" being one of my favorite books when it comes to programming. During my career (going on 20+ years) I had to learn some of this the hard way trying to decipher code that I myself had written after not looking at it for a few years.
Recently had to go back and work on a program I wrote just 7 years ago and it was very easy to modify and make changes to the program because I used common sense when designing it. Take the time to refactor your code into functions where able and it makes sense. Then your subroutines can be a few lines long, with easy sections to troubleshoot.
Awesome! Thank you
Glad to hear that!
Thanks for this! Saving it! 💖
You're most welcome!
Elegant and crisp explanatiom
Thank you for your feedback!
very helpful for us beginners
Yes, I know!
Nice. Thank you.
You're most welcome!
Thank you for useful information
You're welcome
Read the „ Refactoring“ book for the beginning.
“As a first semester student in Software Engineering,
I have found the debate on Clean Code very interesting. I consider that
establishing good practices from the beginning of our training is fundamental.
A question for the community: What static analysis tools would you recommend for beginners
do you recommend for beginners who are learning to write cleaner code?”
Nice!
Thanks