Тёмный

JSX But With Lua | Prime Reacts 

ThePrimeTime
Подписаться 591 тыс.
Просмотров 47 тыс.
50% 1

Recorded live on twitch, GET IN
/ theprimeagen
Become a backend engineer. Its my favorite site
boot.dev/?prom...
This is also the best way to support me is to support yourself becoming a better backend engineer.
Reviewed article: bvisness.me/luax/
By: Ben Visness
MY MAIN YT CHANNEL: Has well edited engineering videos
/ theprimeagen
Discord
/ discord
Have something for me to read or react to?: / theprimeagenreact
Kinesis Advantage 360: bit.ly/Prime-K...
Hey I am sponsored by Turso, an edge database. I think they are pretty neet. Give them a try for free and if you want you can get a decent amount off (the free tier is the best (better than planetscale or any other))
turso.tech/dee...

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 167   
@SzymonSaysStuff
@SzymonSaysStuff 8 месяцев назад
I followed your advice to create something I like using. I really like JSON, so I built a fullstack framework based on it. I'm calling it JDSL and I'm very proud of it. Haven't figured out how to implement comments yet, though. -Tom
@SgtVenom
@SgtVenom 8 месяцев назад
"Tom is a Genius"
@abdus_zone
@abdus_zone 8 месяцев назад
Tom is very genius 😂
@skills697
@skills697 8 месяцев назад
Much like the JDSL, those ideas of yours can take a while to spin up but once you do it's really really powerful!
@maf_aka
@maf_aka 8 месяцев назад
this should be the new copypasta 🤣
@TheNewton
@TheNewton 8 месяцев назад
{ "comments": { "JSONcomment": "This is a comment in json it wont be read in template engines", "JSONcommentPrivate": "This is a private comment in json it wont be pass through apis", "", "
@neniugrava
@neniugrava 8 месяцев назад
Great article. I made myself a HSM (UML Statechart) library in C once because I got fed up with some bloated, overly-complex state machine in an embedded C project. Imagine a > 700 line function using 3 different state variables to do half-baked state nesting, so instead of only having to check one variable for state change you now have to do it for three... Feels good to make something to fix a problem, but even better when you get to apply it to future problems.
@binary132
@binary132 8 месяцев назад
This is great, I love Lua. Now I just want this in a frontend….
@MrDejvidkit
@MrDejvidkit 8 месяцев назад
You should check Scala 2 XML. It will satisfy this guy to have a host language that understands the XML instead of being just a fancy preprocessor.
@Atmos41
@Atmos41 8 месяцев назад
I built my own pure PHP framework using Workerman, FastRoute, an own fork of Plates, HTMX and AlpineJS. No one is ever going to use it, but I had a lot of fun doing it and it made me happy :D
@xyola
@xyola 8 месяцев назад
I created a object query language in php it works as a no sql backend Enginne and has made me faster at implementing my side projects and ideas - I love it
@coder_one
@coder_one 8 месяцев назад
Deno/Bun (with native JSX support) + HTMX = only server JSX components, but with dynamic on the client. Simple and powerful!
@pgn666
@pgn666 8 месяцев назад
love the energy!
@JeremyAndersonBoise
@JeremyAndersonBoise 8 месяцев назад
The transpiler in this article changed my life forever.
@Mempler
@Mempler 8 месяцев назад
I dont concat strings, i merge memory buffers
@donwinston
@donwinston 8 месяцев назад
Twig is as good a templating system as it gets outside of the Java world.
@AdamLeis
@AdamLeis 8 месяцев назад
I'm curious how complex UIs in situations like this are built. I'm thinking of robust async data tables and whatnot. 🤔🤷‍♂
@user-pe7gf9rv4m
@user-pe7gf9rv4m 8 месяцев назад
Haskell
@katjapotensky4054
@katjapotensky4054 8 месяцев назад
or F#, if being completely pure breaks your brain (as it did for me)
@W1ngSMC
@W1ngSMC 8 месяцев назад
@@katjapotensky4054 Elixir
@chris-pee
@chris-pee 8 месяцев назад
@@katjapotensky4054 F# has a great syntax and all, but it failed to get rid of null and exceptions, due to its focus on interoperability with C#.
@tauiin
@tauiin 8 месяцев назад
Based
@DeanGadberryYT
@DeanGadberryYT 8 месяцев назад
Visness Based.
@vvvvvvvvvwv
@vvvvvvvvvwv 8 месяцев назад
visness based
@nurdism
@nurdism 8 месяцев назад
based
@Flemagrimm
@Flemagrimm 8 месяцев назад
mega based
@electrolyteorb
@electrolyteorb 8 месяцев назад
Next up, JavaScript for Embedded Systems
@lukaswerner4390
@lukaswerner4390 8 месяцев назад
Based!!
@bbil2270
@bbil2270 8 месяцев назад
Visness based
@zeevdrifter2707
@zeevdrifter2707 8 месяцев назад
Screw this article, Hugo is awesome, fast, secure. Dynamic sites are shit.
@theskyblockman
@theskyblockman 8 месяцев назад
We got a double Prime reacts for this one
@jamesc2810
@jamesc2810 8 месяцев назад
based
@jakubtomsu
@jakubtomsu 8 месяцев назад
Ben Visness is so based, respect
@colin_actually
@colin_actually 8 месяцев назад
I love lua. There are many places I wish it'd be used instead of JS.
@CallGage
@CallGage 8 месяцев назад
Been using Lua for 10+ years. Feels like it's always been underappreciated as being so dynamic while hardly sacrificing speed. Working on a very, very large project right now in 99% lua. You have to enforce some of your own rules to keep things organized but it's actually a really nice experience. Started watching prime a little while ago and he got me into neovim, so there have been some days I've spent more time messing with my config than actually working lol. I've seen lua popping up more and more it's really exciting to me.
@civilroman
@civilroman 8 месяцев назад
Maybe it's just Stockholm Syndrome from years of working with C-based languages but I despise Lua's syntax
@LiveErrors
@LiveErrors 8 месяцев назад
@@civilroman Its about as close as it can be without being c styled syntax
@civilroman
@civilroman 8 месяцев назад
​@@LiveErrors not enough brackets, and writing "end" after every function bugs tf outta me
@kokizzu
@kokizzu 8 месяцев назад
what IDE do you use?
@rossimac
@rossimac 8 месяцев назад
@@kokizzu in a insurance quotation system written in C#, Lua was used to allow for customer-defined scripts to do the quotes. excellent. IDE? notepad++
@JustBCWi
@JustBCWi 8 месяцев назад
DNA is just strings. So I am string concatenated. I'm also string con-caffinated.
@Dev-Siri
@Dev-Siri 8 месяцев назад
prime loves react so much he put it twice in the title
@snowman4933
@snowman4933 8 месяцев назад
Gottem
@deluxe_1337
@deluxe_1337 8 месяцев назад
I wish the common web browsers used Lua instead of JS
@MehranGhamaty
@MehranGhamaty 8 месяцев назад
Nothing beats the security of static HTML in the case of things like login and registration screens.
@hamm8934
@hamm8934 8 месяцев назад
Child: I want Blazor! Mom: We have Blazor at home *Templ - the Blazor at home*
@deado7282
@deado7282 8 месяцев назад
I dont get that. Is there anything these 2 have in common? I have to say blazor sucks in terms of performance... a lot. It's nice to have a different lang to do fe and be other than js though.
@hamm8934
@hamm8934 8 месяцев назад
@@deado7282 blazor serves the same purpose as templ but it is far more feature complete, such as in-template type safety and built in htmx-like functionality. Also, blazor in dotnet 8 with blazor united is just as fast as any other framework returning static html. Definitely check it out. Whenever Prime praises templ and htmx and points out what else he’d like templ to have, its always captured by blazor. But its not cool to write c# in the tech influencer space
@vsouza5000
@vsouza5000 8 месяцев назад
That was based af, really inspiring stuff.
@sadboisibit
@sadboisibit 8 месяцев назад
Visness based
@katjapotensky4054
@katjapotensky4054 8 месяцев назад
who said jsx always involves the client side? Nothing against transforming jsx into simple html - also makes using HTMX quite nice. But yeah, ofc, consuming 200mb of RAM for a simple blog is a bit... excessive nowadays (though I remember something with the LAMP stack about 50mb per connection? :P)
@natescode
@natescode 8 месяцев назад
JS script kiddies don't care
@katjapotensky4054
@katjapotensky4054 8 месяцев назад
true, people who only occasionally use JS don't care to investigate JS. It can be quite efficient if you take care. But honestly, I'm currently playing around with creating a html DSL in F# and haskell that can track name attributes so that you can be sure that e.g. a form matches it's intended endpoint at compile time.
@David-gj6dc
@David-gj6dc 8 месяцев назад
I think he's slightly conflating JSX the JavaScript syntax extension with React itself. You could embed JSX into any project and have it work in different ways depending on how it is compiled. But for the current environment I think JSX is mostly used in the client side in React, so it's an easy conflation to make.
@SirusStarTV
@SirusStarTV 8 месяцев назад
If i put "onClick={ doSomething() }" on server side jsx what would it transform into?
@katjapotensky4054
@katjapotensky4054 8 месяцев назад
​@@David-gj6dcabsolutely, though it would be quite funny, given that he himself said the problem with JS is that people learn to see it only through the medium of a framework 😅
@reinoob
@reinoob 8 месяцев назад
Lua? Brazil mentioned let's goooooooooooo
@pcost
@pcost 8 месяцев назад
HUEHUEHUEHUEHUE
@bitmasked
@bitmasked 8 месяцев назад
Would use
@Flrere
@Flrere 5 месяцев назад
I wonder if this could be used in React-Lua
@ismbks
@ismbks 8 месяцев назад
this guy always giving love to other creators even tho hes massive on socials, i really like that
@saniel2748
@saniel2748 8 месяцев назад
This guy's blog has even more based takes if anyone is interested btw "It's always a tradeoff" is such a gem He also has multiple stuff on Unreal engine (and obv adevnt of code on playstations), so gamedev energy feeling I got after hearing "I hate this so made my own" was confirmed
@edgarferreira8597
@edgarferreira8597 28 дней назад
A video about really coding for you and Lua... "THIS IS THE GOOOOOOAT, THE GOOOOOOOOOOOOOOOAT!"
@manasseh152
@manasseh152 8 месяцев назад
BETH stack jsx = Pretty nice
@excitedbox5705
@excitedbox5705 8 месяцев назад
He is so right. We have regressed and made dev work so convoluted and shitty that it sucks all the joy out of it. A few months ago I made a list of all the different syntaxes and config formats I need to know at least well enough to find where to look it up. I stopped once I got past 30. Many times the same systems use different styles or formats. Especially since every project decided they must include some CLI instead of gui dashboards. Now not only do you need to know all the regular commands + syntaxes, but also the variations used by each framework or project. I think it is great that they offer the option but making a gui command or config builder is a minimal time investment that will save millions of man hours in the long term, simply because you can click a button instead of having to remember all the commands, their spelling, their syntax, formats, any paths, etc. Besides having to know html, css, js, mysql, etc. just t build your project, now you need to learn 50+ syntaxes for, build systems, config formats, package managers, CLI, etc. This is all in addition to all the knowledge needed about how these things work causing an unneeded additional load and cost.
@freesoftwareextremist8119
@freesoftwareextremist8119 8 месяцев назад
Reinventing Lisp the 100th time.
@randomname8217
@randomname8217 8 месяцев назад
visness based
@EliasOjeda-mv6cg
@EliasOjeda-mv6cg 8 месяцев назад
i wish one day browser would just implement lua straight up, it's just a nice language, well defined and also very fast. js is straight up a horrible language imo.
@viniciusantonio2253
@viniciusantonio2253 7 месяцев назад
wait, so you really can deploy a go backend with just a executable?
@ecranfortessa
@ecranfortessa 8 месяцев назад
*S U C C*
@flyingsl0ths
@flyingsl0ths 3 месяца назад
I am very happy lua is getting some attention its a really awesome language that doesn't get the appreciation it deserves
@sdprolearning
@sdprolearning 4 месяца назад
True hate is a emotion that can make u build anything I hate video editing so I made my automatic video editor
@dripcaraybbx
@dripcaraybbx 8 месяцев назад
Calculating current date is mind-numbingly simple without wrapping the whole page in some library
@NotHumanPerson
@NotHumanPerson 8 месяцев назад
i just realized my current project is making my own html in rust for desktop, which is just ridiculous
@JSXRP
@JSXRP 8 месяцев назад
keep doing it
@ravihlb
@ravihlb 8 месяцев назад
Don't give up, skeleton!
@natescode
@natescode 8 месяцев назад
Tom's a genius
@klapaucius515
@klapaucius515 8 месяцев назад
What the hell
@dr_regularlove
@dr_regularlove 8 месяцев назад
+1 for Gary Bernhardt's compiler screencast series
@sergey1519
@sergey1519 8 месяцев назад
4:42 isn't this what css grid is for?
@mariobroselli3642
@mariobroselli3642 6 месяцев назад
Could He use Julia instead of Lua?
@jonathanschober1032
@jonathanschober1032 8 месяцев назад
Based
@shadowpenguin3482
@shadowpenguin3482 8 месяцев назад
Based
@binary132
@binary132 8 месяцев назад
What Lua language server is that?
@WhiteDoppler
@WhiteDoppler 8 месяцев назад
Based visness
@Odod4000
@Odod4000 2 месяца назад
so cool! realy love it👍
@roshaneforde
@roshaneforde 8 месяцев назад
Xagen
@k4yd33yeah
@k4yd33yeah 7 месяцев назад
Visness: Based
@fuzzy-02
@fuzzy-02 6 месяцев назад
Visness based
@Alfakatt
@Alfakatt 6 месяцев назад
Visness based
@thatsalot3577
@thatsalot3577 8 месяцев назад
That Mama Cass song "Make your kind of music" suits this guy perfect.
@John-km7ni
@John-km7ni 8 месяцев назад
Visness based
@StruC
@StruC 8 месяцев назад
Based Visness
@Bliss467
@Bliss467 8 месяцев назад
Based visness
@Ataraxia_Atom
@Ataraxia_Atom 8 месяцев назад
Visness based
@TheWrxrally
@TheWrxrally 3 месяца назад
B A S E D
@simonlindgren9747
@simonlindgren9747 8 месяцев назад
based
@JohnCBarbu
@JohnCBarbu 8 месяцев назад
based
@kphaxx
@kphaxx 8 месяцев назад
Based
@writeorwrong88
@writeorwrong88 8 месяцев назад
based
@CorvinhoDoMal
@CorvinhoDoMal 8 месяцев назад
based
@drane4563
@drane4563 8 месяцев назад
based
@alexpearson7459
@alexpearson7459 8 месяцев назад
Based
@TurtleKwitty
@TurtleKwitty 8 месяцев назад
Havemt read the interpreter book but my go to is Crafting Compilers first for the initial foray in of "Just get something working get the gut feeling of how it works, then make it a bit better" with the rewrite for more realistic performance in the second half of the book and only then go for the dragon book to get into the hardcore stuff if you jive well with that and want to go deeper
@TheLummen.
@TheLummen. 8 месяцев назад
"No fun allowed.."
@infastin3795
@infastin3795 8 месяцев назад
I hate Prime for not highlighting sentences completely.
@sirrobinofloxley7156
@sirrobinofloxley7156 8 месяцев назад
Someone please write a new language and call it SUK
@MarkVolkmann
@MarkVolkmann 8 месяцев назад
I think Alpine is the answer for adding some client-side processing.
@ThomasWSmith-wm5xn
@ThomasWSmith-wm5xn 8 месяцев назад
aweful
@pokefreak2112
@pokefreak2112 8 месяцев назад
Awesome*
@plantparty
@plantparty 8 месяцев назад
JSX with Astro Edge SSR is the way.
@TheNewton
@TheNewton 8 месяцев назад
Businesses wish they could be so Visness Based
@ShankingDisaster
@ShankingDisaster 8 месяцев назад
10/10 analysis.
@RandomGeometryDashStuff
@RandomGeometryDashStuff 8 месяцев назад
12:23 javascript does have iterators
@MaybeADragon
@MaybeADragon 8 месяцев назад
LEPTOS MENTIONED LETS GOOOOO
@afik1200
@afik1200 8 месяцев назад
Ben Visness is so based I am shook
@N0FPV
@N0FPV 8 месяцев назад
1 based indexing is still p cringe
@danielxmoore502
@danielxmoore502 8 месяцев назад
Based
@formbi
@formbi 8 месяцев назад
Visness based
@ragectl
@ragectl 8 месяцев назад
Visness with the bizness
@ItsAyrock
@ItsAyrock 8 месяцев назад
Visness == based
@6little6fang6
@6little6fang6 8 месяцев назад
BUSINESS BASED
@RohitPrakash
@RohitPrakash 8 месяцев назад
bvisness based
@Lemmy4555
@Lemmy4555 8 месяцев назад
Svelte doesn't suck
@tusharkuntawar6170
@tusharkuntawar6170 8 месяцев назад
Based bvisness
@lukivan8
@lukivan8 8 месяцев назад
bvisness based
Далее
Carmack Doesn't Like Vim | Prime Reacts
26:52
Просмотров 415 тыс.
XML Made Me Buy 61,729,433 lbs Of Coal | Prime Reacts
16:07
11 ming dollarlik uzum
00:43
Просмотров 625 тыс.
Офицер, я всё объясню
01:00
Просмотров 3,9 млн
ТАРАКАН
00:38
Просмотров 727 тыс.
An Open Letter To React | Prime Reacts
27:42
Просмотров 81 тыс.
You Don't Know JavaScript
23:00
Просмотров 136 тыс.
Why Is Lua So Popular?
8:03
Просмотров 96 тыс.
Making a Game in Lua with No Experience
5:52
Просмотров 313 тыс.
VIM - I DIDNT KNOW THIS!!! | Prime Reacts
18:27
Просмотров 95 тыс.
Gitlab DELETING Production Databases | Prime Reacts
17:27
Phoenix LiveView Is Making Me Reconsider React...
36:59
Do NOT contribute to open source | Prime Reacts
36:40
Просмотров 281 тыс.
Why You Should Learn To Program the HARD WAY
29:55
Просмотров 466 тыс.
11 ming dollarlik uzum
00:43
Просмотров 625 тыс.