10 javascript Changes You Missed in 2023 | Prime Reacts

  Рет қаралды 62,328

ThePrimeTime

ThePrimeTime

5 ай бұрын

Recorded live on twitch, GET IN
/ theprimeagen
Reviewed video: • 10 JavaScript changes ...
By: Fireship | / @fireship
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-Kinesis
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/deeznuts

Пікірлер: 190
@CernyMatej
@CernyMatej 5 ай бұрын
As a joke, I started learning Haskell so I could make fun of it too. Since then, I don't want to program in anything else. Just saying 🤷‍♂
@weeb3277
@weeb3277 5 ай бұрын
ok virgin
@Kriszzzful
@Kriszzzful 5 ай бұрын
the language is cool but everything around it just sucks. You can tell it is written by mathematicians and not software engineers.
@ea_naseer
@ea_naseer 5 ай бұрын
​@@Kriszzzfulyou need a maths degree to understand the errors otherwise it's a good language
@CernyMatej
@CernyMatej 5 ай бұрын
@@weeb3277 Luckily, I used to do frontend back in the days 🤣
@FaZekiller-qe3uf
@FaZekiller-qe3uf 5 ай бұрын
I started learning and I no longer want to program at all.
@emptystuff1593
@emptystuff1593 5 ай бұрын
For anyone wondering about the SQL injection at 9:23: It uses a tagged template string. Notice the "sql" before the back quote. This is a "tag". It's a function that receives all the elements composing the template string (literal and variables) and has the opportunity to transform any of these before returning whatever it wants. Obviously, this function is responsible to sanitize the variables.
@Novascrub
@Novascrub 5 ай бұрын
"Modes are almost always a mistake." - Prime "Vim is the best editor." - Also Prime
@rand0mtv660
@rand0mtv660 5 ай бұрын
11:00 yes it's exaggerated. People think that if you don't deploy to Vercel, that Next.js features just stop working. If you deploy Nextjs as a simple Node app, all its features still work. I've deployed multiple Nextjs apps in various configurations to VMs with or without Docker and things still work. Of course it requires more work compared to just clicking few buttons on Vercel, but it does work. And I just want to say, you don't need to deploy your Next.js based blog to a super complicated AWS serverless/edge setup, but that's what people think they have to do these days.
@pilcrowonpaper
@pilcrowonpaper 5 ай бұрын
My blog is officially in a Primeagen video
@andremp82
@andremp82 5 ай бұрын
"NoSql is largely a mistake" this is a great statement ! Also a good tweet kkk
@soniablanche5672
@soniablanche5672 5 ай бұрын
sql`` is actually a function, if you call a function with backticks instead of parenthese, from what I understand, every time you use ${} it appends that value to the list of arguments, the first argument being the whole string as an array.
@thekwoka4707
@thekwoka4707 5 ай бұрын
I think the point with the WebSockets in node is not that they implemented them like the browser did, but that they implemented the Web Standard API for WebSocket that all the browsers and runtimes support
@nyahhbinghi
@nyahhbinghi 2 ай бұрын
in my humble opinion as a senior dev - websocket server is the best test of a language/runtime. it's stateful, so you test all features of a language. UI in general is not a bad test either. basically anything but a restful api server :)
@Goshified
@Goshified 5 ай бұрын
Reinventing all of the frameworks was a collective attempt to prevent AI from writing new code (until new models are trained, then they get reinvented again).
@0dsteel
@0dsteel 5 ай бұрын
ES++. New features will continue until morale improves.
@annoorange123
@annoorange123 5 ай бұрын
3:13 classic prime. Not everything has to live in the database, as an SRE doing simple scripts, I'd use a feature like groupBy when doing something ad-hoc
@igorordecha
@igorordecha 5 ай бұрын
And not everything is a crud web app
@chrishyde952
@chrishyde952 5 ай бұрын
@@igorordecha example?
@bit9524
@bit9524 5 ай бұрын
That's why I don't understand his non sense random rants xd
@willw2596
@willw2596 5 ай бұрын
The Object.groupBy is not the same as the SQL group-by. It's really a partitionBy to partition the list into sublists by some condition, where the SQL group-by is aggregation in nature.
@tspander
@tspander 5 ай бұрын
Yeah, and it arguably has a place in JS. Filtering a list but also getting the non-matches at the same time is something you could conceivably need to do in front end, not the db
@mistamunsta
@mistamunsta 5 ай бұрын
"as soon as I start talking about JavaScript frameworks, I turn into a stereotypical monster" -prime so real
@jma42
@jma42 5 ай бұрын
tagged function is basically just another way of writing a function, where the tokens (or words) inside the template string are grouped into an array, while the captured variables are turned into arguments
@markemerson98
@markemerson98 5 ай бұрын
so needed my daily dose of PrimeTime today - have a great weekend
@geni15o
@geni15o 5 ай бұрын
The Haskell rant: dead. I frigging love you man lmao.
@dinesee1984
@dinesee1984 5 ай бұрын
3:18 api returns data that needs to be displayed in 2 different places but in completely different grouping. Instead of creating 2 endpoints you have 1 endpoint. I see this as great feature, less code to write.
@ArcRCG
@ArcRCG 5 ай бұрын
Also groubBy would not be slow because it will be natively implemented in the interpreter.
@harleyspeedthrust4013
@harleyspeedthrust4013 5 ай бұрын
sure but it's also just doing what you could already do easily with reduce
@dinesee1984
@dinesee1984 5 ай бұрын
@@harleyspeedthrust4013 you can also add num1 + num2 with reduce, so this does not makes sence it terms of NOT making new api for some action that could be done with reduce
@ArcRCG
@ArcRCG 5 ай бұрын
@@harleyspeedthrust4013 perhaps but not as performant
@harleyspeedthrust4013
@harleyspeedthrust4013 5 ай бұрын
@@ArcRCG speculation. and if you care about performance then don't use js
@fakedevdutt
@fakedevdutt 5 ай бұрын
GroupBy is for frontend guys to run it on client side while rendering i think
@XDarkGreyX
@XDarkGreyX 5 ай бұрын
I think he sometimes forgets JS in the frontend is a thing
@darshandev1754
@darshandev1754 5 ай бұрын
@@XDarkGreyX a grouped response can be sent from the backend his point still stands a faster backend language/db does it better
@dinesee1984
@dinesee1984 5 ай бұрын
@@darshandev1754 noone should do grouping in FE if possible to do in BE. But sometimes you need same data in different grouping. Creating 2 endpoints is extra maintenance and dependancy. Also, frontend might no longer need different grouping, meaning you will also need to update BE codebase.
@darshandev1754
@darshandev1754 5 ай бұрын
@@dinesee1984 makes sense sending ungrouped data does give you flexibility to manipulate it more freely on the frontend however I will still prefer 2 separate endpoints its still pretty ok to group on the frontend if the dataset is small enough, if for some reason it cant be moved to the backend
@dinesee1984
@dinesee1984 5 ай бұрын
@@darshandev1754 ofc with big data set you would do it in backend, it is insane to do that kind of operation on FE. Only with small/medium data this is valid, applies same principal as to any other data manipulation in FE
@Mincier
@Mincier 5 ай бұрын
We tried Vercel for a few days and we decided to stay with our own Docker Swarm deployment on our dedicated server. There was literally no measurable advantage of using Vercel on that project.
@loquek
@loquek 5 ай бұрын
if you already have CI setup, and are happy configuring AWS, and you don't want specific nextjs + vercel stuff, then you probably wont benefit much from using vercel or netlify
@AdroSlice
@AdroSlice 5 ай бұрын
I really like vue. It's very unfortunate that things didn't work out with reactivity transform, which would've made it a lot more like svelte 3.0, but you can still use vue-macros to bring it back. What vue does well is co-locating functionality. If you use setup(), or even better, , you can group together definitions that pertain to a specific feature instead of grouping things by type alone. Having your template as-actual-html, your script (setup) and your component-specific styling as-actual-css (which should however always be kept minimal) does wonders for productivity and maintainability. Vue is the one framework I've stuck to since deciding to advocate for it in a company project. We also considered angular and react, at the time Svelte 3 wasn't a thing yet, but vue just had so much less dogma and overhead behind it, it was the only reasonable choice.
@theseangle
@theseangle 5 ай бұрын
Yeah, why does React NOT support vanilla CSS out of the box that allows things like actual media queries and pseudoelements / selectors is beyond me... Why does the setState hook exist? Or at least, why do you HAVE to use it (or the dev time consuming reducer) for arrays? Why can't you just push an object to the state array without having to copy the whole thing over back and forth?
@PieterWigboldus
@PieterWigboldus 5 ай бұрын
The problem with existing sort and reverse is that it will break if you change that the behavior. 1 thing that EcmaScript is very strict in, is that it never has breaking changes. That is also why sites from that are very old (20+ years) still works, even the very old JS. Frameworks break, even Typescript breakes, but Ecmascript will never has a breaking change, even it is weird like sort and toSorted. That is also why Ecmascript changes take a long time to be stable. Sometimes Typescript implement an unstable Ecmascript proposal, and in Typescript flagged as stable, that also changed in time. (yes this happened)
@arcuscerebellumus8797
@arcuscerebellumus8797 5 ай бұрын
Can't you just leave the old stuff IN and ADD a "better way" as an option instead of changing the behaviour entirely? Just have LSP barking at you something like "you're mutating that thing" kinda like it already does when you try to use `var`... It's all arbitrary anyway... :|
@FLevi-pi5vt
@FLevi-pi5vt 5 ай бұрын
I feel like the bigger problem is that the designers of WHATWG and whatnot are either not payed enough (if at all) or are not talented enough, or both. But what I am very sure about is that they're never in any kind of hurry to either finish a spec, or adopt a new non-breaking spec, or just make a good mostly flawless spec. I kind of got really disappointed to see that they adopted the abort signal API only to find out that the spec they came up with was kinda bad and lacking, and now it's taking them a decade to come up with amendments to it. There are tons of specs waiting in stage 3 as well, that might as well wait forever. At this point it'd be faster to replace the whole WEB standard with a new one than just to implement 5 specs if there was lots of funding and talent behind it.
@PieterWigboldus
@PieterWigboldus 5 ай бұрын
@@arcuscerebellumus8797 That is why they have add new methods, so your site from 20 years ago still works. Your linter can tell you that you better can use toSorted. But it is not ECMA that tells you, e.g. Eslint can have a rule that you can use to tell you to stop using the old mutating sort.
@enderarchery2153
@enderarchery2153 5 ай бұрын
that groupby thing is also useful if you have to do data processing that you had to get PowerShell but because there' no tasks that it's worse at than data processing, you're passing it to node
@darkoplax7688
@darkoplax7688 5 ай бұрын
Arch users that develop in Haskell are getting constantly attacked by Prime :(
@RandomGeometryDashStuff
@RandomGeometryDashStuff 5 ай бұрын
07:00 "you create a website in which you can not replicate that state" what does that mean? --- only hard thing making modals for me using other tags is preventing tabbing behind modal (assuming inert attribute not supported)
@codeguy11
@codeguy11 5 ай бұрын
Primeagen calling SQL as "Squeal" got me dead 💀
@jamiebrs1
@jamiebrs1 5 ай бұрын
1 for Vue
@RandomGeometryDashStuff
@RandomGeometryDashStuff 5 ай бұрын
10:57 I think easy means: 1. download (to server) executable (maybe together with other files) 2. run the executable
@eptic-c
@eptic-c 5 ай бұрын
I run UMAMI on a droplet. No docker, just a PM2 config to run next start in the directory. Everything works in self hosted nextjs except the edge infrastructure which it’s in the name, it’s infrastructure not something related to nextjs prod server
@michaelangelovideos
@michaelangelovideos 5 ай бұрын
My two favorite KZbinrs 🙌
@quelchx
@quelchx 5 ай бұрын
NextJS = Application error: a client-side exception has occurred (see the browser console for more information)
@In7elligence
@In7elligence 5 ай бұрын
Error: Hydration failed because the initial UI does not match what was rendered on the server. Meanwhile it's because the server has a different timezone setting than the client side browser, because you're displaying time somewhere in a server component... That's just one quirk. Good luck figuring out all the quirky hydration errors that are naaaasty to debug 😂
@quelchx
@quelchx 5 ай бұрын
@@In7elligence I got nothing to figure out it's something I noticed in NextJS apps I've used (I don't use NextJS since version 12 + work brings other stacks into mix). Example Supabase crashes on me if I run simple query. When I look it's all NextJS. Noticed this with few other sites I've bombed that were using Next
@abdulazizaskaraliev6119
@abdulazizaskaraliev6119 5 ай бұрын
4:34 yes, that would be a golden addition to javascript
@vitorfigueiredomarques2004
@vitorfigueiredomarques2004 5 ай бұрын
3:30 you are not running javascript when you call native functions, it is basically a c++ code that is processing it.
@Ptaszqq
@Ptaszqq 5 ай бұрын
Yes... I was trying to play this video clicking the play button on the original Firebase video paused in the background while you were commenting. Send help.
@user-qv1bw8vq1y
@user-qv1bw8vq1y 5 ай бұрын
thank you
@fakedevdutt
@fakedevdutt 5 ай бұрын
He is back yeah(fireship)!
@hextech687
@hextech687 5 ай бұрын
"NoSql was largely a mistake" is the most factual thing I have ever heard.
@u9vata
@u9vata 5 ай бұрын
So they added group-by so JS people write even slower codes because doing database things with not database :D
@theseangle
@theseangle 5 ай бұрын
Knowing typical Javascript "devs", it's probably to prevent people from writing O(n^2) algorithms with a separate filter() call for each group 😂
@u9vata
@u9vata 5 ай бұрын
@@theseangle This thing is painful because I actually totally wrote a tiny library for java people who made O(n^2) algo where I could make linear (and they could have used database just they cached data in memory). Sped things up like 50x - not current job, but previous 🙂
@theseangle
@theseangle 5 ай бұрын
@@u9vata yep, memoization is handy to know about
@u9vata
@u9vata 5 ай бұрын
@@theseangle Funny thing is that there was an other case: not in-memory but also replication /memoization and before just storing a cache locally they wanted some nosql bullshit just because the data source were so slow (everyone was accessing it - it was a database of adresses of the whole country and for some reason everyone accessed the same thing instead of locally caching) and honestly there was this nosql hypster guy who wanted to remake the whole centralized thing with some shiny technology as a "huge side-quest of our little project of putting up a single address box" - so I just told him to fsck-off and implemented a simple cache that got updated once daily from the live slow shit... Guess what - it was extreme well working. I also have no idea how they made the original so slow, because for this other thing (this is unrelated to the previously mentioned one!) was not even in-memory.... it was just an OTHER SQL server that rarely replicated the live one which was slow... and that's it. Doing this kind of imperfect replication with maybe 1day old data do not need any nosql, but so many people were thinking of that solution too.... It would be cool if more people indeed know memoization - both in memory and even just in a smaller DB more focused to local needs. In extreme cases even monthly replication is enough haha
@worgenzwithm14z
@worgenzwithm14z 5 ай бұрын
Doing Rust for AOC this year after doing Haskell last year. It's incredible how much Rust has in common with Ocaml and Haskell. The c style syntax is a little annoying, but everything being an expression is so nice. Going back to Typescript for my day job is depressing as always XD
@br3nto
@br3nto 5 ай бұрын
12:20 Vue is awesome! But not sure how it can mix with HTMX yet.
@demolazer
@demolazer 5 ай бұрын
The bit about Haskell actually killed me 🤣
@letstalkdev
@letstalkdev 5 ай бұрын
Yep 12:13, love Vue 💖
@christopherparke9878
@christopherparke9878 5 ай бұрын
They already have groupBy in C# LINQ. JavaScript catching up
@alfonsoalejandroespinosade1728
@alfonsoalejandroespinosade1728 5 ай бұрын
squeel, like the sound of squirrels
@Awesomo4000
@Awesomo4000 5 ай бұрын
Perhaps deprecate sort, map etc and use toSort / applySort, toMap / applyMap etc for mutables / immutables? lol
@VivekYadav-up7uu
@VivekYadav-up7uu 5 ай бұрын
Nice video
@John-Dennehy
@John-Dennehy 5 ай бұрын
You can say just use SQL for data manipulation etc, but tell that to all the backend teams creating the APIs for front-end who insist it's not idiomatic to give us the data in a useful format 😂
@pranavingale6850
@pranavingale6850 5 ай бұрын
Anything but your normal voice sounds like Micheal Scott from the office show! I said it once, i said it again!
@visco4916
@visco4916 4 ай бұрын
I love javascript 😍
@greywanderer82
@greywanderer82 5 ай бұрын
Sam Bankman Jailed? Yeah, that guy.
@hakouguelfen9187
@hakouguelfen9187 5 ай бұрын
there's 22 now
@DevexpThavisak
@DevexpThavisak 5 ай бұрын
เรือดับเพลิง
@thunderstein5041
@thunderstein5041 5 ай бұрын
all jokes aside… is JS really done? i‘m new to programming and started with JS. Would love to hear some opinions 🙂
@katrinabryce
@katrinabryce 5 ай бұрын
Javascript is so bad that even its inventor doesn't have anything nice to say about it. Nevertheless, we are all forced to use it and it will likely be around for a while.
@hextech687
@hextech687 5 ай бұрын
We will all die before Javascript does unfortunately.
@arcuscerebellumus8797
@arcuscerebellumus8797 5 ай бұрын
nah... First of all, this piling on JS is mostly about frameworks and mostly a meme, but even if it died like "yesterday", with the amount of existing code and infrastructure, the transitory period and maintenance going with it would stretch into a lifetime... we (as in humans) still use Fortran and Cobol and IF you choose to spend time in it (although I have no idea why you'd do that to yourself), they actually may end up paying a lot more then your avarage JS position.
@XDarkGreyX
@XDarkGreyX 5 ай бұрын
As if. Just git gud. Live in sadness, die in sadness
@jasonxb2998
@jasonxb2998 5 ай бұрын
Learn JS first! You won't know why it's so bad until you learn another lang. And by then you'll be good at JS so who cares?
@fakedevdutt
@fakedevdutt 5 ай бұрын
haskell community all 21 of them! 😆
@coreyfro
@coreyfro 5 ай бұрын
I am a stereotypical italian monster and I approve your message
@tehpsalmist
@tehpsalmist 5 ай бұрын
who else starts instinctively slapping the spacebar when Prime starts pausing the video too much? xD
@Sailor_Z
@Sailor_Z 5 ай бұрын
What does he mean by "always ask a question before you just claim an outcome"¿
@adambickford8720
@adambickford8720 5 ай бұрын
"InJeCtIoN AtTaCk!1!1" vs "isn't that an injection attack via string interpolation?" Turns out it is not string interpolation, though it looks a lot like it. That first case makes you look like a fool, in the 2nd you've expressed a concern while leaving the door open to being wrong, learning and growing. Of course if you're proven right, you can still pull out deez nuts.
@mitchierichie
@mitchierichie 5 ай бұрын
I love Vue
@RandomGeometryDashStuff
@RandomGeometryDashStuff 5 ай бұрын
04:52 just call it map2
@ibrahimraimi_
@ibrahimraimi_ 5 ай бұрын
I hope the JavaScript ecosystem stops this "every week, new framework shenanigans".
@voidwalker7774
@voidwalker7774 5 ай бұрын
Vue is stable, i use it since 2018. Stable as f*ck.
@ibrahimraimi_
@ibrahimraimi_ 5 ай бұрын
@@voidwalker7774 Have been thinking of giving Vue a try. I will add it to my "Technologies I'm learning in 2024" lost.
@darshandev1754
@darshandev1754 5 ай бұрын
@@voidwalker7774 any chances it will change in 2024, because I am fed up with client and server components of next 13 and14
@moritzschuessler
@moritzschuessler 5 ай бұрын
i mean... did so much actually happened? Sure there a new Frameworks all the time but nobody uses them. Dont think there was any relevant newcomers this year. Also the common frameworks didnt changed that crazy.
@darshandev1754
@darshandev1754 5 ай бұрын
@@moritzschuessler I think the only major one new comer was bun But next.js changed so much that it's practically a new framework and it was buggy until a couple months ago Dunno about angulars changes but does sound significant
@greed7513
@greed7513 5 ай бұрын
genuinely confused about why groupBy exists. The example he showed would be much more readable with a map or filter, but most importantly, why add it if an extremely similar method already exists?
@harleyspeedthrust4013
@harleyspeedthrust4013 5 ай бұрын
im wondering the same thing. some people said that they think it offers a performance benefit. i don't know and personally don't care because the idea of "performance" in javascript land is kind of a joke
@SimonBuchanNz
@SimonBuchanNz 5 ай бұрын
How do you write an expression that gives you two lists that partitions a list using map or filter? Yeah, you can use multiple filters, but now you need to be careful that your filter condition is exactly inverted and the list didn't change or you miss or double count. But the real issue is if you're grouping by eg parentId you don't know what the values to filter by are!
@abc123evoturbobonker
@abc123evoturbobonker 5 ай бұрын
.toMap that mutates a const array into a const Obj? I imagine ecma people will love it, rush to release
@aidanbrumsickle
@aidanbrumsickle 5 ай бұрын
I prefer htmx and svelte to Vue, but of the mainstream frameworks, sorry, libraries, my experience has been that Vue is a much less leaky abstraction than React, and much easier to incrementally adopt than Angular. However it has been some years since i have used any of them.
@shinoobie1549
@shinoobie1549 5 ай бұрын
"NO-SQL was largely a mistake" - The Primeagen
@xxapoloxx
@xxapoloxx 5 ай бұрын
Why is exporting and importing SUCH A PAIN IN THE ASS with Js and Node and Ts
@kirkwolak6735
@kirkwolak6735 5 ай бұрын
All 21 Haskell users... FTW...
@ruslansmirnov9006
@ruslansmirnov9006 5 ай бұрын
the year was 2023... JS community finally implemented 2:37 groupBy invented by 3:17 RDBMS's 56 years ago...
@-Jason-L
@-Jason-L 5 ай бұрын
The cutoff for adult is 18, not 21.
@kenny-kvibe
@kenny-kvibe 5 ай бұрын
HTMX
@user-pe7gf9rv4m
@user-pe7gf9rv4m 5 ай бұрын
Why the hostility towards Haskell?
@dievas1
@dievas1 5 ай бұрын
Because it has no actual use.
@user-pe7gf9rv4m
@user-pe7gf9rv4m 5 ай бұрын
Lol
@mfc1190
@mfc1190 5 ай бұрын
For those who didn't know, NOSQL stands for Not Only SQL, LOL.
@falven
@falven 5 ай бұрын
App directory "Stable" LUL
@blackmind2966
@blackmind2966 5 ай бұрын
JS is a form of inconsistent virginity
@CottidaeSEA
@CottidaeSEA 5 ай бұрын
I've never really understood the whole "oh no, this function mutates the original array" dilemma with sorting. Shouldn't that be the assumption? .map and .reduce are inherently not functions that should mutate the original array just based off of what they do, so that's a non-argument. If you want a copy of your array when it's sorted, maybe just clone it before sorting? I honestly just don't get it.
@adambickford8720
@adambickford8720 5 ай бұрын
People are moving away from mutability in general to the point where frameworks expect/demand it.
@CottidaeSEA
@CottidaeSEA 5 ай бұрын
@@adambickford8720 Yes, but why? It makes no sense to me. I do not see the point in reallocating memory just to adjust 1 to 2. I do not see the point in reallocating all of the memory just to append a single element to an array. To me it just seems like idiocy. There is some merit to immutability, but I honestly do not believe it should be the default behavior for turning A into B.
@adambickford8720
@adambickford8720 5 ай бұрын
@@CottidaeSEA you are essentially trading performance for correctness and predictability. This is a trend among almost all the major languages. It allows frameworks to use identity checks for equality which is quite a bit more performant in large graphs. In practice, you are very unlikely to see a meaningful performance gap.
@CottidaeSEA
@CottidaeSEA 5 ай бұрын
@@adambickford8720 Sure, but you can have that with mutable data as well. If you're passing data to who knows where then immutable makes sense. If you're working with data locally or you get an input that needs to be adjusted somehow inside of the current logic but not outside, clone it. It just feels like people just don't know what they are doing and immutable data feels like a protection against that. I also want to point out that pretty much half of the performance issues I encounter are memory-related, so I am not so sure about that unlikely performance gap.
@adambickford8720
@adambickford8720 5 ай бұрын
@@CottidaeSEA its a different paradigm with its own pros and cons. its not that people don't understand, they just don't agree on the value of the trade-offs. immutable code is easier to understand as you don't have to worry about state over time. you don't have to 'manage' state, so it reduces bugs. it's a big part of why functional programming is on the rise and these apis support that nicely. if performance is critical you might want to consider something like persistent structs, object pooling, mutable structs, etc. but if you don't have measurements and SLAs, the 'performance' claim isn't very convincing.
@SkywalkerWroc
@SkywalkerWroc 5 ай бұрын
Javascript Backend development is turning into PHP, only worse. Crazy when you think about it, lol.
@kahnfatman
@kahnfatman 5 ай бұрын
New JS devs are Haskell-wannabes without virginity. 6:31 btw which website is that??
@Shogoeu
@Shogoeu 5 ай бұрын
groupBy is ideal for me because our "DB people" do not allow grouping in the DB...
@nightshade427
@nightshade427 5 ай бұрын
Haha, js should make toMap mutate, so js can remain consistently inconsistent 🤣🤣
@TayambaMwanza
@TayambaMwanza 5 ай бұрын
Bro don't give them ideas about toMap, oh no...
@eleah2665
@eleah2665 5 ай бұрын
Next copied remix before everyone else copied next.
@meanmole3212
@meanmole3212 5 ай бұрын
Guys I have important announcement to make, please take it seriously: I hate web development. (also javascript is dangerous to your well-being)
@myname2462
@myname2462 5 ай бұрын
JavaScript => JavaShit
@continuouslearner
@continuouslearner 5 ай бұрын
Hey man, arent you taking away views and revenue from fireship by streaming his entire video on your channel?
@marcmcintosh6715
@marcmcintosh6715 5 ай бұрын
are the haskel community pissed....? .... Maybe
@beanstable
@beanstable 5 ай бұрын
Extra virgin Haskell
@user-hx3dw6ic2u
@user-hx3dw6ic2u 5 ай бұрын
W
@Rohinthas
@Rohinthas 5 ай бұрын
I really like how much shit fireship and prime talk about popular technologies while also using a lot of them daily. Much prefer that over these weird "my language/framework is the best language/framework" fights
@XDarkGreyX
@XDarkGreyX 5 ай бұрын
Folks who can do that about any of the things they use or like are generally better people to work and live with anyway
@LiveErrors
@LiveErrors 5 ай бұрын
They both also stand their favourite things regularly, they just mix it up
@suponjubobu5536
@suponjubobu5536 5 ай бұрын
First.
@deado7282
@deado7282 5 ай бұрын
I don't seem to love vue. Vue is really not that great, since we have 2 api's to do the sam thing.
@khangle6872
@khangle6872 5 ай бұрын
Next now also had 2 flavour, Angular just got another api to write templete and Svelte about to release another way to write reactive stuff Everyone does it now
@deado7282
@deado7282 5 ай бұрын
@@khangle6872 Which is a bad thing. Every year they have to change their opinion what a decent webapp has to look like. It sucks. I've rarely seen any improvements being worth the changes and the mess they create. Vue with options api was perfectly fine. Like react was in 2014 or Angular 2 in 2017. I also hate the argument of "programming language X is a lot different these days because it now has Y" which means they offer more ways to do the same thing or they created a mess with breaking changes. Of course everyone can make changes or invent new libs and frameworks otherwise there would be no improvements at all. However you just can't invent a new more efficent way to do X or Y so frequently. I think as a developer you waste your time and you benefit more if u have a very basic but extremely flexible techstack like vanilla sql + php/go + some vanilla js/css and spend your time learning these properly & establish a nice workflow instead of switching between fe-frameworks/or-mapper/baas/css-frameworks/... to always get the right abstraction for the current job.
@moritzschuessler
@moritzschuessler 5 ай бұрын
like any other framework and even language
@deado7282
@deado7282 5 ай бұрын
@@moritzschuessler It always depends on the focus of a problem. Both vue api's provide a solution for a quite focused problem which is just annoying. A programming language does not have a narrow focus like that. So reducing the amount of necessary concepts you have to understand in order to solve a variety of problems should be the priority. It''s difficult to compare. A similar thing would be if a programming language has 20 different ways to init an object or to create a timer. And on top of that all of these methods seem to do the same but behave slightly different. (I have a C# .NET background)
@moritzschuessler
@moritzschuessler 5 ай бұрын
@@deado7282 new apis are necessary to be backwards compatible. If not it will break when migrating to new versions. If that isn’t the case new versions wouldn’t be possible and there would be way more new frameworks (and languages)
@RedOchsenbein
@RedOchsenbein 5 ай бұрын
Dockerizing Next is really not that hard. Skill issue...
@MarcelRobitaille
@MarcelRobitaille 5 ай бұрын
I hate vue
@Tony-dp1rl
@Tony-dp1rl 5 ай бұрын
HTMX just frees up so many of the front-end developer's brain cells that were previously occupied keeping up with changes to frameworks
@MrJoefinisher
@MrJoefinisher 5 ай бұрын
Vue is cool. Don't use it.
@VivekYadav-up7uu
@VivekYadav-up7uu 5 ай бұрын
Nice video
Prime Reacts: Creating JSF#*!
22:56
ThePrimeTime
Рет қаралды 64 М.
Serverless Was A Mistake | Prime Reacts
13:40
ThePrimeTime
Рет қаралды 204 М.
Miracle Doctor Saves Blind Girl ❤️
00:59
Alan Chikin Chow
Рет қаралды 40 МЛН
SHE WANTED CHIPS, BUT SHE GOT CARROTS 🤣🥕
00:19
OKUNJATA
Рет қаралды 14 МЛН
СҰЛТАН СҮЛЕЙМАНДАР | bayGUYS
24:46
bayGUYS
Рет қаралды 746 М.
The Truth About The Fast Inverse Square on N64 | Prime Reacts
16:59
WebComponents Will Outlive Your JavaScript Framework | Prime Reacts
28:47
Is clean code a LIE? Primeagen x Casey Muratori say so
14:15
BHolmesVods
Рет қаралды 1,9 М.
The Stockholm Syndrome of SQL | Prime Reacts
31:21
ThePrimeTime
Рет қаралды 120 М.
Brain F**k in 100 Seconds | Prime Reacts:
6:28
ThePrimeTime
Рет қаралды 224 М.
10 JavaScript changes you missed in 2023
5:56
Fireship
Рет қаралды 707 М.
Prime Reacts: The Story of React
31:44
ThePrimeTime
Рет қаралды 121 М.
TOP 5 CODE EDITORS | Prime Reacts
7:46
ThePrimeTime
Рет қаралды 81 М.
A Lesson In Hard Work (as a software engineer)
22:12
ThePrimeTime
Рет қаралды 85 М.
The State of Develper EcoSystems 2023
32:53
ThePrimeTime
Рет қаралды 109 М.
Куда пропал 3D Touch? #apple #iphone
0:51
Не шарю!
Рет қаралды 649 М.
Apple, как вас уделал Тюменский бренд CaseGuru? Конец удивил #caseguru #кейсгуру #наушники
0:54
CaseGuru / Наушники / Пылесосы / Смарт-часы /
Рет қаралды 4,5 МЛН
How Neuralink Works 🧠
0:28
Zack D. Films
Рет қаралды 32 МЛН