this post was submitted on 18 Apr 2026
-1 points (49.5% liked)

Programming

26579 readers
161 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 2 years ago
MODERATORS
 

Found this gem. A single well made video in a channel. The Channel owner probably made this channel just to house one video I guess.

I havent watched it all the way through but it seems to have alot of substance. By the looks of it the guy probably has spent atleast a year developing professionally in C++ and is pretty pissed to make that video as a ventfest

See if you cant agree with something he said

you are viewing a single comment's thread
view the rest of the comments
[–] Skullgrid@lemmy.world 42 points 1 day ago (7 children)

javascript exists; his point is invalid

[–] namingthingsiseasy@programming.dev 2 points 7 hours ago (2 children)

I also agree that Javascript is worse. C++ has two excuses for being bad:

  1. It has to be compatible with C, a language that's multiple decades older than it, and
  2. It is not garbage collected.

Javascript has neither of those two excuses. People only use it today because of the ubiquity of web programming. In fairness, it did kill off a few other technologies, like Flash and Java applets, but that was more Webkit and Chrome picking it as the winner than anything else.

Maybe these arguments are a bit hand-wavy, but the way I see it, it's like the C of the web programming era.

[–] Custodian6718@programming.dev 1 points 2 hours ago* (last edited 2 hours ago)

My Brother Here are 2 for you from a java guy:

  1. JS was hastily put together
  2. it was Never meant to be used for something other than some interactivity in the web Actually Here is a Third one:
  3. it had to be redesigned from a lisp to a java Like Language for Marketing purposes..

It also has a Lot of footguns but isnt nearly as cluttered and complicated and lets you Focus on your task at hand more

[–] BB_C@programming.dev 2 points 6 hours ago (1 children)
[–] namingthingsiseasy@programming.dev 1 points 6 hours ago (1 children)

It may not be perfectly compatible, but being mostly compatible with C was a large part of its selling point when it was originally announced. Without that, it probably wouldn't have seen as much adoption. However, that choice also led to a lot of difficult design decisions which have become a liability today.

[–] BB_C@programming.dev 2 points 4 hours ago

mostly compatible with C

It's not mostly compatible, not even on the surface level, with any version of C post C89. And most of the ever-growing crap in the language came after the early years anyway, with constructs that are C++-exclusive.

[–] FizzyOrange@programming.dev 1 points 13 hours ago

JavaScript isn't even close to the worst language to ever exist.

[–] bleistift2@sopuli.xyz 10 points 1 day ago

I program JavaScript for a living. I’ve noticed how I’ve become blind to my language’s idiosyncracies, but I still believe it isn’t super bad. Especially with all the new shiny features that were piled on ever since 2018-ish (I think).

It is definitely nowhere near as bad as C++. And I’m only 6 minutes into the video.

[–] masterspace@lemmy.ca 10 points 1 day ago* (last edited 1 day ago) (4 children)

There are two types of languages:

  • Ones people complain about
  • Ones that don't get used

JavaScript, especially when using TypeScript, is quite frankly one of the most pleasant development experiences. Yes, there are still footguns here and there due to poor early choices and maintaining decades of backwards compatibility (===, etc), but literally all of them are caught by basic linting.

Go try using Salesforce's bastardized version of old Java (Apex) if you want to experience a truly unpleasant language.

[–] coriza@lemmy.world 5 points 15 hours ago (1 children)

I don't have a dog in this fight, but I want to point out that you can't say the JS is pleasant to use while at the same time saying that that is the case if you are using another language that transpile to it. And specially when said language or "improved syntax" was created with the sole purpose to address shortcomings in JS.

[–] masterspace@lemmy.ca -1 points 13 hours ago* (last edited 13 hours ago) (1 children)

Well two things:

  1. yes I can. It's perfectly possible for a slice of pie to be pleasant, and a slice of pie with ice cream to be more pleasant.

  2. the original point of discussion to kick off this thread was claiming that js is the least pleasant.

[–] namingthingsiseasy@programming.dev 1 points 7 hours ago (1 children)

It’s perfectly possible for a slice of pie to be pleasant, and a slice of pie with ice cream to be more pleasant.

In my personal opinion though, that's not how I would describe Javascript vs. Typescript. Javascript was basically replaced overnight, to the point where you should be very harshly criticized for ever using it these days unless you're maintaining a legacy project.

[–] masterspace@lemmy.ca 1 points 7 hours ago (1 children)

Yeah, we're describing it the same way. A slice of pie with ice cream is preferable unless you don't have ice cream available.

If you want to go on a rant about JavaScript then just do so, stop trying to goad someone into an argument about it.

[–] namingthingsiseasy@programming.dev 1 points 7 hours ago* (last edited 6 hours ago) (1 children)

I'm not trying to goad you into an argument, though I could have admittedly phrased things better. I just can't think of any reason why someone would want adopt Javascript as it is with all of its problems. A slice of pie is better than nothing at all. On the other hand, using Javascript when a much better alternative exists (namely Typescript) would be a significant liability in my opinion.

In fact, pretty much everyone on our front-end team at work would agree too - they're pretty much unanimous in saying that Javascript should basically never be used.

[–] masterspace@lemmy.ca 2 points 6 hours ago* (last edited 5 hours ago)

I wholeheartedly agree that TypeScript effectively supercedes JavaScript if you're starting a new project.

JavaScript is still not the most unpleasant language to use though.

[–] VoodooAardvark@lemmy.zip 8 points 1 day ago

They managed to make a worse version of ColdFusion, truly impressive.

[–] Skullgrid@lemmy.world 1 points 1 day ago (1 children)

Go try using Salesforce’s bastardized version of old Java (Apex) if you want to experience a truly unpleasant language.

I have. I like it more than JS as a language.

I just fucking hate the fact that it's basically useless outside of salesforce; no one gives a fuck if you can code in apex except for people that need you to program some useless shit in salesforce

[–] VoodooAardvark@lemmy.zip 0 points 23 hours ago (1 children)
[–] Skullgrid@lemmy.world 2 points 23 hours ago* (last edited 23 hours ago) (1 children)

... I'm a polyglot^[1] . I fucking hate working on salesforce, but I prefer languages that work like Apex/Java/C++ over things that work like JS.

[1]: Let's see :

  • Javascript
  • Actionscript
  • Python
  • Bash
  • C++
  • C#
  • Java
  • Apex
[–] masterspace@lemmy.ca 0 points 23 hours ago (1 children)

Apex doesn't have namespaces. It doesn't even let your organize your classes into subfolders. It is an absolute F-Tier language.

Try TypeScript, try React, try Go / Swift / Kotlin, spend more time with C#.

[–] Skullgrid@lemmy.world 3 points 23 hours ago (1 children)

Apex doesn’t have namespaces.

Why do you need namespaces? Apex has a singular purpose on a single platform.

[–] masterspace@lemmy.ca 0 points 13 hours ago* (last edited 13 hours ago)

If Apex had a "singular" purpose then they wouldn't have built it as a turing complete generalized programming language.

And the reason you need namespaces is for basic code organization. Classes organize functional objects with a module of code, namespaces let you're break code into modules.

If you have two distinct modules of code, each with their own logger class you suddenly have a confusing naming conflict with both loggers being exposed everywhere (or forced you to rename one).

So then it forces you to try and name your classes like RenderingLogger or Service_Logger and then you very quickly run into the fact that Apex imposes arbitrary length limits on class names.

If you're writing a simple db access script then whatever, it can get the job (worse then other languages but it can). If you're actually trying to build a proper application like you publish on AppExhange then it's shortcomings become apparent everywhere.

Hell it didn't have a reasonable unit testing framework until a side project from some devs introduced Apex Mockery, and it still sucks compared to Mockito and actual professional testing frameworks.

[–] ISO@lemmy.zip 0 points 1 day ago (1 children)

C++ and JS are objectively shit languages from the pool of used languages.

What you quoted is one of the many COPEs Bjarne used in his lifetime. Because unlike JS people. who admit that JS is shit that was originally hastily put together, Bjarne needs the C++ bureaucracy, and the facade of superiority (even if it only lives in his own mind), to keep going because he has nothing else to show for.

[–] namingthingsiseasy@programming.dev 2 points 7 hours ago (1 children)

C++ and JS are objectively shit languages from the pool of used languages.

This is a great point. There are a lot of even worse languages that are dead/dying and deserve to do so.

But personally, I see a lot of people who continue to defend JS. And I have worked in C++ for about 5 years now and nobody I have worked with praises the language - most want to ditch it entirely and switch to Rust. I can think of maybe one person who claims that C++ is good enough, which is hardly any praise.

This is all anecdotal stuff, so maybe we don't see eye-to-eye though. I personally love C++, because it's a really fun language to write, but I simultaneously think it's an awful language, and the people who write/standardize it keep making the same kinds of bad mistakes over and over again.

[–] Custodian6718@programming.dev 1 points 2 hours ago

Nah I see so many Indians praise This Language 💀

[–] fallaciousBasis@lemmy.world 9 points 1 day ago

Visual Basic Requires A Registered OCX.

Which one? Hahahahaha.

[–] eager_eagle@lemmy.world 4 points 1 day ago* (last edited 1 day ago)

I hate JS and I feel miserable writing it... but 5 minutes in and I'm convinced CPP is worse than JS. Even having learned some of it before I did JavaScript.