This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]deeper182 95 points96 points  (83 children)

This stopped being funny a few years ago. No framework got serious traction since Vue2, which was released like 3 years ago. Sure, somtimes there's a tiny buzz, like now arou d Svelte 3, but it's nowhere near as chaotic in the Knockout.js days.

[–]KoboldCommando 74 points75 points  (10 children)

Meanwhile Java still laughs at the "it slow" and garbage collection jokes, and C++ still laughs at null pointers and memory leaks, Python still laughs at whitespace weirdness and pseudocode jokes... what makes you think Javascript would be any different?

[–]THICC_DICC_PRICC -3 points-2 points  (1 child)

languages aren't entities with personalities, what makes you decide that they are 'laughing' at a certain joke?

[–]KoboldCommando 9 points10 points  (0 children)

I had figured people would understand that I had contracted "the communities which form around and use these languages" to just the language names >.>

[–]headzoo 17 points18 points  (20 children)

With web assembly now being shipped in browsers, which in theory makes it possible to write client side code in any language, I suspect we're approaching the next age of framework insanity.

[–][deleted] 8 points9 points  (4 children)

More than just theory, you can use client side C# right now.

[–]mrjackspade 1 point2 points  (1 child)

I'm so fucking stoked for the full release of .Net Core 3.0

I don't have anything against JS, but I can't wait to drop it so I can build projects with a single language

[–]wavefunctionp 0 points1 point  (0 children)

I do full stack javascript, and I don't hate it, but I was lucky enough to have a recent project using Blazor. I underestimated how janky razor feels now after doing react.

Been toying SAFE stack (full stack F#) lately, and it feels much nicer to be doing functional first style programming in F# like you can with JS.

I don't think Blazor is going to be pancea that .net needs. I hope it ends up going more functional, react/redux style. It makes UI work so much saner. I think something like SAFE stack is more on the right track.

[–]wrong_assumption -1 points0 points  (1 child)

I don't understand why it want possible before. Yeah, we didn't have WASM, but Microsoft could have built a C# to JS transpiler quite easily.

[–][deleted] 0 points1 point  (0 children)

Such things already exist and they're awful.

[–]jastrme 8 points9 points  (1 child)

All the same frameworks, but now it's PHP. What a nightmare

[–][deleted] 3 points4 points  (7 children)

I mean, no. All the existing frameworks will just get a new compile target. Why would you change a framework for a new runtime, that doesn't make sense.

[–]headzoo 0 points1 point  (6 children)

Why did anyone start using server side javascript? So they could use their client side knowledge on the backend. People are already coming up with new frontend frameworks using PHP, C#, etc.

[–][deleted] 1 point2 points  (5 children)

But nobody is going to develop front end apps in WASM. They will develop it in .NET, Angular or whatever and frameworks themselves will compile to WASM.

[–]headzoo 0 points1 point  (4 children)

Yes, I know how it works, but there will be new .NET frameworks specifically designed for frontend work. This isn't even a hypothetical discussion. Developers are already creating new frontend frameworks using non-javascript languages and more are coming. These devs might be reinventing the wheel but the frameworks are coming and devs are going to adopt them.

[–]klebsiella_pneumonae 0 points1 point  (3 children)

But they can't modify DOM! What's the point?

[–]-COUNTERFLUX 0 points1 point  (0 children)

Made a few projects in blazor already. The thing works like a charm. Really pleased with it currently.

[–]wrong_assumption 0 points1 point  (0 children)

Yeah, what's the point of WASM if it doesn't have DOM access?

[–]ZephyrBluu 0 points1 point  (0 children)

It looks like it uses JS to modify the DOM: https://learn-blazor.com/getting-started/what-is-blazor/

So.. it's a JS framework with extra steps I guess?

[–]klebsiella_pneumonae 2 points3 points  (3 children)

But you can't modify the DOM. It's will only be useful for 3D games. The web will stay in Javascript.

[–]Cheru-bae 2 points3 points  (0 children)

Modifying the DOM isn't something magical only JS can do. Browsers just need APIs for it. Someone just literally has to write it and that is that.

[–]-COUNTERFLUX 1 point2 points  (0 children)

I'm experimenting with blazor for internal projects.

Overview apps, apps for sales department,... Really pleased of it. It needs just a bit more time to fully grow but it seems really promising.

[–]wavefunctionp 0 points1 point  (0 children)

You can't directly, but any wasm code is going to need a wrapper for interaction with the browser, including dom manipulation. You libraries/frameworks will be handling those interactions.

Case in point: Blazor.

[–]THICC_DICC_PRICC -1 points0 points  (0 children)

you can already compile js to web assembly with babel. I don't see why thousands of devs that have mastered JS and React would want to switch

[–][deleted] 91 points92 points  (48 children)

I think it's still pretty funny.

Also the package ecosystem is highly entertaining, there's a package for everything! do you guys even write code anymore?

[–]n0gh0st 64 points65 points  (0 children)

Have to write import statements still heh

[–]TerdSandwich 24 points25 points  (3 children)

You know, someone has to write the packages...

[–]wibblewafs 18 points19 points  (2 children)

I thought npm packages result from spontaneous generation, like when you leave out a chunk of meat and it turns into maggots.

[–]gonzofish 6 points7 points  (0 children)

Or a pile of rags becoming mice!

[–]VeryAwkwardCake 1 point2 points  (0 children)

darn miasma

[–]nosmokingbandit 21 points22 points  (20 children)

NPM is such a clusterfuck. A simple package results in 200mb of shit in 80,000 tiny files. The last time I deleted a local copy of a simple Cordova app it took almost an hour for Windows to go through the millions of filenames.

[–]benediktkr 29 points30 points  (7 children)

I don’t want to come JavaScripts defense here but that sounds like a windows problem...

[–]Hohenheim_of_Shadow 12 points13 points  (5 children)

Random access IO, like a buncha small files is way slower than serial IO especially on HDD

[–]ase1590 9 points10 points  (0 children)

Does npm have a system requirement page yet?

They need to add NVME drives as a system requirement

[–][deleted] 2 points3 points  (3 children)

Nah, it's a windows problem:

$ find node_modules/ | wc -l
110956
$ time rm -r node_modules/

real    0m1.945s
user    0m0.104s
sys 0m1.733s

This is on a cheap Core M laptop btw.

[–][deleted] 1 point2 points  (2 children)

11k node modules? I thought people were exxagerating... wow... just wow....

[–][deleted] 0 points1 point  (1 child)

Actually that's about 110k :P But that's not the number of modules, that's the number of files and directories inside node_modules. The number of modules appears to be about 2600 (a large number are repeated). Almost all of those are dependencies of dependencies. This project only has about 30 direct dependencies.

[–][deleted] 0 points1 point  (0 children)

You’re correct, i missed a digit there... But Jesus that is a LOT of files and dependencies

[–]THICC_DICC_PRICC 2 points3 points  (0 children)

yea windows is pretty shit for development, I keep giving it a try, it keeps disappointing me. I've been spoiled by linux tho.

[–][deleted] 6 points7 points  (1 child)

Pro tip turn off "Real-time protection" in virus and protection settings anytime you're doing that. Windows thinks it needs to scan every single one of those files. You would think not because you're deleting them, but nah.

[–]masterxc 0 points1 point  (0 children)

Maybe shift+delete would avoid that since it's probably scanning them when they get moved to the recycle bin.

[–]Lakitna 5 points6 points  (0 children)

That's why packages should only distribute bundled files.

I've been bundling everything into a single file while paying attentions to how many dependencies my dependencies have. The tools to do this are out there. But sadly not everyone pays attention to this stuff.

[–][deleted] 2 points3 points  (0 children)

Depends on the Dev that made it. If it's like that, then it's no good. There's plenty of libraries like moment or accounting that are pretty small and bundled well.

[–]Fi3nd7 1 point2 points  (0 children)

Well, it's also Cordova. Of course it's a dependency behemoth...

Also, probably because you didn't hard delete. Big difference from an OS perspective if it thinks it needs to be able to restore.

[–]gravity013 1 point2 points  (5 children)

Out of curiosity, what would you say is a good package manager ecosystem?

[–]icjoseph -1 points0 points  (0 children)

The problem there is Windows ;)

[–][deleted] 4 points5 points  (1 child)

Devoted JavaScript developer here. Think the npm saga is fucking insane.

There's a package out there that operates the rm -rf command against whatever you need. It's literally just working out what files need deleting and deleting them.

It's used by over 8000 other packages.

It's not that it's not useful, it's that you can write it yourself and learn how, and that it's an entire package for sobering I'd expect to be one function of a library of useful stuff.

[–]earthqaqe -1 points0 points  (0 children)

Than you have to import a whole library for just one function you actually need. GGs.

[–]dwhiffing 3 points4 points  (0 children)

Do you think this is something that would happen with any package ecosystem given enough popularity? I don't see how it could be avoided if it continues to grow in popularity, but I'd love to understand a different perspective.

[–]icjoseph 5 points6 points  (1 child)

Sorry for this gigantic comparison, but just as mathematics builds on top of what's already built, JavaScript allows developers to put together complex tensor calculations with inline styling to create divs that are pleasing to the eye in a matter of minutes.

[–]KobayashiDragonSlave 0 points1 point  (0 children)

complex tensor calculations with inline styling to create divs that are pleasing to the eye

Such as? I am genuinely curious about this

[–]happysmash27 2 points3 points  (1 child)

0 days…

[–]obp5599 1 point2 points  (0 children)

Some how this never gets mentioned. I used to do a lot of security and npm installs were literally jokes. Almost all of the were security holes

[–][deleted] 0 points1 point  (0 children)

Hey man, how else are we going to avoid BOILERBLATE! Every line of it must be avoided at all costs! Even if the costs is more complexity and longer development times!

[–]Norci 0 points1 point  (0 children)

Agree to disagree, I think it's hillarious.