Hacker News new | ask | show | jobs
by userbinator 3870 days ago
I didn’t want the developer to declare his routes by writing C++ code

...in a web framework in C++, where presumably the developer would need to write C++ anyway to make use of it?

This article is quite long and complex

No kidding. And to me, all that complexity just screams "you're doing it wrong."

I read this article all the way to the end, and was disappointed to find that, after all that code, it ends with a single macro call --- in C++ --- and leaves the reader wondering about the original goal of using JSON.

Years ago I spent a brief amount of time maintaining Java code that was written in this reflection-heavy, everything-configurable (XML and even some ad-hoc text formats, but similar idea) style, and it was not at all enjoyable to get everything set up correctly nor debug the monstrosity. On a somewhat related note, http://discuss.joelonsoftware.com/default.asp?joel.3.219431....

1 comments

I’d prefer to have a simple JSON configuration file... followed by a pile of unnecessary complexity in the form of new semantics on how to declare and tie things together.

I highly doubt that this is making author's developers life easier.

More likely, it's just an over-engineering indulgence, that happens to make one's job more secure.