I'll never forget when somebody asked me about their code that had React, Redux and Redux Saga to make 4 requests for data and then render a single page. Nothing interactive at all.

I suggested ditching all the JS with a quick node script to make the requests and write the html.
async function build() {
let a = await fetch(x)
let b = await fetch(y)
let html = `<html><div>${ http://a.foo }</div>...`
process.stdout.write(html)
}

build()

---

$ node build.js > index.html
It's hard to understand why people reach for complex solutions for simple tasks. I started web dev when there was only html, so I grew up with it as it grew up.

Hammer drills are cool but a screwdriver is often better. Are bootcamps, online courses only teaching hammer drills?
You can follow @ryanflorence.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: