DEV Community

Cover image for What is the next big thing in frontend development?
stereobooster
stereobooster

Posted on

What is the next big thing in frontend development?

Photo by Joshua Earle on Unsplash

I had some thoughts about this post quite some time but wasn't sure how to frame it. This tweet helped me

Subseconds build time

Did you see OCaml (you may know it as ResonML or BuckleScript) compiler in action? It caches everything as binary, so consequent builds are like 20 milliseconds. This is totally astonishing. Can not wait to see something like this for JS.

Maybe https://pax.js.org/? Who knows...

Automatic code splitting

Related Parcel RFC

This will pair nicely with React Suspense

Per browser builds

@sitnikcode started this crusade called browserslist (correct me if I'm wrong). Imagine you specify which browser you want to support and compiler (transpiler) will provide builds for each browser in the list with all required polyfills with all required changes to CSS and you can use small script in Lambda@Edge or Cloudflare-Worker to serve appropriate assets at the edge of CDN. Or compiler will fail if your code is not compilable (transpilable) for given browsers.

Also, it would be nice if it would compile it down to ES6

For the reference, here is how builds per browse can look like preact-hn webpack config

What do you dream about?

What is the most expected thing for you?

Oldest comments (39)

Collapse
 
ben profile image
Ben Halpern

I'm not sure whether I love or hate fully automatic code splitting.

I definitely see the edge being more and more powerful and custom, along with service workers.

Where code runs will be more and more important in this sense.

Collapse
 
stereobooster profile image
stereobooster

With suspense it will be seamless, you can split at any point and it will work. And bundler will decide how to pack modules together. And you can use github.com/guess-js/guess, to predict what to prefetch. It's like a magic

Collapse
 
ben profile image
Ben Halpern

Wow, that is incredibly cool.

Collapse
 
sergiodxa profile image
Sergio Daniel Xalambrí

fully automatic code splitting

That sounds a lot like [Require.js]requirejs.org), if you are loading all async then you will made the initial load slower.

But definitely having code splitting easier to do is awesome, if you can just add a single line and create a new splitting point that's is definitely useful.

Collapse
 
stereobooster profile image
stereobooster

Any specific use case on your mind or generally?

Collapse
 
yaser profile image
Yaser Al-Najjar

I dream about a replacement for HTML CSS JS all together, they just have lots of crap for the sake of compatibility... I hope one day we will have clean version of all these langs once and for all.

Collapse
 
stereobooster profile image
stereobooster

Try Elm or react-native-web

Collapse
 
gdotdesign profile image
Szikszai Gusztáv

Mint is like that ;)

Collapse
 
yaser profile image
Yaser Al-Najjar

Seems really nice... hope they reach a mature stage !

 
stereobooster profile image
stereobooster

There are gazillion languages which compile down to JS. Like Elm, Kotlin, PureScript. I do not see any innovation with WebAssembly here. There are for sure use cases for WebAssembly, like performant code for games (WebGL) maybe something else...

Collapse
 
bgadrian profile image
Adrian B.G.

Probably someone will reinvent splitting the files, again, and in 5yrs a new webpack to glue them together again.

Meanwhile
My fav is CloudFlare Edge workers, they are a start to a new serverless revolution, but for front-end. I think more use cases will be found, for networking and backend services, and soon all CDN's providers will support this feature.

Modules in browsers - combined with TypeScript maybe the JS code will not look so bad.
PWA - after Apple joins the board, and hopefully market stores will have PWA apps too, it will open a new market.
WebAssembly ...

I hope for a Flutter web, Dart as a JS alternative sounds great.

Collapse
 
stereobooster profile image
stereobooster • Edited

What so special about "Modules in browsers - combined with TypeScript"? I mean I'm excited about each one standalone, but is there any additional benefit comes from the combo

PWA - after Apple joins

Yes waiting for it. They are polishing it

I hope for a Flutter web, Dart as a JS alternative sounds great.

Anything specific got you excited

 
rhymes profile image
rhymes

Well... Chrome's V8 JIT compiles JavaScript to machine code.

So you can write code that will be auto translated to JS that will be auto translated to machine code :D

Collapse
 
rhymes profile image
rhymes

Frameworks based on progressive enhancement and not SPAs by default.

I think I'll take a look at Stimulus.js at some point...

 
rhymes profile image
rhymes

Why do you need C to develop a frontend?

Have you seen the proof of concept Quake js ?

 
stereobooster profile image
stereobooster

ReasonML it is. But it is a bit raw (not ready for production) for my taste

Thread Thread
 
rhymes profile image
rhymes

But there already are strongly typed languages you can use to write frontend code and V8 (and other VMs are more or less on par) is fast.

You just need to give them a try instead of waiting for the "perfect" solution ;-)

Collapse
 
marvindanig profile image
Marvin Danig

Pure JavaScript apps -- lightweight, no frameworks or libraries.

Collapse
 
stereobooster profile image
stereobooster

Can you explain more? What so exciting about that? (or is it a response to another comment; seems not)

Collapse
 
notriddle profile image
Michael "notriddle" Howell • Edited

Not Marvin, but I can think of two reasons:

  1. The Web specs are a lot more stable than any libraries. Most of what's in the browser platform now will still be there ten years from now.

  2. If it's already in the browser, then it doesn't need to be downloaded, and it can be optimised for speed instead of optimised for size.