r/programming • • Apr 29 '14

Programming Sucks

http://stilldrinking.org/programming-sucks
3.9k Upvotes

1.1k comments sorted by

View all comments

Show parent comment

13

u/wegzo Apr 29 '14

Yeah, but in all seriousness they introduce a safer typesystem and allow for very generic and optimal code, so it's not all bad. They tend to get very ugly though if overused, as seen in some of the libraries in the boost project. And the template metaprogramming is something that takes the whole template concept to the next level.

22

u/ChaosCon Apr 30 '14

Template metaprogramming is a whole programming language found by accident. Seriously. They built it, then realized they could use it to compute stuff. If that doesn't label it as insane, I'm not sure what will.

6

u/shillbert Apr 30 '14

Any sufficiently complicated template system contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp.

3

u/donalmacc Apr 30 '14

also they present some less-than-helpful error emssages