r/javascript • • Sep 23 '19

You might not need a framework

https://medium.com/@pljeskavicica/you-might-not-need-a-framework-79444bda50d2
70 Upvotes

129 comments sorted by

View all comments

-24

u/osoese Sep 23 '19

finally! yes, I understand frameworks make many things easier and structured but sometimes I think its best to roll your own.

11

u/ScientificBeastMode strongly typed comments Sep 23 '19 edited Sep 23 '19

Eh, idk... depends on what you’re doing.

If it’s mostly a server-rendered content site, and you want to bolt on a few widgets, sure, knock yourself out. If you want to build a single-page app with complicated state updates across multiple clients (something my company is currently working on), you’ll want some proven tools to help you manage that complexity, which means a lot of smart people putting their heads together over the years to solve hard problems in elegant ways. Also known as a “framework.”

Another important factor is trying to onboard new hires. You want to enable them to easily walk into an existing project and gain a foothold without too much hassle. It helps when (1) you’re using a framework they already know and have experience with, and/or (2) they have a wealth of accumulated knowledge available to them in the form of up-to-date documentation, tutorials, stackoverflow answers, etc., to guide them when they run into problems.

Those are all related to organizational needs, not technical needs. So while it’s technically feasible to “roll your own” anything, it’s not always wise to do so in many contexts.

Edit: I still think it’s useful for people to build their own front-end or back-end “framework,” or at least an abstraction over the details of managing those things. It really helps with understanding the various frameworks used throughout the industry, and the problems they are solving for you.