As I’m writing a small book about how Modest JS is good enough, here are some of its first ideas.
In order to keep your JS modest:
- Develop a two-way relationship with the dependencies you use. Then they will no longer be things you depend on, but rather things you invest in.
- The browser gives you a ton of good stuff for free.
- Use CSS, server-rendered HTML and SVG. Those are fine. Dress up the HTML and SVG with styling (CSS) and behaviour (JS).
- If the thing you’re building is not going to last, then don’t build it. Don’t take the job. Most startups are part of a game that investors play. Gravitate toward teams that have a clear idea of the problem their software is solving.
- If your business can’t handle complex CSS, CSS-in-JS will likely not end well for your business. Maybe it’s the business that’s exploding in diverging directions. Consider slicing up the CSS by business concern.
- Don’t pick a language or framework that will allow you to build everything. Pick languages or frameworks that work well with the domain you’re building for, and pick domains that are sane for you to work in. Languages come with their own culture, and so go to languages that attract people you’d like to hang out with more.
- Being a good software writer is like any other classy builder trade. You gotta lead your customer to a better version of themselves through what you’re building. Everything is your fault, so lead.
- You can write something big and modest, just like you can write something big and immodest. Your pick.
I’ll go in more depth with these ideas in articles and in the book, so sign up if you’d like to be the first to know when I’ve got something new to share.