Image Image Image Image Image
Scroll to Top

To Top

Articles - Web design, web development, technology, mobile dev

11

Oct
2017

In Audiobooks
Devops

By Manny

The Phoenix Project

On 11, Oct 2017 | In Audiobooks, Devops | By Manny

I recently got into audio books and became an Audible subscriber. One of the first books I got stuck into was The Phoenix Project by Gene Kim, Kevin Behr, George Spafford.

This is a great book (audiobook). I had so much fun listening to this book in the traffic and on the bus rides into work, I highly recommend it if you are in the IT industry. It’s fast paced listening very funny and dramatic in places.

You should check it out for sure.

 

09

Feb
2017

In Design

By Manny

indent design studio, typography, branding

On 09, Feb 2017 | In Design | By Manny

Hello there fellow designers, developers and internet travellers. I would like to introduce you to dear friend of mine. Denton, he runs a design studio in Cape Town specialising in custom typography and branding you should total check him out. Its not often you come across such dedicated craftsmanship these days, every detail matters and you can see it in the work.

Here are some samples of his work =>

indent design

Want to see more go to www.indent.design

01

Jan
2017

In JavaScript

By Manny

What is a forEach method

On 01, Jan 2017 | In JavaScript | By Manny

The forEach method is a special kind helper method available to us on an array.  It helps us loop/iterate over an array. It is an alternative method to iterating over an array using a for loop.

for loop

var cars = [ 'Lambourgini', 'Porsche', 'Ferrari', 'Mazarati'];

for (var i = 0; i < cars.length; i++) {
  console.log(cars[i]);
}

forEach

var cars = [ 'Lambourgini', 'Porsche', 'Ferrari', 'Mazarati'];

cars.forEach(function(car){
  console.log(car);
});

When we call the forEach method we pass it an anonymous function, this is that internal argument. This function gets called one time for element in the cars array. This function can also be called the iterator function. In this example it will get called four times.

We can also extract the anonymous function to a listCars function that will later be passed in as an argument to the forEach method.

var cars = [ 'Lambourgini', 'Porsche', 'Ferrari', 'Mazarati'];

function listCars(car){
  console.log(car);
}

cars.forEach(listCars);