Joel Thoms 🍻 #JavaScript Profile picture
Computer Scientist and Technology Evangelist. Cat person. former C# master turned JavaScript blogger: https://t.co/lx8Rk1idiH - he/him
Feb 25, 2020 12 tweets 7 min read
1/12🔥A fast [thread] about what to expect after Hello World

🎉Congratulations! You have just written your first Hello World Express.js app in Node.

#javascript #100DaysOfCode 2/12 But you quickly discover any Error that happens in an async thread (like after an API call) will fatally crash Express.😢
Jan 6, 2020 10 tweets 12 min read
🔥🔥🔥 The #1 Recursion (Syntax) Twitter Thread

This thread will demonstrate an easy way to write recursive functions

The recursion will so be compared to a for loop for familiarity

Tail Calls and Performance discussed later, Syntax Only!

gist/theme at end 👇

#javascript Step 1: Create your iteration variable(s)

In recursion, it can be easier to set a default value. Pass `i` again when calling `loop` on the `return` line

#javascript #code #dev #es6
Aug 2, 2019 6 tweets 5 min read
👁️👁️Watch me refactor an simple API in four simple steps. (a twitter thread). ⚠️Warning, may contain currying and partial application 😉
#javascript #es6 Refactoring Step 1: Eliminate the code `.then(response => response.data)` in each function by extracting this to a function called `getResponseData`.
#javascript #es6