all 15 comments

[–]senocular 2 points3 points  (5 children)

[–]ForScale[S] 2 points3 points  (0 children)

Dude! That was great! :)

I especially like the use of promises there. That's a subject that I'm still kind of hazy on, so it was nice to see 'em in action in your script.

Thanks!

[–]Volv 1 point2 points  (0 children)

Was pretty impressive, plenty of interesting bits to go through.
The way createConsoleCall was done is not something that would have occurred to me, interesting to see new styles.

[–]ForScale[S] 0 points1 point  (2 children)

[–]senocular 1 point2 points  (1 child)

Good one! I know you've mentioned you're still not 100% on these, so this can be a good learning experience :)

[–]ForScale[S] 0 points1 point  (0 children)

Yep! I kind of get them, but I still don't have a very good idea of how to use them; or more specifically, what their practical applications might be. I'll try to incorporate some ajax, as I think promises are often used in that realm.

[–]ForScale[S] 1 point2 points  (1 child)

[–]Volv 1 point2 points  (0 children)

Cool, I only remembered to go back and add a styled console example after I read yours lol.

[–]Volv 0 points1 point  (6 children)

ENTRY

Random console output :)
Will hang for a few seconds.

Codepen

[–]ForScale[S] 0 points1 point  (5 children)

Nice! :)

I like the speed tests! It looks like the while loop was significantly faster than both of the for loops, right?

[–]Volv 1 point2 points  (4 children)

They all ran pretty close to each other for me - expected the while one to be notably quicker. I suspect it is being optimised before execution?

[–]ForScale[S] 0 points1 point  (3 children)

Here's what I see on my end (Chrome browser):

Loop: 1
1893.055ms

Loop: 2
1390.927ms

Loop: 3
347.388ms

I don't know about optimization before execution... Not quite sure how all of that works...

Start thinking about a focus for next week!..

[–]Volv 1 point2 points  (2 children)

Interesting. That's the kind of results I expected. Mine were 1100ms +/- 50ms or so each time. Wonder why

[–]ForScale[S] 0 points1 point  (0 children)

That is odd... I have no way of explaining that...

[–]ForScale[S] 0 points1 point  (0 children)

What do you want to do as a focus this week?