The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
0answers
63 views

how to find typos and misspellings in code comments [closed]

I am getting familiar with some portion of code of a very large internal project (over 1 million lines of code) which is C-based and hosted on Mercurial repository. While looking at code, I found ...
1
vote
3answers
329 views

How do you avoid looping mistakes? Mistakes that are not detected by systems [closed]

I had this crazy initialisation -- documentList = new ArrayList<Map<String,Integer>>(); which I intended to store a new map everytime in a loop but unfortunately put itself inside the ...
1
vote
5answers
377 views

How do you cope with “brain farts”? [closed]

From the Jargon File: brain fart: n. The actual result of a braino, as opposed to the mental glitch that is the braino itself. E.g., typing dir on a Unix box after a session with DOS. I've been ...
1
vote
2answers
168 views

How to fix quickly, dummy errors? [duplicate]

The problem is that I am not that experienced programmer and I am doing silly mistakes on coding. But the even bigger problem is that I may spend unexpectably much time to find them. Lets say I ...
4
votes
5answers
578 views

How can I avoid mistakes using the same variable name again?

This isn't a rare case and occurs with me often and I spent countless time trying to debug the code. Latest example, this PHP code where I used $email for the parameter and for object as well. ...
0
votes
2answers
206 views

How to learn elegantly handling mistakes? [closed]

One of the things I've noticed as a junior developer is that the people I respect and admire the most are those that can own up to their mistakes and clearly/logically come up with a great way to ...
7
votes
7answers
1k views

Should I charge a client for mistakes that I made? [duplicate]

After developing a website for a client, I've realized that the load time is too extreme, and some changes need to be made. The extreme load times are attributed to the bloated css/js frameworks that ...
4
votes
2answers
172 views

Programming IDEs feature to add a forgotten open parentheses?

I very often find myself in situations where I should have opened a parentheses, but forgot and end up furiously tapping the left arrow key to get to the spot I should have put it, and doing the same ...
3
votes
5answers
499 views

Minimising little coding mistakes [closed]

I make a fair amount of small mistakes when I code (things such as getting an angle bracket to the wrong direction). It adds a fair amount of time to my coding because I have to debug several times ...
12
votes
6answers
1k views

How does a large company make rookie mistakes which leave security holes? [closed]

Sony was recently hacked with a SQL injection and the passwords of their user's was stored in plain text. These are rookie mistakes. In such a large company, how does this pass QA? How do they not ...
16
votes
11answers
2k views

Should I break contract early? [closed]

About 7 months ago I made the switch from a 5 year permie role (as a support developer in C#) to a contract role. I did this because I was stagnating in my old role. The extra cash contracting is ...
26
votes
13answers
18k views

Worst practices in C++, common mistakes [closed]

After reading this famous rant by Linus Torvalds, I wondered what actually are all the pitfalls for programmers in C++. I'm explicitly not referring to typos or bad program flow as treated in this ...
7
votes
2answers
3k views

Common mistakes with javascript arithmetic

I've ran into several oddities using javascripts floating point arithmetic, but I can never recall them off the top of my head! What are some common mistakes when using JavaScript to do math?