You can always make your code self explanatory, but the cost in abstraction and maintenance results sometimes a negative ROI. In such cases, writting comments is often the best solution.
There's some excitment in identifying those, and that's where I enjoy documenting the intention of my code.
Re:Comments Are Code (2018)
by bryanrasmussen on Friday March 08, 2024 @04:13AM
(#39639341)
>You can always make your code self explanatory
this code is done in this way because EU regulation #1374 regarding Maritime tracing.
this code seems inefficient and silly but is that way to get around a specific rendering issue in Opera Mini which needs to be supported because our project needs to support basically everything because it is a required governmental service.
This code is dealing with an issue in Safari that is supposed to be fixed by June 2024 release - please check if it is still an issue - test by doing the following...
Tldr: No, you can not always make your code self-explanatory.
Re:Comments Are Code (2018)
by bryanrasmussen on Friday March 08, 2024 @04:03AM
(#39639291)
I enjoy commenting the code if it needs it
This may just be me but does anyone else actually enjoy documenting their code?