530
giboork
7y

Typical code comment

Comments
  • 5
    This is why I hate comments 😂
  • 10
    //comment
    //This was a comment ^

    Print("Hello World");
    //Prints Hello World
  • 22
    And like most comments it's a wrong description of what the thing actually is. That is not a floor.
  • 6
    @JavaSlave it is a wet flat surface of a room that you walk... thus is it is a wet floor lol
  • 12
    @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.
  • 5
    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.
  • 6
    @JavaSlave are you saying there is no floor to the pool?
  • 5
    // Starts remote computer
    void StartRemoteComputer() {...}

    So, the StartRemoteComputer function actually starts a remote computer. Wow. Who could have guessed?
  • 5
    // TODO: add relevant comment
  • 0
    typical warning
  • 0
    @JavaSlave Indeed, it is - well at least for the specific species of water-spiders...

    Which in this case would also represent a typical code comment...
  • 2
    299. One more for a stress ball!
  • 1
    You're welcome.
  • 1
  • 0
    @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.
  • 0
    You, Sir, made my day 😂
  • 0
    Great value of information.
Add Comment