Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Konsole30495yEvery language has its own share of problems.
There are places where js shines and no other language comes even close.
js literally is the frontend of entire internet.
It's fine if you don't like it but also see the good things in it. -
Konsole30495y@dronnac No. I mean it. If there is some other language that comes close to what js offers and is also adopted as widespread as js, then I would like to know
-
dronnac155y@Konsole once again, offers what? Being widespread is literally the only thing that makes it noteworthy
-
Konsole30495y@dronnac Yes and that's a quality. Why do you think java or php haven't died yet? Surely they aren't the best language today.
-
dronnac155y@Konsole if being popular is the only unique quality you can name about js, that's pretty sad haha. Php hasn't died out simply for legacy reasons nowadays and Java is just too versatile and robust to die out
-
Konsole30495y@dronnac That's "one of the qualities" not the only one. Otherwise it wouldn't have become widespread in the first place.
Remember Ruby / Rails? It went down the drain just as fast as it came up. Didn't happen to js.
Even if js dies 10 or 20 years from now, it's gonna be a very vary slow death
But you don't seem to be particularly interested in acknowledging the qualities of js.
And I don't wanna argue over this.
So let's rest it. -
@dudeking I think you forgot a =. And yes, the fact that all scalars contain the toString function is one of the corkiness and f the language (as the main prototype contains it)
@dronnac: man, that's your opinion. And you should treat every opinion as a dick. The fact that you have one doesn't mean you can jam it up someone!
That being said. Javascript is lightweight. Yes, if you do some C stuff or as86 you are better. But compared to standard JAVA, Python, etc, it's lightweight.
As a functional language, you don't have to put so much framework config/def into it.
It's event-driven. So heavy nodes (not nodejs, nodes) connection, it's one of the best (I prefer elixir).
It's easy, and whatever you do, you can't crash the system (almost). -
It has also so fucking weird stuff in it. And no it's not the stuff you most certainly hate. But real core weird stuff you need to know to get real performance... Like every fucking language.
I will never again work in heavy C, C++, Python, Elixir/Erlang or Haskell stacks with nonsenior developers!!! Do you want a real pain in the ass? There have one! And it's far worse than any weird bat shit any language do (except stuff la brainfuck...) -
dronnac155y@jotamontecino @dudeking this a really stupid take considering the whole point of devrant is jamming your opinions and complaints down others throats
-
muttley885y@Konsole to say JavaScript is better than ruby is not much of a compliment:-)
I don’t mind JavaScript it is tolerable for what it offers but I absolutely hate the DOM that shit was designed by some phd never had a real job arsehole.
Fortunately we have Ajax/jquery and don’t have to deal with it anymore. -
@jotamontecino
Lightweight?
Google's V8 Engine might keep around _four_ versions of specific parts of the JS source.
Original Source, Ignition Bytecode, Speculative Assembly, and Highly Optimised Speculative Assembly.
What about this is lightweight? -
Konsole30495y@muttley Maybe not. But node/express does a much better job rails ever did.
Also you should understand that when js was brought, there was nothing else out there.
Yes js has its problems. But there wasn't any alternative then.
And it's versatility has allowed it to evolve the way it has today.
Also basics of js are a lot easy(compared to others) to learn somewhere along the lines of python.
Also DOM ain't that bad -
Welcome to the realm of dynamic languages where nothing makes sense and types don't matter
-
@Batburger You are totally right. But would you say Java applets or Flash were better/lighter?
Now, I mostly never do Front JS.
@irene: again, the problem is more about developers than language. -
@irene Both are cancer. Weak typing is certainly worse but dynamic typing is bad enough on it's own
-
Rikan2835yJS hast it's difficulties and problems, but it's not like nobody found a solution. If you have problems like typing, use TypeScript. And, like jotamontecino said, most of the time the Problem ist more about the developers. Keep your code clean and as simple as possible, don't reuse variables for other types and define or use an existing codestyle and JS is much less frustrating to use.
-
@12bitfloat then EVERY language is cancer. CPP is fucking cancer, try to review some code wrote by a fucker, and you will see it's cancer!!!
Lately, I had to review/modify a gem. And if I could I would have tortured to death the coder who committed it!!!
And having done some stuff on x86, I had only one question in mind : "WHY?!?!?! For the love of Satansoft WHY?!?!".
@Rikan exactly! Nowadays the main problem is algorithmic and reading. People still don't get that your code MUST be explicit, clean, have a meaning and it should be simple! Today a lot of people want it to be easy! So a lot of tools that helped at first now became crutches. And THAT'S the real problem.
Related Rants
God I fucking hate Javascript.
- unknown operator
- type coercion
- sorting always works alphabetically (lmao)
- literally started as a joke
why can't it be normal and predictable, or at least mildly comfortable to use?
rant
javascript
languages
web development