|
|
|
|
|
by jdnordy
2220 days ago
|
|
Great point. I actually wrote about this as I reflect on building the website. Next.js pre-renders the static files at build time, so JavaScript isn’t building the site on the client side or even on the server side. You get the benefit of writing in React (DRY, modular, and JavaScript focused) over just writing HTML. |
|
DRY, modular, etc. are not blanket principles that one must honor at all cost, in every circumstance. They are ways to simplify and organize complex code bases. Not making the code base complex in the first place takes first place, though.
Brian Kernighan wrote "Controlling complexity is the essence of computer programming." The best way to control complexity is to eliminate it, and not introduce it in the first place.