adambd
Plain JavaScript event delegation
Better webfont loading with using localStorage and providing WOFF2 support
Douglas Crockford speaking about the new good parts of modern JavaScript
Automatically adjusting the height of a textarea to its content text
Loading webfonts with high performance on responsive websites
Loading web pages really fast – optimistic page loading with Instantclick.io
Generating sound effects with client side JavaScript
Boilerplate for static site generation
Automatically loading Grunt tasks with matchdep
A simple usability trick for Google Maps
Panning and scrolling background images using the canvas element
Finding a random document in MongoDB (with benchmarks)
Tracking clicks with Google Analytics
Comparison helper for Handlebars.js
Re:Ask HN: Can Jasmine Unit Tests Expose Security Vulnerabilities on S...
on Wednesday February 12, 2014 @06:49PM (#7228334)
I mean something like you call a REST API where you create fake data which is then visible on the production site.
To avoid this, you should mock AJAX calls.
Re:Ask HN: Can Jasmine Unit Tests Expose Security Vulnerabilities on S...
on Wednesday February 12, 2014 @05:59PM (#7228001)
If I understand correctly what your question is, it shouldn't be a problem. Since your JavaScript - which you are testing - is publicly accessible, the tests shouldn't do any harm. They cannot do anythin, what the users couldn't do anyways.
What can be a problem: if you produce sample data during running the tests, you are going to produce a lot of trash data in your production environment. But you shouldn't do it anyway - just mock AJAX calls and so on.
One more reason to check for strict equality in JavaScript
Finally always wins, unless you crash your computer meanwhile
Strange error when installing npm package globally on Ubuntu
Defining properties in JavaScript
Playing Mario in the browser
Building desktop apps with node.js and web technologies
A simple PubSub module in JavaScript
How to redirect www to naked domain and vice versa with Nginx?
Re:
on Monday February 03, 2014 @05:18PM (#7173916)
I think nowaday is not the idea one should "protect". These days everybody has many ideas. The real value today is to succesfully develop the idea into a product or service which delivers value.
So just start working on it, show it to other people, try to find somebody who works on it with you (a developer), and collect some feedback.
Don't be affraid! If it is really a good idea, it's surely gonna be copied by others. :)
How to register your first bower package
Re:Fat arrows for JavaScript – aka lambda expressions like in C#
on Monday February 03, 2014 @04:24PM (#7173595)
Would you like to see this feature also in Chrome? I'm really a fan of this syntax, because it's so easy to read and understand what is really happening.