Unit Testing: “It’s a code smell if you’re refactoring and there are no collaborators”?
I’m reading The Art of Unit Testing by Roy Osherove. I’m at section 7.2 Writing maintainable tests where the author has this note about code smell:
What is the difference (if any) between (null != $object) and ($object != null) when using PHP?
I am used to Java and therefore always think conditions are interpreted from left to right, i.e. there is a vital difference in null != $obj
and $obj != null
Is it easier to write robust code in compiled, strictly-typed languages? [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]
What are the practical examples of code exploration techniques?
Code Exploration (CE) is quite a new term and I wonder if there already any successful examples of implementing this techniques in terms of Continuous Integration principles?
Should a programmer take writing lessons to enhance code expressiveness?
Given that programmers are authors and write code to express abstract thoughts and concepts, and good code should be read by other programmers without difficulties and misunderstandings, should a programmer take writing lessons to write better code?
Why is Clean Code suggesting avoiding protected variables?
Clean Code suggests avoiding protected variables in the “Vertical Distance” section of the “Formatting” chapter:
Code Measuring and Metrics Tools? [duplicate]
This question already has answers here: What are useful metrics for source code? [closed] (17 answers) Closed 11 years ago. I’m in the process of setting up a build server for personal projects. This server will handle all the normal CI stuff, including running large suites of tests (unit, integration, automated UI). While I’m working […]
How to take a step back and look at code with fresh eyes? [closed]
Closed 8 years ago.
Method flags as arguments or as member variables?
I think the title “Method flags as arguments or as member variables?” may be suboptimal, but as I’m missing any better terminology atm., here goes:
Simple vs Complex (but performance efficient) solution – which one to choose and when?
I have been programming for a couple of years and have often found myself at a dilemma.