Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
And like most comments it's a wrong description of what the thing actually is. That is not a floor.
-
jonjo9428y@JavaSlave it is a wet flat surface of a room that you walk... thus is it is a wet floor lol
-
@jonjo it's not a flat surface and unless you're Jesus I doubt you can walk on water. So it's not a floor even if it looks like one.
-
I like comments. You can use them like headers. Sure, if you look at the code for a while you'll figure it out, but "headers" make it easier and quicker.
The concept with headers have worked quite nicely for other forms of text for thousands of years so I see no reason to not utilize it for code.
Sure, there are exceptions. For instance if you're writing code for a legacy system and need to save disk space you might want to exclude those superfluous bytes. -
Grumpy28828y// Starts remote computer
void StartRemoteComputer() {...}
So, the StartRemoteComputer function actually starts a remote computer. Wow. Who could have guessed? -
jjhiza2588y@gloslistan I use comments in the same way - as headers for quick reference. I'm torn though... I like comments as long as they're to-the-point, but I also know people who abhor them. At work, they're a must, considering I'm not the only one working on the project (and our lead is remote), but in my personal projects, I keep them a little bit less verbose.
Typical code comment
undefined