-  [WT]  [PS]  [Home] [Manage]

[Return]
Posting mode: Reply
  1.   (reply to 4766)
  2. (for post and file deletion)
/pr/ - Programming
  • Supported file types are: C, CSS, DOC, DOCX, GIF, H, JAVA, JPG, PDF, PNG, SVG, SWF, TXT, WEBM
  • Maximum file size allowed is 10000 KB.
  • Images greater than 200x200 pixels will be thumbnailed.
  • Currently 391 unique user posts. View catalog

  • Blotter updated: 2011-01-12 Show/Hide Show All

There's a new /777/ up, it's /gardening/ Check it out. Suggest new /777/s here.

Movies & TV 24/7 via Channel7: Web Player, .m3u file. Music via Radio7: Web Player, .m3u file.

WebM is now available sitewide! Please check this thread for more info.

Revealing your power level Neckbearded Basement Dweller 15/07/07(Tue)20:11 No. 4766
4766

File 14362927069.jpg - (38.29KB , 372x399 , To_the_idiots_with_love_45bdf1_4806225.jpg )

Today at work, in a code comment explaining the motivation for a design decision, I took a short jab at people calling themselves "webdevs" but who can't get right what I was doing. Fortunatelly, as I usually read and rethink what I write, I realized that was being a smug asshole so I removed that part of the comment and committed.

Tell me, /pr/, what's the worst thing you've written or seen someone else write in code comments?


>>
Neckbearded Basement Dweller 16/09/12(Mon)10:04 No. 4937

i++; //increment var

I am not joking


>>
Neckbearded Basement Dweller 16/09/16(Fri)07:22 No. 4938

// None of this actually works.


>>
Neckbearded Basement Dweller 16/10/07(Fri)09:50 No. 4941

>>4766
The worst I've done is a long comment that took more time to type than it would have taken for me to fix the issue with the code.

I haven't seen anything too bad in comments, apart from ones that are outright wrong (and that's usually because of code change and the comments not being updated to match).


>>
Neckbearded Basement Dweller 17/04/21(Fri)23:33 No. 5039

I still haven't been redpilled on the need for comments, can someone redpillzz me on zit?

The only time i comment something is if something is non-obvious.


>>
Neckbearded Basement Dweller 17/05/08(Mon)08:13 No. 5040

I'm working on sourcewritingsource.h but I'm probably never going to get that working.


>>
Neckbearded Basement Dweller 17/06/29(Thu)12:07 No. 5048

>>5039
The main use for comments, imo, is not to make it obvious what the code is doing, but why it's doing it.

It helps readers follow along and see the logical steps being taken in code, and if you don't work on code for a while you might even forget your own code and how it worked back then..


>>
Neckbearded Basement Dweller 17/07/10(Mon)18:18 No. 5052

>>5048
That's the only reason I write comments, so 3 years later when it breaks on a Monday morning and I'm staring at it bleary-eyed without any coffee I can figure out what the hell is going on.



[Return] [Entire Thread] [Last 50 posts]


Delete post []
Password  
Report post
Reason