Does TDD lead to good design? [duplicate]
This question already has answers here: Why does TDD work? [closed] (19 answers) Closed 10 years ago. I’m in transition from “writing unit tests” state to TDD. I saw as Johannes Brodwall creates quite acceptable design from avoiding any of architecture phase before. I’ll ask him soon if it was real improvisation or he had […]
How do I prevent unknowningly duplicating code?
I work on a rather large code base. Hundreds of classes, tons of different files, lots of functionality, takes more than 15 minutes to pull down a fresh copy, etc.
Using a “dead man’s switch” to manage time-sensitive code
In our software environment, we often run a/b tests, as is probably good practice. However, our environment is set up such that, in very short order, the code starts to become very crufty with dead tests. The testing registry is little more than a collection of internal wiki pages.
Cleaning Up Generated Code: Refactor or Map?
Context:
About clean code
Example: I have a method that formats the output based on a parameter from an object. The question is, should I pass the object that holds the parameter to the method, or just the required param?
Writing Clean, Elegant Procedural Code (BASIC): Is There Such a Thing?
I learned to code in OO languages. I’ve always been interested in design patterns, clean code, etc., etc. – you know the type.
Is there a cleaner way of caching data
We’ve started implementing some caching code in our MVC project. We’ve derived from .Net’s ObjectCache to store it in a SQL database.
Naming guard clauses that throw exceptions
I have a function evaluate()
that parses a String
for some variables and replaces them with their corresponding value:
How much usage of “likely” and “unlikely” macros is too much?
The often known as likely
and unlikely
macros help the compiler know whether an if
is usually going to be entered or skipped. Using it results in some (rather minor) performance improvements.
Web API URI Schema Design
I’m in the middle of designing an API for a very basic flashcard application for learning purposes and I’m wondering if you all think there can be any improvements.