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
Angular2 Coding Javascript

My conclusions using Angular 2 for the first time

I’ve been working these days using Angular2 for the first time and this is what I have to say. Before starting with this text, I have to say this opinion is totally personal and based in my own experience. Talking about my experience: I’ve been working with Angular 1 for more than three years. I started […]

Categories
AngularJS Coding Javascript

To bind nor not to bind

If you have read my previous article about chaining promises, you’ll know I love using small functions in “then” methods, but sometimes chaining is not that simple. For example, when you have to execute in your “then” method a function receiving two parameters it is not possible… or it is? In these cases you can use […]

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 […]