Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
michaelfeathers
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
65 ms
·
691.
▲
by
michaelfeathers
16y ago
I agree with both you. The thing is, we don't need to appeal to a sense of balance. It's good practice to write tests for the things we change. But, in every code base under version control, we have data. We can make this empirical. Sta
692.
▲
by
michaelfeathers
16y ago
As much as I advocate automated testing, I've seen people waste time with it also by chasing coverage goals. If you are writing a new class or a new method, by all means, write tests for it. Getting tests around all of your currently exist
693.
▲
by
michaelfeathers
17y ago
The article mentions a peak during dinner time, but many Europeans eat dinner later than Americans. In fact, in some areas, the answer to "what do Europeans do at night" (7-10PM) might be: dinner.
694.
▲
by
michaelfeathers
17y ago
I use QuickCheck, but it wasn't germane the point I was making so I didn't mention it. Actually, I did think of using sum when I was computing the length differently, but I made another change and never got back to it. I agree, sum would b
695.
▲
by
michaelfeathers
17y ago
It's a mixed bag. Yes, C++ forces you to slow down and be deliberate, but you're slowed down when you're on the wrong path and trying to get back to the right one also. I can't tell you the number of large C++ code bases I've seen which a
696.
▲
by
michaelfeathers
18y ago
I agree about defensive programming, but I think that systems are really good to the degree that there are meta-rules which are predominantly in people's heads. The thing is, the meta-rules should be few and obvious in the code. You shoul