Remix.run Logo
brazukadev 3 hours ago

Is it some bundled code or those ~4k lines are written just for that case? You don't reuse even your own code?

I would start by organizing the code in a sane and logical way. But that's why I said, if you enjoy coding this way, great.

austin-cheney an hour ago | parent [-]

It is arranged in objects defined as TypeScript interfaces. It can be easily broken down into numerous smaller files and be equally organized, but then the code would be in multiple places without any benefits except that there would be fewer lines in one file.

I get the impression that people who are only used to seeing front end code as JSX don't have any idea how to proceed when its just JavaScript. If they aren't also writing code outside the browser they are likely never exposed to application code in any real form because all they see is template abstractions. The reality is that it is just JavaScript which is no different in the browser compared to in Node, except for calling a different API. If this is the case then anything that isn't JSX is cause for an anxiety attack, most especially if its more than 120 lines of code.

If you are not capable of reading code then no matter of alternate guidance will matter.