Array Cardio Day 2

Array Cardio Day 2

Array Cardio Day 2

In today’s edition of “Array Cardio” we were working with two arrays, one of people and another of comments.

The people array had birth years associated with their names. The array methods .some and .every were used to determine if some or all of the people were over the age of 19. To detemine the person’s age the current year was retrieved via the Date() instance, the person’s birth year was subtracted from that and what remained was the person’s current age.

In the comments array the .find method was used to find the array index number of an item with an particular id number. .slice was then used to split the array at the point of the item we had found. This was then spread into a new array. I like to think of this as a form of non-destructive array editing. ????

Revisiting JavaScript, my long lost friend.

A screenshot from the "Array Cardio" tutorial.

A screenshot from the “Array Cardio” tutorial.

Exciting times ahead, I’m currently working through the vanilla JS course at javascript30.com by Wes Bos. I stumbled across his CSS Grid course a couple months ago and just learnt so much then. This course is shaping up to be just as enriching.

What I’m really finding interesting about studying JavaScript in 2018 are the changes that have come about since ES6 || ES2015, especially how variables have progressed.

I’ve bought Sitepoint’s “Javascript, from Novice to Ninja: Edition 2“. I find that reading this book when I’m not doing tutorials re-enforces what I’m learning and fills in the gaps.

JS socially speaking I’m looking forward to my EPIC friend Jeff Knaggs presenting at the next CHCH.JS meetup session. If “building a small React app, using setState for state management” sounds like your thing I’ll see you there!

Until next time,
Benet.

|| Tech House || Episode #007 – What to do when your website gets hacked

Thanks Douglas Adams for the sage-like advice. www.douglasadams.com/creations/hhgg.html

Thanks Douglas Adams for the sage-like advice. www.douglasadams.com/creations/hhgg.html

Hey there,

For this episode of Tech House James and I talk political hackers, what to do if your site gets hacked and how to prevent it happening in the first place. Some key points are:

  1. Don’t panic
  2. Don’t take it personally
  3. Contact your hosting provider or ask a friend to help
  4. Search online for a local web development company to help out. Where I work at, Meta Digital, specialise in fixing hacked sites.
  5. Don’t get hacked in the first place 😉
    1. Keeping your website’s content management system (CMS) up to date
    2. Install security plugins/modules
    3. Setup a backup system

Related links:

Peace,
Dr H.