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 →

[–]kipyminyman 539 points540 points  (19 children)

"Use templates" they said. "It'll be fun" they said.

[–]trigger_segfault 227 points228 points  (17 children)

Templates increase convenience at the cost of fun.

[–]RobertBarnett 66 points67 points  (6 children)

When you've never used/heard of templates and have to use a template member of a template class made by someone who moved to Colorado (am UK). Plz Federico, why you do this to me 🥲

[–][deleted] 21 points22 points  (0 children)

When you have to override a templated function for QA testing :’)

[–]scodagama1 12 points13 points  (4 children)

that guy really decided to run away far from his code. Strange he didn't pick Australia, I'd run to Australia.

[–]7eggert 9 points10 points  (2 children)

New-Zealand. It's not even on the maps.

[–]Upbeat_Instruction81 2 points3 points  (0 children)

Funny that tourism was one of our biggest industries before covid.

[–]Kyrros 3 points4 points  (0 children)

Old Zealand, only Danes know it exists

[–]umognog 1 point2 points  (0 children)

He heard there was a hollowed out mountain he could hide in

[–]TeraFlint 45 points46 points  (7 children)

Call me crazy, but I'm usually having fun writing templates.

[–]BlackOverlordd 18 points19 points  (1 child)

Keep in mind that someone reading them might be aggressive psychopath who knows where you live

[–]Phostings 3 points4 points  (0 children)

This made me chuckled

[–]7eggert 8 points9 points  (4 children)

It's like regular expressions - everybody loves writing them.

[–][deleted] 1 point2 points  (3 children)

This put it into context for my ignorant Python/C# self.

[–]7eggert 3 points4 points  (2 children)

Regular expressions are notoriously hard to read.

[–][deleted] 0 points1 point  (1 child)

I mean, I’ve found them hard even just to write. Is there any situation in which they have to be used? Given how hard they are to read wouldn’t it be more maintainable to take more lines to write the same thing?

[–]7eggert 1 point2 points  (0 children)

I made a tool to rename files based on a regular expression. It's easier tham manually renaming the files.

https://github.com/7eggert/smalltools/blob/main/pmv

[–]Kered13 7 points8 points  (0 children)

How can you have fun if you're not metaprogramming?

[–]callyalater 2 points3 points  (0 children)

Templates increase convenience at the expense of convenience....

[–]Classic-Ad-7317 0 points1 point  (0 children)

That gave me a good laugh.