Quotes About Code
Whenever I have to think to understand what the code is doing, I ask myself if I can refactor the code to make that understanding more immediately apparent.
~ Martin Fowler
BazillionQuotes.com
When you find you have to add a feature to a program, and the program's code is not structured in a convenient way to add the feature, first refactor the program to make it easy to add the feature, then add the feature.
~ Martin Fowler
BazillionQuotes.com
Poorly designed code usually takes more code to do the same things, often because the code quite literally does the same thing in several places.
~ Martin Fowler
BazillionQuotes.com
Other than when you are very close to a deadline, however, you should not put off refactoring because you haven't got time. Experience with several projects has shown that a bout of refactoring results in increased productivity. Not having enough time usually is a sign that you need to do some refactoring.
~ Martin Fowler
BazillionQuotes.com
In almost all cases, I'm opposed to setting aside time for refactoring. In my view refactoring is not an activity you set aside time to do. Refactoring is something you do all the time in little bursts.
~ Martin Fowler
BazillionQuotes.com
I've found that refactoring helps me write fast software. It slows the software in the short term while I'm refactoring, but it makes the software easier to tune during optimization. I end up well ahead.
~ Martin Fowler
BazillionQuotes.com
Parallel inheritance hierarchies is really a special case of shotgun surgery. In this case, every time you make a subclass of one class, you also have to make a subclass of another.
~ Martin Fowler
BazillionQuotes.com
It reminds me of a statement Kent Beck often makes about himself: "I'm not a great programmer; I'm just a good programmer with great habits." Refactoring helps me be much more effective at writing robust code.
~ Martin Fowler
BazillionQuotes.com
People sometimes ask me what length I look for in a method. To me length is not the issue. The key is the semantic distance between the method name and the method body. If extracting improves clarity, do it, even if the name is longer than the code you have extracted.
~ Martin Fowler
BazillionQuotes.com
If you have to spend effort looking at a fragment of code and figuring out what it's doing, then you should extract it into a function and name the function after the "what".
~ Martin Fowler
BazillionQuotes.com
It's hard to figure out what the right amount of hiding is. Fortunately, with Hide Delegate (189) and Remove Middle Man, it doesn't matter so much. I can adjust my code as time goes on. As the system changes, the basis for how much I hide also changes. A good encapsulation six months ago may be awkward now. Refactoring means I never have to say I'm sorry—I just fix it.
~ Martin Fowler
BazillionQuotes.com
Notice how I'm playing the part of an enemy to code. I'm actively thinking about how I can break it. I find that state of mind to be both productive and fun. It indulges the mean-spirited part of my psyche. When you are doing tests, don't forget to check that expected errors occur properly.
~ Martin Fowler
BazillionQuotes.com
The Rail Fence Cipher Suppose
~ Martin Gardner
BazillionQuotes.com
You can't go wrong when you love others. When you add up everything in the law code, the sum total is love.
~ Unknown
BazillionQuotes.com
The information. Every bit that of information that was ever in your brain. But the information is not the mind Jenna. That we've never accomplished before. What we've done with you is groundbreaking. We cracked the code. The mind is an energy that the brain produces. Think of a glass ball twirling on your fingertip. If it falls, it shatters into a million pieces. All the parts of a ball are still there, but it will never twirl with that force on your fingertip again. The brain is the same way.
~ Mary E. Pearson
BazillionQuotes.com
I kept the fingers of my left hand crossed all the time, while on my right-hand fingers I counted anything at all—steps to the refrigerator, seconds on the clock, words in a sentence—to keep my head occupied. The counting felt like something to hang on to, as if finding the right numbers might somehow crack the code on whatever system ran the slippery universe we were moving through.
~ Mary Karr
BazillionQuotes.com
In time [the newsboys] developed their own dialect and traditions and codes of conduct, the prevailing one being the code of the wild, under which smaller newsboys were regularly plundered by larger ones, the littlest of them--some as young as five years old--being as weak and vulnerable as the baby fish that gave them their nickname: small fry.
~ Unknown
BazillionQuotes.com
Looking back later, we could see that the military code was unreasonable. But at that time, we regarded dying for our country as our duty. If men had been allowed to surrender honourably, everybody would have been doing it.
~ Max Hastings
BazillionQuotes.com
really thats your code name?
~ Michael Buckley
BazillionQuotes.com
To me, legacy code is simply code without tests.
~ Unknown
BazillionQuotes.com
Encapsulation is important, but the reason why it is important is more important. Encapsulation helps us reason about our code.
~ Unknown
BazillionQuotes.com
Remember, code is your house, and you have to live in it.
~ Unknown
BazillionQuotes.com
As the amount of code in a project grows, it gradually surpasses understanding. The amount of time it takes to figure out what to change just keeps increasing.
~ Unknown
BazillionQuotes.com
How do I test private methods?" Many people spend a lot of time trying to figure out how to get around this problem, but, as I mentioned in an earlier chapter, the real answer is that if you have the urge to test a private method, the method shouldn't be private; if making the method public bothers you, chances are, it is because it is part of a separate responsibility. It should be on another class.
~ Unknown
BazillionQuotes.com
