Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
erik40415858yI program C++ for hobby so excuse my probably dumb question which I could easily google; aren't templates a thing in C++ since a looooooong time?
-
kraator4138yYes they are, but this guy prefers to stick to his C code style that he knows, ignoring almost all the language concepts that distinguish C++ from C except the very basic object oriented class design.
Basically he believes that the more abstract the code gets the harder it is to maintain and to more time it takes for new programmers to get acquainted with the code. Most "new" language concepts help with making a developers life easier often at the cost of higher abstraction or more complicated to learn rules. Thus they are all evil. I think he just doesn't want to spend time learning new stuff. -
kraator4138y@elazar : the guy uses Microsoft Visual C++ only. I guess that's why he thinks templates are a rather new feature 😁
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
sam966911Hats off to this lady .... I would have just flipped the machine
Happened to me a while ago:
co-worker: don't use (C++) templates so your colleagues who aren't as smart as you don't have such a hard time understanding your code.
me: said the guy who uses macros all over the place.
co-worker: macros have been around for years and you can expect one to understand those.
me: *tempted to start a discussion about C++ with one who started programming with C like 20 years ago and who doesn't give a fuck about learning new things*... You're right!
undefined
c++
macros
templates
lazy as fuck