Prevent silent module overrides, misspelled directives, undefined expressions.
Loading and running simple Angular app under Node.
A function can configure itself via options argument to keep API clean and simple.
Selective argument binding using lodash, ramda and heroin
Methods one needs to call to make the unit tests work.
Reflecting on the first year of blogging about software development.
Locating the exception in minified JavaScript code.
Avoid using `this` keyword in the API object revealed from a module.
Debugging unit tests run by Karma using Chrome DevTools.
Testing lazy async assertion by spying on objects.
Tag places in your private source code as good examples for others
If I had to design static source code analysis service
How to observe JavaScript v8 JIT events
Iterating over objects using lodash functions.
Clear and easy to read defensive programming with check-types.js and check-more-types.js
Grunt plugins for tightening a project - linting, complexity, todos, etc.
Writing a functional adaptor makes a nice interview question.
Everyday Calculus, Discovering the hidden math all around us by Oscar E. Fernandez.
Run unit tests in production environment using lazy-test
An argument for trying Ramda if you love _
Exploring the marvelous materials that shape our man-made world
Easily test code in private closures using test-mole.
How to open source pieces of your software
A delicious feast of mathematical, geometrical and historical dishes.
Asynchronous processing using ES6 generators.
Promise chain looks like a railroad with two tracks.
Example refactoring a block of code containing OR condition
A small team can produce high quality software without exhaustive and long testing cycles.
Pick QUnit/gt if you need TDD, use Mocha if you want BDD, and Ava if preparing for the future.
We use assertions in our unit tests instead of built-in matchers.
Single method working as both getter and setter
Promise throttling and flatMapLatest equivalent
The power of mathematical thinking
Same simple problem solved in different programming styles.
Keeping the same load order of files and tests can lead to hidden bugs.
Keep dependecies up to date to get bug and performance fixes, not features.
Use lazy and helpful assertions instead of Jasmine matchers in the unit tests.
Another set of examples using generators.
Current level of ES6 in various tools.
Explanation of closures via lexical scope
One can easily apply too much or wrong type of curry.
Extend promises returned by $q with timeout method
You can quickly verify complex logic if you use structured JSON logging.
An example adding a flexible timeout method to promises
We can extend objects built from JSON strings by pointing to a different prototype object.
Make constructor functions work without "new" keyword in callbacks.
Combining functions into custom iterator callbacks and using _ will be easier if you put callback function first and data second.
Playing with ES6 generators in Node.
Flexible assertions without performance penalty.
Using Jade instead of HTML for AngularJS directives.
Access angular model and update DOM from the browser console.
Using providers to inject runtime values into modules.
Experiments with thread-local storage in Node.
How to avoid having to bind functions to contexts.
Finding the size of the memory allocated for the stack.
If a directive is recursive, you must use template url to avoid infinite loop.
A few useful applications of AngularJS parsing service.
Comparing 3rd party assertion libraries expect.js, should.js, etc.
Simplify on deman resource loading with promises.
How to bind any argument by name
Event-driven input/output makes for an efficient system for distributed computing.
Examples of dependency injection in javascript
Use .done() at the end of your Q promise chains to throw any unhandled exception.
Tiny library functional-pipeline composes functions in left to right order.
Great book, solid advice, focused on D3-specifics.
How to test promise-returning code.
Number of input data checks depends on the distance from the caller.
How to connect multiple promise-returning methods into single chain.
Angular library can be loaded under Node synthetic browser environment.
Stop hunting phantom problems due to name collisions.
Grunt tasks that accept default options or can be configured.
Search text files using grep and skip Node 3rd party folders.
How to spy on methods using sinon.js
Books to read to learn JavaScript.
Test D3 drawing code without running a browser for speed.
Making my own clone of the popular browser game.
Examples of using lodash, angular, check-types, ramda assertions
How to prevent hard to debug AngularJS injection errors due to minified code.
AngularJS relies on closures rather than modules, removing need to bind a context.
My HTML framework for simple drag and drop presentations from Markdown files.
How to load JavaScript libraries from CDN but use local copy if there is timeout.
Remove unit testing coverage from the collected data.
Create and use objects without any prototype.
Example Angular application fetching more data on scroll.
Catch all possible errors using both global and angular error hooks.
How to pass configuration into AngularJS during server-side template rendering.
Collecting JavaScript code coverage and sending to coveralls.io
How to connect promises into single sequence.
You can easily perform CLI end to end testing by checking the exit codes.
Effectively reading technical books by using agile epics.
Example refactoring a block of code containing AND condition
EcmaScript6 generator that does nothing
Use jshint to statically check JavaScript inside HTML pages.
How to set and see git branch descriptions.
How to develop AngularJS applications in offline mode.
A way to unit test JavaScript code inside Markdown blog posts.
Getting around typical JavaScript pitfalls.
Precompiling all AngularJS HTML templates into single javascript bundle.
Handling the errors in the promise chain.
How to test Connect or Express middleware functions.