Hack: Quickly Verify That All Your Mocha/Chai Tests Have Valid Assertions

Chai is a popular Node/browser assertion library. However – as everything – it has its flaws. An important flaw is that it performs checks on property access – and if you e.g. misspell the name of an assertion, it will be just ignored (for there is no way for Chai to know that you tried to accessContinue reading “Hack: Quickly Verify That All Your Mocha/Chai Tests Have Valid Assertions”

Git pre-commit hook that fails if “it.only” used (Jest/Jasmine)

One of the annoying things with Jest is that while it enables you to run only a single test by using it.only, it does not report this in any noticeable way. Thus you can end up in the same situation as we did, not running many tests without knowing it. (Oh yeah, if we onlyContinue reading “Git pre-commit hook that fails if “it.only” used (Jest/Jasmine)”

Running JavaScript Tests On a CI Server With Karma, Chrome And Fake X

So I want to run my JavaScript tests in a browser on our CI server. But the server has no graphical environment and the tests do not run under PhantomJS 1.x because it uses too old WebKit without ES5. The solution? Use a real browser and fake X via Xvfb. The browser I use isContinue reading “Running JavaScript Tests On a CI Server With Karma, Chrome And Fake X”

Most interesting links of February ’14

Recommended Readings Development Falsehoods Programmers Believe About Names – summary: there are no rules that apply to names, do not assume anything (my favourite: 12 + 13) Nathan Marz: Principles of Software Engineering, Part 1 – Nathan has worked with Big Data at Twitter and other places and really knows the perils or large, distributed, real-time systems andContinue reading “Most interesting links of February ’14”

Most interesting links of December ’13

Recommended Readings Society HBR: Want to Build Resilience? Kill the Complexity – a highly interesting, thought provoking article relevant both to technology in particular and the society in general; f.ex.: more security features are bad for they make us behave less safely (risk compensation) and are more fragile w.r.t. unexpected events. “Complexity is a clearContinue reading “Most interesting links of December ’13”

Most interesting links of September ’13

Recommended Readings Stuff The Internet Says On Scalability For September 13, 2013 – a collection of interesting performance related articles with summaries (via @_dagi) Can you copy a culture? The NUMMI story (audio/transcript) – how the GM factory with the worst workforce has been turned around via a good application of Toyota Production System –Continue reading “Most interesting links of September ’13”

Most interesting links of August ’13

Sorry folks, this month it will be very brief. I have many more great stuff in the queue but haven’t managed to write it down yet. Next month will be heavy 🙂 Recommended Readings Interested in native vs. webapp? Check out Why mobile web apps are slow (mobile browser much slower, not much real improvements,Continue reading “Most interesting links of August ’13”

Most interesting links of July ’13

This month focuses on languages and approaches (reactive programming, F#, Erlang, FP talks etc.), agile (need for speed, recommended books), Clojure/Linux/cloud tools and libs. Recommended Readings Development, agile The Need For Speed – the top 10 reasons for fast development flow (with time to market being one of the less important) – more learning, focusContinue reading “Most interesting links of July ’13”

Tools for Editor – Browser Integration for Interactive JS/HTML Development

Chrome Development Tools and similar ones are great for interactive, exploratory coding of JavaScript, HTML, and CSS – but the changes aren’t persistent and the tools haven’t the power of a programmer’s editor. I’d like to be able to use a powerful editor yet be able to see changes to JS/HTML/CSS without having to save-[compile]-reloadContinue reading “Tools for Editor – Browser Integration for Interactive JS/HTML Development”

Most interesting links of November

Recommended Readings Recommended Reading by Poppendiecks – an excellent selection, starting with Lean from Trenches, Management 3.0, Specification by Example, The Lean Startup etc. Eric Allman says that Programming Isn’t Fun Any More  because problem solving has been replaced with learning, configuring, and integrating tons of libraries, frameworks, and tools and many people agree withContinue reading “Most interesting links of November”