Posts Tagged: javascript

Home » javascript

State of JavaScript Survey: 2018 Edition – Criticism from an Angular Perspective

Recently, the results of the 2018 edition of the State of JavaScript survey have been published. As usual, the report comes with handy categories such as front-end, data layer, testing or mobile. While I very much support the idea of creating a yearly survey of the JavaScript landscape and this survey in particular, which I have been supporting since its inception, there's a major issue with this year's edition: In contrast to its previous editions the survey results lump together (or at least the ... Read more

Dinero.js: Working With Monetary Values in JavaScript

Working with monetary values can become a problem in any programming language and JavaScript certainly is no different in that respect. The naïve assumption that monetary values can be expressed as floating point numbers almost inevitably leads to rounding errors caused by precision and the fact that in most cases monetary values are represented as decimal numbers with just two (instead of an undefined number of) decimal places. Apart from that, money is not just a number but usually comprises a currency ... Read more

Dependency Management for Angular Unit Tests Using TestModuleMetadata

Since its inception it's always been one of the eminent design goals of Angular (and AngularJS before it) to make JavaScript applications easily testable and bake unit and E2E testing right into the development process. While the Angular team certainly has succeeded at this there's still the occasional snag you hit when writing unit or end-to-end tests. For the most part, the testing experience with Angular is terrific and testing JavaScript codebases has come a long way but of course there's always ... Read more

RxJS: Observables, Observers, Subjects …

When developing web applications - or in fact any kind of application that involves interaction via a user interface - we inevitably have to deal with asynchronous events, perhaps even streams of such events, e.g.: mouse clicks asynchronous HTTP calls and subsequent display of data push notifications Because events are such an essential part of both the feature set and the user experience of many, if not even most, user-facing applications frameworks such as Angular treat them as first-class citizens and provide developers with ... Read more

Chrome DevTools Tips and Tricks

Chrome DevTools - or rather the development console of your favourite browser - is an essential toolkit for the modern web application developer. They help you with both debugging your own application and understanding and hence learning from other people's JavaScript, HTML and CSS code. Mastering your tools is a key ingredient to mastering your trade. Therefore it's vital to always be learning about how to use these tools more efficiently and how to apply them in different ways or with new ... Read more

Stefan Judis @ RuhrJS 2017: Watch your back, Browser! You’re being observed

At RuhrJS 2017 Stefan Judis gave an interesting talk on DOM APIs in the context of reactive programming and Observables: Read more

On Building Offline-Friendly Forms

Frontend developer Max Böck some time ago posted an article on how to create offline-friendly web forms Using the navigator.onLine method for checking if the user is still connected to the Internet, localStorage and service workers Max outlines a method for alleviating an annoying problem that comes with using forms on the web, particular on mobile platforms: Losing data and having to fill in a form repetitively if you lose your Internet connection before that form has been submitted. Having forms retain data in ... Read more

Creating Resuable Web Components with Stencil

Stencil is a compiler that generates Custom Elements (part of the Web Components specification) for reuse in any JavaScript web framework. Stencil was conceived by the creators of the Ionic Framework as means to build reliable framework-agnostic components. The Stencil developers put emphasis on creating progressive web apps that make use of modern browser features in a user-friendly manner. So, no matter if you use Angular, React or Vue.js for developing web applications Stencil allows you create and share reusable components that run ... Read more

Anjana Vakil @ RuhrJS 2017 – Immutable Data Structures for Functional JS

At RuhrJS 2017 Anjana Vakil gave a fascinating talk on immutable data structures for use with functional programming. This talk involves some great educational storytelling. Even if you've never had a computer science course on data structures and never entirely understood things like hashes, trees or tries, after having watched this talk you will! Read more

Paul Verbeek-Mas @ RuhrJS 2017 – Calendar / Kalender / تقويم (aka, the fun of locali[zs]ation)

At RuhrJS 2017 Paul Verbeek-Mas of NLHTML5 fame gave an interesting talk on the joys and intricacies of i18n and l10n with regard to how time, dates and calendars are rendered in web apps: Read more
Next Page »