Categories
Coding Javascript

How to manage Webpack configurations

Configuring Webpack is quite easy but it may become more difficult if there are many environments and requirements. I’ve included Webpack in different projects recently and I would like to share with you an easy way to configure it. I’m sure there are many different ways to configure Webpack, maybe better, but I’m just going […]

Categories
Coding Javascript

Introduction to Node modules and ES Modules.

In one project I’m working on, we have migrated from a non-standard building tool to Webpack. This change has allow us to use a standard module system to import/export our code instead of the legacy builder we were using to just concatenate code. Why is useful to use Javascript Modules? Javascript modules are needed to maintain […]

Categories
AngularJS Javascript

Clean code chaining $q promises

$q promises for angular are not only good for async tasks but an incredible way to write clean and readable code. Since a few months, I’ve decided to write my code in very small functions with its in/out parameters and its detailed documentation. Maybe you are not following the relation between $q promises and organizing […]