Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do you use any public libraries for those backend servers, or is it all home-grown? Curious what's at play.



yes I do: spp-httplib, taopq, spdlog, rapidjson. Also some other extras and alternatives depending on particular needs but the ones mentioned are enough to get one started on generic web app backend. What I do not and likely will not use are big opinionated frameworks.

Yes I do write my own libs as well but those are very domain oriented and mostly serve needs of particular application. Nothing exciting there.


Do you have any open sourced projects wit this setup? I have a soft spot for (C) single header libraries, would be interesting to compare.


> I have a soft spot for (C) single header libraries

May I ask you why? The whole preprocessor macro thing is just a disgusting hack that compiles slowly, is error prone and is not even expressive enough for the most basic of things.


I just tried changing a single file in my real project that uses those 4 libs. 3 seconds from change to starting debugging session.

Full rebuild of the project took 14 seconds.

While it is not blazing speed like one gets with the likes of Delphi, Go, etc. it is still quite ok. I am a practical person and can tolerate couple of seconds of compile-run in return to convenient libs.

And it is sure expressive enough to give me what I want. Yeah, writing template libs is something but fortunately other than writing template here and there I do not really have to do this kind of work.


Unfortunately I have no time for opensource.


Yeah... writing web apps in C++ will do that. No time.


Take a deep breath and think about what you've just said.

In reality if the applications are of any decent size there is basically no difference time-wise doing those either in C++ with libs or PHP/JS/Python. I have fair practical experience on this.

As for open source - I run 2 companies and do a lot of development myself. I have family and also do a lot of fitness so I can creak along at my young age of 60. You get the drill.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: