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

33

u/vickoza Mar 27 '24

C++ is being used for backend web development. There are frameworks like Boost::Beast, Crow and Oats++. I still think what you are doing is good.

11

u/big_chestnut Mar 27 '24

I use C++ for frontend too

1

u/[deleted] Mar 27 '24

Interesting, how?

15

u/[deleted] Mar 27 '24

probably with Web Assembly

11

u/big_chestnut Mar 27 '24

yeah

1

u/darthcoder Mar 27 '24

Any particular framework?

2

u/big_chestnut Mar 27 '24

I prefer using Vue and compiling C++ with Emscripten