HN user

larsthorup

11 karma
Posts1
Comments11
View on HN

You are right, and I considered adding that question as well. JavaScript has so many quirks that it's very tempting to use a transpiler. However I do not have any experience with transpilers myself. I also don't see any of them getting a lot of traction, not even CoffeeScript. And then there are people moving towards vanilla JavaScript. It is definitely an important question.

I write JavaScript unit tests using QUnit on one project and Jasmine on another. I can run thoses tests in a browser when debugging, and from the command line for continuous integration. Unit tests are fast and much more robust than Selenium tests. On one project we curently run 800 Jasmine tests in less than 20 seconds. I have written a series of blog posts on the continuous integration side of front-end JavaScript unit testing: http://www.zealake.com/2012/12/25/run-all-your-javascript-qu...

I'd like to see customer involvement much earlier. You could start out solving a specific problem for a customer who will pay you to do it. If that particular problem seems to be relevant for other customers, you can make it into a product. This only requires that your initial contract with the first paying customer allows you to do this, but if you allow the price to go down this should not be a major obstacle. You should probably still go through the intuition and market analysis phases, but the benefit with this model is that the idea will have passed the testing phase already.