Skip to content

Comment on Get Rid of Source Code Templates

Comments

I use templates.

My Perl template is:

   use MooseX::Declare;

   class $classname {
   }
My Haskell template is:
   module $module where
If you need anything more complicated than that, it's time to write code to fix the problem, rather than have your editor type the same text again and again and again and again.

Comment not related to the article.

The "templates" the article is talking about are large boilerplate comment blocks at the top of source code files, with license, attribution, changelog, etc. information. Nothing about executable code.

Yup, and my templates include that section.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.