Things That Annoy Programmers
21–30 of 39 posts
Re: Things That Annoy Programmers
#22Re: Things That Annoy Programmers
#23Meetings. stabs self
Re: Things That Annoy Programmers
#24Re: Things That Annoy Programmers
#25Top 10 lists.
Re: Things That Annoy Programmers
#26Re: Things That Annoy Programmers
#27Earlier quoted context omitted.
Do you not have an editor/IDE that can automatically format code for you? Both Visual Studio and Eclipse can do this, and editors like Vim or Emacs can too.
I have someone on my team who uses SlickEdit, and it messes up all the indentations when I look at the same code in Eclipse. I have to spend a few minutes reformatting it every time he makes changes to the code, and it's a real pain.
Re: Things That Annoy Programmers
#28Re: Things That Annoy Programmers
#29IMHO #11 could be added as "unindented code". I was going to a guy's code yesterday and I felt very _irritated_ to read it, that i ended up spending 15min indenting it myself. I'm sure a lot of people don't like unindented code. and I totally agree with #1, it's very true for me. And especially when I've used some framework and the framework has been updated to a newer version with lots of goodies, i feel lazy to mai…
Re: Things That Annoy Programmers
#30Funny that #10, 'Comments that explain the “how” but not the “why”', quotes from an article by Jeff Atwood to show how the comment should have been written. But in the original article, Jeff actually says that that commenting style is also not as good as refactoring the code: "That must be what I was getting at, right? Some sort of pleasant, middle-of-the-road compromise between the two polar extremes of no comments…
I'd consider that new code a step backwards since it removes the vital words "Newton-Raphson". If I didn't recognize the algorithm I might have a very hard time working out exactly how and why that lump of code approximates a square root. With the words Newton-Raphson included somewhere I could easily look it up and find out everything I need to know about not only how and why it works but also its strength and weakn…
I would probably refactor the code as Jeff says, but add a comment that describes the function, probably with details about why it's implemented the way it is.