Link Details

Excuses, excuses, excuses... Login and vote now.
Link 64077 thumbnail
User 111696 avatar

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.
  • 5
  • 0
  • 645
  • 201

Comments

Add your comment
User 236137 avatar

dzonelurker replied ago:

0 votes Vote down Vote up Reply

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).

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (5)



Voters Against This Link (0)