Excuses, excuses, excuses... Login and vote now.
By bloid
via beautifulcode.oreillynet.com
Published: Jan 31 2008 / 11:57
In my last blog I waxed poetic about C. It was heart-felt, but it was also a little bit embarrassing. I do love the language but it does have its share of trouble.
The problem that I run into most often in C is testability, particularly unit-testability. In theory, there should be no problem. It's easy to test simple functions in C. You just call them from a test harness and away you go. The "not so simple functions" are the ones that cause trouble.
SaveShareSend
Tags: c-and-cpp, frameworks
Comments
dzonelurker replied ago:
The title is misleading. C doesn't collide more with Unit Testing than Java or any other language. On the contrary, in principle OO languages are harder to test than procedural languages (although Unit Tests are more widespread among Java developers).
Voters For This Link (5)
Voters Against This Link (0)