I learned a neat trick today. You can't break a javascript forEach loop but you can break a some and an every but there are specific rules.

`some` will only break when a value equivalent to true is returned`every` will only break when a vlue equivalent to false is returned

The reason is because these fuctions are accomplishing similar but different tasks. They each return an overall synonpsys of what happened durind each iteration.

For example:`some` will return `true` if SOME of the iterations return true.`every` will return `true` if EVERY of the iteractions returns true.

This explains why sometime they run full length and sometimes they don't. Depends on the needs!

written by jackson | comments(0)

TDD is great for large applications, TDD is great for teams. The only time not to use TDD is if you're just beginning with coding. If you understand the basics, move to TDD next. For those of you ready to learn about TDD here are some great articles I either found or had referred to me.

Difference Between TDD and BDD - A Helpful Stack Overflow Answer

written by jackson | comments(1)

I found out about this watching a youtube video. The author used mockaroo.com to mock up data quickly. This is great for when you merely need test data any any given popular format.

written by jackson | comments(0)

I discovered this on accident while answering a question on stackoverflow

Math.max(...[1, 2, 3]); // 3
Math.min(...[1, 2, 3]); // 1
written by jackson | comments(0)

I wanted to use Ubuntu ARM 14.04 on my rpi3 but the SD card wasn't even recognize by my rpi3. I even moved a working SD from a rpi2b to my rpi3 with no sucess. I've come to find out via SOF that if you want to Install Ubuntu ARM to a Raspberry Pi 3 that you need to install the newly compiled Ubuntu for the rpi3. Here's the link to download Ubuntu MATE for the Raspberry Pi 3

written by jackson | comments(0)
Syndicate content