Are there any good tools for generating boilerplate code?
If I'm a web framework author, I'd love to provide a *discoverable* tool for defining a new controller. This is especially important if files need specific naming conventions or to be in certain directories.
I've seen tools like yeoman and create-react-app, but they seem to focus on new projects. There's also no VS Code integration that I'm aware of.
miniblog.
Related Posts
Are there any good tools for generating boilerplate code?
If I'm a web framework author, I'd love to provide a *discoverable* tool for defining a new controller. This is especially important if files need specific naming conventions or to be in certain directories.
I'm fascinated to see Steve Losh demonstrating a 'gather' macro in Common Lisp, removing boilerplate for an accumulator: https://stevelosh.com/blog/2018/05/fun-with-macros-gathering/
Most use of yield in Python seems to be focused on gathering rather than lazy evaluation, but I never had a name for the concept!
What's crazier: Emacs using C to write C, or that I don't find it unreasonable? https://github.com/emacs-mirror/emacs/blob/master/lib-src/make-docfile.c#L736 (portably generating boilerplate)