The bad-code tag has no wiki summary.
14
votes
9answers
1k views
What to do if a team member delivers bad quality code? [duplicate]
I work as a kind of mixture of a Scrum Master and a team lead. In my team I have the problem that one of the members delivers bad quality. The code he produces is difficult to understand, difficult to ...
120
votes
15answers
7k views
Demonstrate bad code to client?
A client has asked me to do a redesign of their website, an ASP.NET Webforms application that was developed by another consultant. It seemed like a relatively straightforward job, but after looking at ...
5
votes
2answers
314 views
Are side-effects in Array's “every”, or “some” bad?
I've always been taught that having side-effects in an if condition are bad. What I mean is;
if (conditionThenHandle()) {
// do effectively nothing
}
... as opposed to;
if (condition()) {
...
6
votes
4answers
299 views
How do you deal with discovering bad and false code in your team? [duplicate]
Every year in january we process a big task with our system. While the performance during the task was above average the maintaince follow up is currently having a lot of trouble with jobs running too ...
30
votes
2answers
3k views
What is an Anti-Corruption layer, and how is it used?
I'm trying to figure out what the Anti-Corruption layer really means. I know that it's a way to transition/work around legacy code or bad APIs. What I don't understand is how it works and what makes ...
4
votes
10answers
563 views
What to do when a project is too difficult to continue developing?
As a developer, can you tell your project manager that an application is unworkable? Or, if you're a project manager, how would you need this presented to you in order to be compelled? This isn't ...
4
votes
5answers
569 views
How do I maintain a really poorly written code base? [duplicate]
Possible Duplicate:
I’ve inherited 200K lines of spaghetti code — what now?
Recently I got hired to work on existing web application because of NDA I'm not at liberty to disclose any ...
11
votes
8answers
723 views
Do you write bad code when under pressure? [closed]
When you are under pressure, the deadline is approaching, and a manager is breathing down your neck do you find yourself starting to write bad code? Do TDD and best practices slip by the wayside in ...
10
votes
4answers
927 views
What is the worst project you have worked on? [closed]
I've had some nasty ones that had error_reporting turned off, then discover there were thousands of warnings and depreciated code that was unknown to anyone because of the fact.
Anyone else have ...
24
votes
13answers
9k 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 ...
15
votes
6answers
578 views
If a fluent coder disregards good practices, doesn't his fluency work against him?
I am working on a fairly large and buggy application - and due to the way it's written (I'll spare you details, but it violates rules in most areas you can think of), it is next to impossible ...
18
votes
12answers
1k views
What design patterns are the worst or most narrowly defined?
For every programming project, Managers with past programming experience try to shine when they recommend some design patterns for your project. I like design patterns when they make sense or if you ...
23
votes
10answers
1k views
How to prove an application is built on a bad codebase?
I'm currently reviewing a system built by some developers that previously worked at my job. The system works pretty well from a user's point of view, but when delving into code review it's a utter ...
13
votes
3answers
606 views
At the end of my rope
I am a contractor to a big company. Currently, there are three developers on the project, myself included.
The problem is the other 2 developers don't really get it. By "it" i mean the following:
...
20
votes
9answers
726 views
Is it better to use pre-existing bad practices, or good practices that don't fit well with old code?
I was thinking of this because I was trying to write an extension for an existing 3rd party software, and their database is horribly denormalized. I needed to use their existing tables and add a bunch ...