News for hackers. Stuff that matters.
Re:LightTable detailed critique: Concept vs Reality by Zak on Sunday April 22, 2012 @11:52AM (#3875109)
I also would like to see a system that forbid me to write code that is not covered by a unit test yet.

I suspect that would lead to the people who are currently not writing unit tests writing useless tests just to circumvent the requirement. It would also make exploratory programming, where you haven't completely figured out what you want it to do much more difficult.

Re:LightTable detailed critique: Concept vs Reality by Someone on Sunday April 22, 2012 @03:51PM (#3875861)
See, THAT is why you think before you leap. Iteration #1: make it 'forbid to commit code' instead of 'forbid to write code'.

And I agree that that might only work fine in safety-critical code.

And writing useless tests won't help if this would be as strict as I envision. Imagine a project where you cannot commit

   if flag:
     doA
   else:
     doB
unless you have a test that hits the doA part and a test that hits the doB part. Complete code coverage, enforced by the system. I am thinking more and more that I do want to see such a tool, but not really will want to use it. Maybe iteration #2 is "hm, that is not the best of ideas". Although, if somebody would want to pay for such enforced code coverage, it could be fun to search for with design patterns that help it make easier to write such code...
Re:LightTable detailed critique: Concept vs Reality by Zak on Sunday April 22, 2012 @08:04PM (#3876613)
Are you reinventing design by contract using tests?
Re:LightTable detailed critique: Concept vs Reality by Someone on Monday April 23, 2012 @06:13PM (#3881246)
Now you mention it: yes, probably.