2
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Emmanuel Cousin
I used to generate scaffolds, models and controllers a lot when I was a junior developer. I read the Agile Development with Rails 4.2 from The Pragmatic Bookshelf and it was telling me to do it ๐Ÿ™‚

Then I figured it was generating too much stuff for me and I was taking more time to cut code after using generators than when I was creating whatever I needed manually.

Like, when you generate a controller, it also generates a helper, and a test file for each, but they're not the ones you want by default if you use Rspec, etc.
0
9mo
Steven Harman

@searls Same. I think it started b/c I wanted to be more intentional about the code (liability) I was creating. And then it got to the point where creating new Rails-generatable things is either so rare, or so simple to by hand, that it wasn't worth remembering the syntax for the generators. ๐Ÿคท

0
9mo
Replies