News for hackers. Stuff that matters.
Re:Everyone can write bad code by maxxxxx on Thursday February 08, 2018 @01:17PM (#16334236)
I always appreciate the line "//Incrementing i by 1"
Re:Everyone can write bad code by artimaeis on Thursday February 08, 2018 @01:28PM (#16334326)
Or the related "// going through each item (i) in the list (myList)"

Yeah, it's a foreach loop. I remember my keywords.

Re:Everyone can write bad code by sodapopcan on Thursday February 08, 2018 @01:41PM (#16334440)
Just to add my own, I had a coworker who used to do:

# Set x to 1

x = 1

...not even kidding.

Re:Everyone can write bad code by maxxxxx on Thursday February 08, 2018 @01:45PM (#16334480)
You could probably automate this and write a plug-in that that translates every line of code into plain English :)
Re:Everyone can write bad code by hawktheslayer on Thursday February 08, 2018 @02:14PM (#16334698)
I've been working on old SQL code written 10 years ago, and the original developer used comments as a way to track his to do list (e.g. --TO DO: fix this procedure). It's safe to say that stuff isn't going to get done.
Re:Everyone can write bad code by slezakattack on Thursday February 08, 2018 @02:47PM (#16335004)
Or comments written in the first person. "// We need to increment i by 1"