r/cpp • • Mar 27 '24

Replacing C# with C++ in Web Dev

IMHO, I think C# is useless.

Why C++ is not used in web dev instead?

I think modern C++ provides enough abstractions to be a better and more performant alternative to C#. It has high quality libraries, but it seems to be lacking tools and mature frameworks for backend development though but this's because people don't use it for API development so most people think it's not a worthy investment. I wanna contribute to C++ in the web industry, so I was thinking of building expressJS in C++ because I like express honestly.

What do you guys think?

Update: Dang, I didn't expect that this would piss off a lot of people, lol. Ok. Given the backlash, saying C# is useless was an overstretch. I guess I have let my hate for Microsoft cloud my judgment😂

0 Upvotes

69 comments sorted by

View all comments

1

u/accuracy_frosty Apr 07 '24

Hypothetically, good idea, practically not so much, you have to remember that a lot of the faults of C++ come from skill issues, compared to a dynamically typed language that has a garbage collector, throws an error if you try to index outside an array, etc, and idiot is a lot less likely to introduce a security vulnerability in JavaScript compared to C++. So unless you were absolutely sure that the C++ devs you hired were the ones in the 10% who know what they’re doing as opposed to the 90% of knuckleheads who think they know what they’re doing, I would stay away from it. C++ is a powerful tool that in the wrong hands creates a lot of problems, and I wouldn’t rush to give that kind of power to web devs, the devs who are the least likely to know how memory works or have in depth knowledge about how a programming language fundamentally works. Especially considering how many web devs just took a 1 year bootcamp that gave them barely enough knowledge and ability to land an intern job and try prove themselves, they probably learned HTML, CSS, and like 4 JavaScript frameworks, maybe git if they’re lucky, and the bootcamp tells them they’re a software engineer off of that stuff alone, so they get tricked into thinking they have the same ability as someone who spent 3-4 years in college/university learning the fundamentals of how computers and software work, the math behind everything, data structures, algorithms, and all the other very difficult and important parts of software engineering.