Edit: the beta version of my side project timeshake.io — an online calendar builder — is live ! Feel free to create an account, test the app and give feedback :)
As a developer, the moments when I learn the most are those when I am building things. This is true for the stuff I build on the job, but even more when I work on something I choose to work on, a side project that really excites me and that I do on my own time.
Coding a feature or a full product is usually a process of tackling…
As a web developer, I often get to start projects from scratch and make decisions for a bunch of elements, from the technical stack to the final look & feel of the app.
Especially when the stakes behind a project are high, this process can be overwhelming.
I want to share our experience of one month into the City of Paris Startups Program, and the steps our team took to achieve a first operating version of the app.
Some context first: AlloAnim is a web app designed to help the City of Paris find available after-school staff instantly.
Since I made an intensive plan for myself to level up and ace technical coding interviews, I decided to share it with you. …
It is similar to any variable, in that you can use it to hold any type of data. However, it has one important difference: it can hold more than one item of data at a time.
An array is an ordered collection of values: each value is called an element, and each element has a numeric position in the array, known as its index.
Suppose you are building an application that displays all the timetables of buses and trains in your area. The user can select a journey, and you want to be able to tell him how long his trip will take. To do so, you will have to take the arrival time and subtract it from the departure time.
Simply using the written expression of hours won’t be effective : how will you manage to calculate the journey of a night train leaving at 8pm and arriving at 7:58am the next morning? …
One of the differences between the two is that Primitive Data Types are passed By Value and Objects are passed By Reference.
Primitive Data Types are passed By Value and Objects are passed By Reference.
What does this mean ? …
From the words of Kyle Simpson,
Here’s a somewhat academic definition that will help you understand and spot a closure when you see one : closure is when a function is able to remember and access the variables of the outer…
this keyword has the same use as when we use it in a plain sentence : it refers to something that we already introduced earlier.
If I say : “I met Gary Vaynerchuck yesterday at a web convention. This guy is amazing.”, you immediately understand that “this guy” refers to Gary Vaynerchuck.
this refers to an object, and more specifically to the object that invokes the code.
Consider this example:
We created a
customer object with properties and a
greetCustomer method. …
In other words, referring to the scope of a variable equals to answering the question : “where can we access this particular variable ?”.
The scope can be twofold : global or local.
Global : variables defined outside a function are global and accessible from anywhere in your code.
Local : variables defined inside of a function are considered local to that function only. It can’t be accessed or used by any of your code outside that function.
Think of the global scope as the outer…
What does that translate to in my code?
Let’s consider the following snippet of code to understand how hoisting works :
Maybe you expected the console.log to print
undefined, since the
var statement (the declaration ) comes after
rockStar = “Mick Jagger”(the assignment ). We assigned a value to the
rockStar variable before it was created in the code.