The best feature every framework needs

  Рет қаралды 53,720

Steve (Builder.io)

Steve (Builder.io)

3 ай бұрын

#javascript #typescript #react #qwik

Пікірлер: 59
@doyouwantsli9680
@doyouwantsli9680 3 ай бұрын
This is the worst idea I have seen in a while.
@arshiagholami7611
@arshiagholami7611 3 ай бұрын
literally nextjs has the same thing but way more complicated to setup
@arshiagholami7611
@arshiagholami7611 3 ай бұрын
this is Qwik btw
@m12652
@m12652 2 ай бұрын
Isn't this just a massive vulnerability waiting to happen? Could be bigger than internet Explorer 😳
@doyouwantsli9680
@doyouwantsli9680 2 ай бұрын
@@m12652 yeah pretty much.
@rexfng
@rexfng Ай бұрын
Why?
@Hacking-Kitten
@Hacking-Kitten 3 ай бұрын
or just setup cors correctly??
@yassinesafraoui
@yassinesafraoui 3 ай бұрын
Sometimes you can't if the api doesn't allow your website in the response headers, it's what happens when web scraping and that's one of the reasons it has to be on the server
@justanaveragebalkan
@justanaveragebalkan 2 ай бұрын
That requires thinking jabascript developers don't think.
@louisant1817
@louisant1817 2 ай бұрын
@@yassinesafraoui When do you ever make a POST request to something that doesn't belong to you ?
@yassinesafraoui
@yassinesafraoui 2 ай бұрын
@@louisant1817 when doing web scraping for example
@januariopinto_
@januariopinto_ 3 ай бұрын
Isn't this basically use server in nextjs? 🤔
@Kampouse
@Kampouse 3 ай бұрын
no cause its ran inside of a handler and not on and server component only work without js
@cyberkrypts
@cyberkrypts 3 ай бұрын
​@@Kampouse you can trigger server action from client components and treat them like normal async functions
@Martin-kt8sz
@Martin-kt8sz 3 ай бұрын
this architecture makes literally no sense
@aresstavropoulos916
@aresstavropoulos916 3 ай бұрын
You wouldn’t build large scale apps with this thought right? I mean server/client management would be so difficult when you don’t have clearly defined endpoints forvthe client to talk to
@82TheKnocKY
@82TheKnocKY 3 ай бұрын
I mean with this architecture you don't need to have neatly defined endpoints
@PraiseYeezus
@PraiseYeezus 2 ай бұрын
...what about this makes it more difficult inherently?
@aresstavropoulos916
@aresstavropoulos916 2 ай бұрын
@@PraiseYeezus If you want to change how you use endpoints on the server, are you not just screwed? Adding logging, authentication would all be difficult to integrate, and there's no one location to view your endpoints, so certain endpoints can be unneccesarily redundant
@PraiseYeezus
@PraiseYeezus 2 ай бұрын
@@aresstavropoulos916 how would it be difficult to integrate? the code you use for logging would go into the server action. such functions are meant for POST requests like submitting to a DB directly
@landsman737
@landsman737 3 ай бұрын
but the syntax, and readability of the code in this example is bad for me
@engageintellect
@engageintellect 3 ай бұрын
Maybe I’m just used to Sveltekit. But it makes more sense to me to create an API route that runs on the server and then fetch from the client.
@StCost
@StCost 3 ай бұрын
on nextjs I made single [...slug].ts API file catching any request and proxying it to real backend
@erickmoya1401
@erickmoya1401 3 ай бұрын
Please no. Mixing everything like it doesnt matter makes it worse.
@biiiiiimm
@biiiiiimm 3 ай бұрын
Mhhh i am now used to next server actions, i don't really feel that it mix everything. And its much simpler, same feature at same place
@brawlrob0
@brawlrob0 3 ай бұрын
​@@biiiiiimmserver actions are different from qwik
@rexfng
@rexfng Ай бұрын
Mixing what together? Ajax call in the frontend by the same server. Server side would need to setup cors or whitelist you. The underlying stuff don't change. I think this demonstrate how easy it is to wrap your code to be code with your server instead of client side
@bradyfractal6653
@bradyfractal6653 2 ай бұрын
Sveltekit server files is the best model I’ve found for readability, clarity, consistency, and ease of use. This pattern here would to easily create such a spaghettified minefield in large codebase. Nice for a super small personal project though.
@m12652
@m12652 2 ай бұрын
Agreed...
@AndrewFloatrx
@AndrewFloatrx Ай бұрын
nextjs server actions 😊
@sirkato7751
@sirkato7751 2 ай бұрын
Am I the only one that thinks that a template and a double server call is a bad idea?
3 ай бұрын
No sir please give up this shitty architecture , my eyes and ears are bleeding 😢
@danteDeveloper
@danteDeveloper Ай бұрын
Is this adding proxy somewhere in runtime?
@justanaveragebalkan
@justanaveragebalkan 2 ай бұрын
I am almost sure now that this is a meme account, trying to figure out which bad take becomes popular so it can become the next react.
@chrikke
@chrikke 2 ай бұрын
Fuck React, me and my homies love HTMX or Sveltekit
@otis3744
@otis3744 2 ай бұрын
Power feature, a lot of junior devs are about to mess up prod with this one
@fueledbycoffee583
@fueledbycoffee583 12 күн бұрын
inlining an api call is hurting my eyes so bad
@thedelanyo
@thedelanyo 3 ай бұрын
Sveltekit makes more awesome
@bereketsiyum74
@bereketsiyum74 Ай бұрын
Server actions ?
@chacs3801
@chacs3801 3 ай бұрын
Only for guys that only can JavaScript
@akshayrajput3875
@akshayrajput3875 3 ай бұрын
in svelte?
@troooooper100
@troooooper100 2 ай бұрын
I'm starting to think frontend devs are ill.. they want to write HTML CSS in JavaScript and now backend too lololol
@kcin4206
@kcin4206 3 ай бұрын
oh dear god no..
@letsthinkforamoment8904
@letsthinkforamoment8904 3 ай бұрын
What do you mean "run this on the server?"
@FirstYokai
@FirstYokai 3 ай бұрын
Most of the time you don't need a framework. Pick a language and make a server side website with templates. That's so easy and fast
@hamn_n1483
@hamn_n1483 3 ай бұрын
Qwik being Qwik
@chawkichalladia1812
@chawkichalladia1812 2 ай бұрын
What are you smoking 😅
@Miles-co5xm
@Miles-co5xm 2 ай бұрын
Best way to get your server fucked up
@MegaTeckguy
@MegaTeckguy 3 ай бұрын
Eww
@hasithapriyasad
@hasithapriyasad 3 ай бұрын
This make no sense
@griffin8062
@griffin8062 3 ай бұрын
WHY!?!?!
@AlmightyPyro
@AlmightyPyro 20 күн бұрын
no
@IStMl
@IStMl 26 күн бұрын
yeah no wtf
@pythagoran
@pythagoran 3 ай бұрын
Oooh I have a better idea for a feature missing from most frameworks... _remove the framework_ 🤯
@npanuhin
@npanuhin 3 ай бұрын
Don't use frameworks, use pure JavaScript, it's much easier
@pituboy
@pituboy 3 ай бұрын
Terrible.....
Svelte 5's Secret Weapon: Classes + Context
18:14
Huntabyte
Рет қаралды 14 М.
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 637 М.
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 10 МЛН
The Right Way To Build REST APIs
10:07
Awesome
Рет қаралды 82 М.
Goodbye javascript (for now)
14:57
Web Dev Cody
Рет қаралды 72 М.
The Most Important Skill You Never Learned
34:56
Web Dev Simplified
Рет қаралды 183 М.
A flexbox trick to improve text wrapping
5:02
Kevin Powell
Рет қаралды 199 М.
Java Is Better Than Rust
42:14
ThePrimeTime
Рет қаралды 200 М.
How to OVER Engineer a Website // What is a Tech Stack?
11:20
Fireship
Рет қаралды 2,4 МЛН
Why I focus on patterns instead of technologies
7:55
NeetCodeIO
Рет қаралды 208 М.
This Is One Of My Favorite TypeScript Features
5:22
Web Dev Simplified
Рет қаралды 134 М.
How To Debug React Apps Like A Senior Developer
21:07
Web Dev Simplified
Рет қаралды 91 М.
The cat chose the right one 🥰🥳😸
0:32
Ben Meryem
Рет қаралды 48 МЛН
Крокодил получил по-заслугам! 😱
0:32
КиноСклад
Рет қаралды 23 МЛН
It worked for me)
0:19
F&T Team
Рет қаралды 23 МЛН