Hacker News new | ask | show | jobs
by beginnings 1148 days ago
For me, the main driver for using c++ with anything is performance. I use Drogon and its exceptional, there is some initial pain when you pick it up for the first time but that's probably the case with Rust alternatives as well. Once you set up and get used to how it works its a breeze to use, the CLI tool makes it easy to add web sockets and controllers, and it has very nice database and JSON integration as well, although I do use Rapidjson for heavy lifting rather than the default.

One of the big gains I have found is you end up with a really nicely structured, rock solid c++ project that is painless to return to even after 6 months, you just pick it up and go. I find coming back to python or javascript projects that I need to sit with the editor open for days before I can get a good handle on things and be productive again. As a solo dev that is important to me as moving between backend, frontend and data tools, you can only can keep one section loaded in Ape RAM at a time.

1 comments

I’m about to start a new job, I’ve worked on and off at my current work place for about 13 years spread out over the last 20 years. We were an early start up and we did web development in c and then later c++ because the web browser and the database and web server and the os were all c/c++ so why wouldn’t we use it? We switched to c# and python and js/ts for new dev at some point because we couldn’t hire c++ devs at the same rates, that switch killed the company, but to us along time see it. Well the company’s not going to die, but it’s not going to be a software company anymore.

Our 20 year old c++ runs fine, and has been straight forward to extend. Everything else got caught up in endless cycles of framework updates and paradigm shifts, leaving slag heaps of angular 1 and early dot net abandonware, years of work dumped because dependencies and frameworks were out of support. It’s become such an unruly mess that if all goes to plan they’ll shut it all down, move on to a competitor technology, which I understand is all c++

Yeah web is pretty crazy, I only got into it recently but ive noticed that the major frameworks are not really rivals like their users, they are all sharing ideas and maybe it's converging towards a bit more stability. Im bullish on SolidJS to live up to the name, the creator Ryan Carniato has a wealth of knowledge in that area having been through the whole web roller coaster, and he is getting close to "this is how it should be done".