The bug is in the library of a library that the library owns. They fixed it and published it in the library of the library but the library hasn’t been updated in 2 months.
If I was at any moment perfectly aware of every minute detail of every programming related topic, and could also apply it perfectly, I honestly think I’d get incredibly stressed and depressed. Stressed from all the billions of projects that I could improve, and would kinda feel the obligation to improve. And depressed because the whole reason I like programming is the learning part. Almost every project I start will end at the point where I learnt the most significant new stuff and it comes down to doing things that I know how to do. It’d ruin my primary hobby (and job) for me, which probably wouldn’t result in me being very happy.
Even though comments are very helpful, often it’s even enough to name variables and methods/functions really good. At least do that. You don’t want i, j and value. Believe me. You want rowCount, colCount and deliveryOption instead. You just may not know it now, but you will, when it has to be changed in a few months.
Where comments are useful most is in explaining why the implementation is as it is. Otherwise smart ass (your future self) will come along, rewrite it just to realize there was indeed a reason for the former implementation.
Comments are good when you’re doing something weird to handle an edge case or something. But yeah most of the time clear variable names, and extracting complicated code to a dedicated and clearly named function, are enough.
There are only two hard things in Computer Science: cache invalidation and naming things.
I actually got off my arse and did some productive programming over the Christmas break. Spent too long vegetating in front of the computer watching YouTube vids or playing games.
programmer_humor
Top
This magazine is from a federated server and may be incomplete. Browse more on the original instance.