this post was submitted on 29 Jul 2024
115 points (97.5% liked)

Programming

17024 readers
192 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] masterspace@lemmy.ca 1 points 1 month ago* (last edited 1 month ago) (2 children)

People dislike JS because it's packed full of moronic footguns and technical debt.

Lol, no it's not. The literal only footgun is the truthiness aspect of equality and using ===, and it's really not hard to figure out and avoid. Especially given that linters will automatically flag it for you.

TypeScript is better, but at the end of the day it's just an illusion. Add an any anywhere, which will happen, and you're back to square one.

It is extremely easy to not let any slip into your code, you do this little thing called review code before merging. Crazy, I know, but by just following the most basic software development practices it turns out you can also avoid other basic junior mistakes! Wild right?

And lmao, oh my god the web ecosystem is ass because a framework for producing robust complex applications isn't just an html and CSS file? Lmao bruh, tell me you've never coded in a different language without saying you've never coded in a different language. You think a .csproj or a .gradle file is simpler and more intuitive?

You're mistaking basic junior programming mistakes for issues with the language.

[–] shy_mia@lemmy.blahaj.zone 10 points 1 month ago* (last edited 1 month ago) (1 children)

Lmao bruh, tell me you’ve never coded in a different language without saying you’ve never coded in a different language.

I've been a software developer for over 10 years, on both on the front end and the back end.
I've worked with jQuery, React, plain old DOM manipulation, god damn PHP. I'm not new to web development.

Outside of web technologies, I've worked on nautical charts processing software and microcontroller firmware in C, C++ and Rust.
I've worked on native GUI applications with C++, Java and C# using JavaFX, WPF, GTK, Qt.
All under strict corporate standards.
I also work on compilers and rendering engines in my spare time.

So no, I'm not a "junior programmer" making "basic junior programming mistakes". Your favourite language is ass.
You shouldn't immediately jump to the conclusion that someone has never written a line of code only because they say so.
Sorry if it hurts your feelings, but even senior developers, web or otherwise, say it. I'm not the one swimming against the current, you are.

And lmao, oh my god the web ecosystem is ass because a framework for producing robust complex applications isn’t just an html and CSS file?

Alright, let's do a little experiment, shall we? Let's try and create an empty electron app with React and TypeScript.
A quick create-electron-app and some configuring TS, ESLint and WebPack later we reach a whopping 3_087_725 lines of code. 3 million lines. ~700MB.
This all requires a linting step, a pre-compilation step though tsc, multiple additional translation steps through webpack for older ES versions.
All of that for an empty page on a webview.

This is batshit crazy. And I come from fucking CMake for crying out loud.
There is nothing robust about this, the slightest misstep and your sourcemaps are fucked.
Whoops the author of left-pad decided to pull it from npm - half the JS ecosystem on its knees.
Whoops the author of is-even one day decides it's a stupid package to need - half the JS ecosystem on its knees.

Web developers are standing on a crumbling, fermenting pile of shit. Get over it.
...
With that said, you can still enjoy JS and all the web stuff, there's nothing wrong with that...

[–] Feathercrown@lemmy.world -3 points 1 month ago