News for hackers. Stuff that matters.
Re:Httpserver.h: Single header library for writing non-block... by pjmlp on Friday December 13, 2019 @06:47AM (#21780791)
It feels like more being lazy not to learn the proper way of doing it.
Re:Httpserver.h: Single header library for writing non-block... by dkersten on Friday December 13, 2019 @07:14AM (#21780913)
The proper way to do it sometimes is horrendously complex or uses a build system different from the one you use. Header only avoids this usually.
Re:Httpserver.h: Single header library for writing non-block... by pjmlp on Friday December 13, 2019 @08:12AM (#21781208)
Building a plain .a/.lib or .so/.dll is not horrendously complex.
Re:Httpserver.h: Single header library for writing non-block... by noobermin on Friday December 13, 2019 @08:23AM (#21781265)
Package management is often hideously complex and a central sink of labor effort in linux distros. Building it for yourself is easy, in practice using dynamically linked libraries are the start of all sorts of troubles.
Re:Httpserver.h: Single header library for writing non-block... by pjmlp on Friday December 13, 2019 @08:35AM (#21781338)
Providing static libraries is also an option.

Generating rpm or deb files is hardly the end of the world, there are even package generators available.

Re:Httpserver.h: Single header library for writing non-block... by dkersten on Monday December 23, 2019 @09:41AM (#21863836)
I just watched a cppcon video where Bjarne himself lamented about the complexity of installing many libraries for use in C++.
Re:Httpserver.h: Single header library for writing non-block... by dkersten on Friday December 13, 2019 @11:57AM (#21783239)
I’ve personally had great difficulty building these for large libraries, especially when they use a build tool different than the one I’m familiar with (I use cmake for C++ these days but I find cmake itself horrendously complex and difficult to understand even after investing significant time into it).