Follow

my considered front-end programming opinion 

create-react-app should be illegal

· · Web · 6 · 2 · 26

my considered front-end programming opinion 

@darius I'd take it a step further. no .js files.

my considered front-end programming opinion 

@SkinnyFeels ah, I see, everything in a <script> tag

my considered front-end programming opinion 

@darius e v e r y t h i n g

my considered front-end programming opinion 

@darius oh man.

I have seen this used for single page apps, but in the sense that the "app" literally is a *single page of content*, with a somewhat fancy scroll effect.

That's it.

Somebody needs to explain to a lot of "web developers" what "single-page app" is supposed to mean.

🤦‍♀️

my considered front-end programming opinion 

@rysiek one of the primary problems here is that the default thing that it renders is.... a single page showing an image. Like, render some nontrivial content in your default app if the whole point is to scaffold nontrivial sites!

my considered front-end programming opinion 

@darius shall we use ng new instead? 😉

my considered front-end programming opinion 

@darius I was given a react app to maintain at work. First thing I did was a full rewrite in standard Javascript. Went from a bloated, slow, ~500MB package on a nodeJS server to 3000 lines of standard Javascript that gets the job done in a fraction of the time and can run locally with no server required (although it is now served as static content by nodejs after getting evicted from Sharepoint). And I added a bunch of features in the process...

my considered front-end programming opinion 

@darius Of course the real issue was probably that these people had over a thousand modules being pulled in just to grab some data out of InfluxDB (a basic, unauthenticated HTTP request that returns a JSON object), put it into an HTML table, and do some basic comparisons....but so many of these modern frameworks make that sort of thing WAY too easy IMO...

my considered front-end programming opinion 

@darius don't mind me instantly faving this on every platform

my considered front-end programming opinion 

@darius I always always bounce off frameworks that have a turnkey "we'll generate the whole app structure" bootstrap command like this -- it's obviously unavoidable the farther you get into rails-land, but a huge part of why I loved learning and still love working with flask is because it *doesn't* assume that's the easiest place to start

my considered front-end programming opinion 

@darius having said *that*, if you ever feel like shipping on mobile, I found https://expo.io/ way more usable than the stock react-native tooling (even though I'm ambivalent about react-native in general, right now it's my lowest-effort way of making an ~app~ when I have to)

my considered front-end programming opinion 

@axfelix @darius Most of CRA’s cruft come straight from webpack+babel. We’re about to the point we can assume ES2019+ support in browsers (<script type=“module”>) and if you can use Typescript to convert JSX/TSX then you don’t need babel at all, and snowpack is a start-from-scratch dream compared to webpack. No boiler plate or create template needed. A lot of CRA users seem stuck in an ES5 mindset in 2021. NG on the other hand is a horror show.

Sign in to participate in the conversation
Friend Camp

Hometown is adapted from Mastodon, a decentralized social network with no ads, no corporate surveillance, and ethical design.