2 ms·
Historically (not today) C++ programmers were far less likely to ever write a test to make sure if (line == "" || line[0] == '#') continue; does what they t
by logicallee 10y ago
Historically (not today) C++ programmers were far less likely to ever write a test to make sure
if (line == "" || line[0] == '#') continue;
does what they think it does than the Perl programmer was to write a test to make sure
next if (/^(#|$)/);
does what they think it does. The C++ programmer was far more likely to eye-ball it. This is a simple, historic fact. TDD came to Perl before it came to C++.
I am making a simple statement about actual practices, not some kind of larger point. TDD came to Perl earlier. simple fact.
- smitherfield 10y ago“if (line == "")” most certainly does not do what you "think it does" in C++.