Hjertnes.blog

Syntax.fm

November 02, 2017

Syntax.fm is an awesome Web Development podcast. I’ve been listing to it since the first episode, and I have found out about a lot of awesome stuff through it.

Can’t recommend it enough.

#

November 01, 2017

New emojis 🤯

#

November 01, 2017

Note to self: don’t start updating your Apple Watch when you have a train to catch.

#

November 01, 2017

#

November 01, 2017

Repl.it

November 01, 2017

Repl.it is an Repl(read—eval—print loop) kind of like what you get if you type node or python into your terminal of choice. But it is much nicer to use.

I use it all the time to play around with Javascript features(it supports many more languages though) when I need to show or learn how something works.

#

October 31, 2017

iPhone Ex.

#

October 31, 2017

What’s the deal with pumpkin flavored anything?

#

October 31, 2017

“Sometimes, bad things happen, and there’s nothing that you can do about it. For these cases, Rust has the panic! macro. “ --- The Rust Programming Language

Looping over an Object

October 31, 2017

There are two ways (that I’m aware of) to loop over an object in plain Javascript; either use the for in syntax, example number one below, or by using Object.keys, see example number two.

I personally prefer the fist method, because it involves less typing, but the second example might be easier to understand, if the developers on your team aren’t familiar with the difference between for in and for of.