News for hackers. Stuff that matters.
Re:The tragedy of 100% code coverage (2016) by vincnetas on Tuesday May 09, 2017 @12:44AM (#14297792)
What are the languages that have testing not as afterthought?
Re:The tragedy of 100% code coverage (2016) by pacaro on Tuesday May 09, 2017 @12:55AM (#14297819)
This depends on how you think of things. Some languages (Eiffel?) have pre- and post-conditions, which do some of this job. Much of the boilerplate testing done for dynamic languages is done by the compiler for static languages. The borrow checker in Rust is doing the work that a test suite and/or static analysis tool would be doing for C/C++
Re:The tragedy of 100% code coverage (2016) by realusername on Tuesday May 09, 2017 @12:52PM (#14301662)
Definitely Ruby in general, testing is a core of the language culture.
Re:The tragedy of 100% code coverage (2016) by pkroll on Tuesday May 09, 2017 @04:21PM (#14303479)
That doesn't mean testing isn't an afterthought in Ruby, the language. It means the culture built up a defense against writing buggy code.
Re:The tragedy of 100% code coverage (2016) by tracker1 on Tuesday May 09, 2017 @11:48PM (#14305793)
I think that's the nature of a dynamic/scripted language... it's just easier to handle in Ruby and JS than many other languages.