Frontend Engineer

Code smith, Gamer, Runner who loves frontend development

Barcelona here I come!

Some of you JavaScript peeps know that there is an awesome event that happens every year in Barcelona, called Barcelona JS. They still have tickets and hopefully see you there! The event will take place on September, 1–5. For more info, check out their site fullstack fest.

Continue Reading

Immutable data structures in JavaScript

First let's ask ourselves. What is immutable and why is it so important? Immutable data or objects are not mutable. They lack the ability to have their default state changed after it has been created. Ok but what does that mean really? Massive performance gains Having data or objects being immutable deliveres crazy amount of performance to any large or small data sets you are working on. By just tracking changeable elements inside of your JavaScript for instance is far less expensive to tracking everything and watching to see if anything has changed. Sharing saved data They also have the

Continue Reading

Huh? Is that even valid syntax?!

The importance of staying up to date as a Frontend engineer/developer is crucial. It is often that we encounter a piece of code and say: 'huh?', is that even valid syntax? I have found myself on that path a lot in my career because I tend to push myself to work with as many developers as possible and this has granted me a lot of knowledge on both the frontend and backend. This is a double edged sword of course since I always found myself either teaching or learning of how things can be done differently. There are

Continue Reading

Stateless functions for reusability

It's beneficial to promote code reuse in any language. Let's focus on how to do it in JavaScript and minimize the chance for bugs. The example shown below is an example of what might go wrong if we assume too much what the responsibilities from functions who are interacting with the same established objects. To improve our code and make sure that our functions create is to decouple their memory mutations to their own copy of the data instead of mutating the original. Below a demo to demonstrate. Notice in the createClassRoom "class" I have made use of the Object.

Continue Reading
JavaScript

Partial applications

It's beneficial to promote code reuse in any language. Let's focus on how to do it in JavaScript and minimize the chance for bugs. The example shown below is an example of what might go wrong if we assume too much what the responsibilities from functions who are interacting with the same established objects. To improve our code and make sure that our functions create is to decouple their memory mutations to their own copy of the data instead of mutating the original. Below a demo to demonstrate. Notice in the createClassRoom "class" I have made use of the Object.

Continue Reading