Image for post
Image for post

Let’s look at the concept of Value vs Reference. Every JavaScript developer should know this topic as it’s often the reason behind bugs in today’s applications. Also, it’s often one of the job interview questions.

I will cover the basics as easily as I can in this short article.

Image for post
Image for post

Don’t scroll down too quickly. Do you know what these two examples return?

console.log([10] === [10]);
var oldArray = [];
var object = {};
object.newArray = oldArray;
oldArray.push(10);
console.log(object.newArray === oldArray);

The first one is false and second one is true. Was your answer right? Let’s look at why.

In JavaScript we have types that are copied by value and types copied by reference. These…


TLDR: you can generate a website with static website generator tools such as gatsbyjs, host it for free on GitHub-pages or firebase with HTTPS, and CloudFlare non-www to www redirect. A Contact form can be easily setup without server-side code Formspree.

Image for post
Image for post

A while ago I decided to build a website in javascript. I didn’t want to use PHP and WordPress as I usually do for a simple presentation website. My first choice was some server side javascript framework for nodejs (such as sailsjs). I didn’t want to build my own VPS to run nodejs, so I would need to pay for some platform like Heroku. However, it is still a little expensive compared to a standard PHP hosting, where I can host a site for 20 bucks a year. …


Image for post
Image for post

This article is written for Angular 2+. At the time of writing the latest version was Angular 4.

Update (June 2019): Still valid for Angular 8

It’s written for beginners — if you are an advanced or intermediate Angular developer you probably already know all these techniques.

Edit: Although, the title of this article is a bit misleading because we do not want to communicate between components directly. Our components should be isolated and encapsulated. I chose this title because I think developers struggling with this will be googling it this way.

How to communicate between components? This is the topic I’ve seen many new Angular developers to struggle with. I will show you the three most common approaches, with examples that fit different use cases. …

About

Miro Koczka

Software engineering, Product development, Growth Hacking. I enjoy building web & mobile applications people love to use. More about me on www.mirokoczka.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store