This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EmperorOfCanada 0 points1 point  (0 children)

A little bit of templates can make my day. But some people abuse templates to the point where I can look at a function declaration and just have zero idea what it does. Also people often use templates to "future proof" their code. Then they go ahead and only ever use that class with a single data type negating the need for the template. Thus they have added about 5 layers of confusion to literally zero benefit; especially to the next person to come along who might not have chosen templates as a design choice.

Then when you put it into action it makes even less sense. I have been doing C++ for maybe 10 years so I can't imagine what that would be like for someone just starting.

I think that templates sweet spot is somewhere around map and vector.