Similar Posts

Subscribe
Notify of
10 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Ireeb
7 months ago

Anyone who knows a bit can tell you that you can program a backend with C languages. C# is used much more often than C++.

And just because you can program a backend with C++ can does not mean that it is should. The strength of C++ is that it is very performant and optimisable. However, in C++ you can also shoot yourself into your own leg very quickly if you don’t master the language well.

That complete backends are written in C++ is therefore very rare. Instead, languages like C#, Go, Java, JavaScript/TypeScript or PHP are used that offer a much better software ecosystem for web programming, and at the same time, if necessary, you can also integrate C++ modules into them. So if the backend has to do something where the performance is very important, you can program this part in C++, but the rest is still implemented in another language that is more common for backends.

A backend alone is not yet a website. Even if you program a backend with a C language, it has to output HTML that the browser can represent. This is in principle with almost every programming language. Basically, only the HTTP protocol must be implemented in a programming language so that you can use it as a backend language.

But if you don’t think exactly what language you use, you might find very long-term problems.

KarlRanseierIII
7 months ago

All content to create content dynamically via CGIs and to write the entire backend in C (C++) is usually not opportune – simply because it costs unnecessarily much (expensive) developer time.

ntechde
7 months ago

It’s – I’ll say it carefully – quite unusual. But it is neither illegal nor completely wrong! This was different when CGI was the only way to create dynamic websites, at the time it was quite common with compiler languages than CGI.

Today you take module-based languages – the program is only interpreted once more and is available until the web server is restarted (or someone changes the program).

But again: Compiler languages as CGI are just a bit outdated and unused – but by no means illegal!

Asporc
7 months ago

C is at least not made for creating websites.

And in normal schooling it is not treated as one would do.

Furthermore, the question is why you should use C for something with Html etc. much faster and more effective.

naaman
7 months ago

You can assume that almost everything was programmed in C. Even programming surfaces that use a completely different language as a basis.

… and of course you can create with CPP websites (CPP is just an extension of C).

BeamerBen
7 months ago

Because there is no good reason to use this.

geheim007b
7 months ago

Of course, you can also create websites with c++, just as you can tap into the wall with a nick hack. It’s not done at all.

geheim007b
7 months ago
Reply to  geheim007b

to specify it… of course the program has to go out at the end of HTML code…. could even play webserver at the same time. It doesn’t make sense

actionJackson24
7 months ago

with c/c++ you would also only embed and output html code, only much more cumbersome and completely meaningless. wrong hammer for the screw.

F35FighterJet
7 months ago

Because it’s fucked