Whether you re writing javaScript for the browser or for nodeJS, the question exists: what unit test library should I use to ensure my javascript code is working as expected? There are plenty to choose from, and several that are popular.
New things and writing about learning, technology, and art
A new way to share data
I'm happy to introduce you with genealogic-d3, a Javascript visualization library to nicely display genealogy trees that I've been working on during the past 3 days.
I'm quite satisfied by the result. You'll find a live demo you can play with at https://chezsoi.org/lucas/genealogic-d3/skywalker.html
I …
Inspired by this tweeter post by Marcus Lagergren and the JS1K competition, here is a valid Javascript code snippet for you obfuscated code lovers:
ー=!+[]+!+[]+!+[]+!+[],ߺ=ー+ー,ǀ=ߺ+ߺ,ꓹ=!+[]+[],ǃ=!+[]+!+[]+!+[],ᚐ=ꓹ[+[]],ꓹ=ᚐ+ꓹ[ǃ]+(![]+[])[ǃ]+ᚐ,ᚐ=/,/[ꓹ]+[],ꓹ=ǀ+ߺ+!+[]+!+[],ꓹ=ᚐ[ǃ]+ᚐ …
This year I submitted a piece to the JS1K competition: "You Are Here". JS1K is a competition for writing JavaScript demos that are no larger than 1024 bytes. This blog post describes some of the tricks I learned along the way: Writing small code Compressing data Using Closure Compiler efficiently to minify the code Using…
JavaScript patterns and antipatterns collection
By: @HenrikJoreteg
book-of-modern-frontend-tooling - The Front-end Tooling Book
I've got many post ideas in the past two weeks, but none of them made it to the blog yet. While those scribbles are maturing, there is a short hack for the wonderful datepicker pluging for bootstrap.js.
Given a datepicker initialized on a $('#date-picker …
I was reading Steve Souder's blog post on loading scripts without blocking in which he notes that dynamically creating a <script> element and assigning
Before abandoning JsTestDriver (hello Karma!), here’s a summary of my setup and a boilerplate for future reference. Why use JsTestDriver (JSTD …
App logic and structure expressed in HTML, which is enchanting for beginners (Look’ma no JS, magic!), but terrible for r…