DEV Community

Cover image for ⚡️Reactend "The story of react.js on backend"

⚡️Reactend "The story of react.js on backend"

Orkhan Jafarov on February 12, 2021

Hey guys! As I promised in my previous article. Here's the project/framework to build your React-like http-server. @reactend/express repo link ...
Collapse
 
vonheikemen profile image
Heiker

Oh, I didn't say I liked it. I find it fascinating (and horrifying) how people these days are trying to use XML-like syntax.

Also, where is that time machine you speak of?

Thread Thread
 
orkhanjafarovr profile image
Orkhan Jafarov

Exactly! Mobile native apps with XML-like syntax? The worst idea ever, they said

Collapse
 
orkhanjafarovr profile image
Orkhan Jafarov

Just an experimental project as I described at Conclusion part. React Native was experimental too and many other uncommon abstractions and ideas. I’m not out of understanding how Nodejs/httpserver/backend works and best practices. Yes, of course it’s not a great idea at all, I didn’t say that. But as uncommon solution it’s interesting to go deeper.

Collapse
 
cliffordfajardo profile image
Clifford Fajardo • Edited

Hey Lukas,
Its an experiment 🧪 - the same arguments can be said about other popular declarative languages. Even though this project doesn't have widespread popularity like React or technologies like HTML its a awesome cool project in my opinion

"that aren't suitable for tasks like this"

  • SQL:
    • when first released people initially didn't like declarative code, since it was yet another abstraction. But would you prefer to manually write up the the highly optimized code from hand that SQL (or any other DB) creates for you during the parsing phase, which then gets analyzed re-written by the query optimizer?
  • HTML/CSS: same here. Id prefer writing this declarative code any day then writing the imperative code which would involve tons of loops, if/else statements etc

When you have a higher level abstraction like this, the underlying code can change without the userland code changing. Maybe today this JSX looking code spits out javascript code, but nothing is stopping people from converting the JSX input into Rust or whatever compile target you wish

Many people and companies are already doing stuff like this (abstracting the imperative code with declarative code) at scale ...Google, Facebook you name it

This project is in its infancy; there are pros and cons to imperative and declarative languages

Collapse
 
feco2019 profile image
Dimitris Chitas

Nice work mate

Collapse
 
devhammed profile image
Hammed Oyedele

Nice work!

Create an organization on GitHub instead.

Collapse
 
orkhanjafarovr profile image
Orkhan Jafarov

Thanks mate, On it :)

Collapse
 
devhammed profile image
Hammed Oyedele

I would like to be part of this innovation, I have good experience working with react-reconciler.

Thread Thread
 
orkhanjafarovr profile image
Orkhan Jafarov

oh, that's awesome. Email me pls :)

Collapse
 
vonheikemen profile image
Heiker

Reminds me of this.

We're getting closer. Someday people will find this normal.

Collapse
 
myzel394 profile image
Myzel394

This is what we all waited for. Is it on Github?

Collapse
 
orkhanjafarovr profile image
Orkhan Jafarov
Collapse
 
codebyjustin profile image
Justin

interesting.

Collapse
 
taimoorkhan profile image
Taimoor khan

Really man this is what I was looking for❤

 
orkhanjafarovr profile image
Orkhan Jafarov

I meant XML-like syntax itself, XML elements are just blocks and everything can be block-based, the elements can contain any code inside and for harder solutions you can pass any handler with logic. The main idea (even it's experimental) is to isolate parts of logic in components and put backend in declarative way. Thanks for feedback btw :)

Thread Thread
 
raulurtecho profile image
RaulUrtecho

That is why I love Flutter the UI and logic are only Dart code.

Collapse
 
amansaxena001 profile image
Amansaxena001

SSR frameworks be like are we in danger xD

Collapse
 
nans profile image
Nans Dumortier

That's an interesting approach!
Keep us posted on how you progress with it 😁

Collapse
 
matjones profile image
Mat Jones

My only question is: for the sake of all that is holy, why???

Collapse
 
djcarrillo6 profile image
David Carrillo Jr.

This is a very interesting idea!! Experimental development can render unexpected surprises! Well Done! Looking forward to reading the docs!

Collapse
 
kaithetrainer profile image
Mr Kai

Informative and Nice Bro👊

Collapse
 
tamarack profile image
Tamara Abell

Good stuff!

Collapse
 
skaboy profile image
Ska-boy

React end, symbolically)