Over the years, I have become very interested in clean code, calisthenics objects, etc. And over time, readings, videos, discussions and katas, my ...
For further actions, you may consider blocking this person and/or reporting abuse
I like your approach to the comment section. Depending on the problems, I either use the constant with a name that I can clearly understand or I extract it into a function that I test.
Regarding the "early return" topic, it was one of the first things I learned in the professional world and it really makes sense and optimizes the process.
Thanks for your comment !
About early return, I donβt know nowdays how the « one return onlyΒ Β» is teached at school, but itβs a shame to learn early return in the profession l worldβ¦
Great article!
side node: I would not let anyone that is an adult drive a car. There are already enough accidents with drivers that have a drivers license :)
π€£
This is good information!
Thank you π
thank you for sharing
Insightful π―
Nice article!
About the "early return" - most of the time there are more things to check (fail) before reaching the "happy path" and that's why it is usually placed at the end of the method. Your example should looks like: