Weekly Highlights and Insights: May 6-10

Fit2Cure, unit testing core data, data skepticism, mobile casual gaming market, and the beehive fence


Fit2Cure: Andy Oram introduces a game that crowdsources the search for drugs to cure under-researched diseases of developing countries.

Unit testing core data: James Turner shows iOS developers a less painful way to set up an OCUnit project to test code that uses Core Data.

Even more data skepticism: Beau Cronin and Mike Loukides continue to weigh in on the dangers of blindly copying data collection and analysis methods.

Developing mobile casual games: Jesse Freeman on the impact of HTML5 on game development and the mobile casual gaming market.

Beehive fence saves African elephants: Lucy King’s inventive fence exploits an elephant’s fear of bees to save lives and crops.

Comment |

Tools for test-driven development in Scala

Two core Scala libraries support features for mocking and data generation.

Scala, a language designed for well-structured and readable programs, is richly provisioned with testing frameworks. The community has adopted test-driven development (TDD) and behavior-driven development (BDD) with zeal. These represent the baseline for trustworthy code development today.

TDD and BDD expand beyond the traditional model of incorporating a test phase into the development process. Most programmers know that ad hoc debugging is not sufficient and that they need to run tests on isolated functions (unit testing) to make sure that a change doesn’t break anything (regression testing). But testing libraries available for Scala, in supporting TDD and BDD, encourage developers to write tests before they even write the code being tested.

Tests can be expressed in human-readable text reminiscent of natural language (although you can’t stretch the comparison too far) so that you are documenting what you want your code to do while expressing the test that ensures that code ultimately will meet your requirements.

Daniel Hinojosa, author of Testing in Scala, describes the frameworks and their use for testing, TDD, and BDD in this interview.

Highlights from our discussion include: Read more…

Comment |