ywwg / ffagc

Firefly Art Grant Core Website
0 stars 1 forks source link

make it so I don't cry when I read the "where do I put my code" post #46

Closed ywwg closed 5 years ago

ywwg commented 7 years ago

http://codefol.io/posts/Where-Do-I-Put-My-Code

"the model is your first stop in Rails." "It’s easy to put lots of code in your controllers, but it’s almost always a mistake." "Having lots of logic in your views is a huge anti-pattern. Don’t do it." "If you want to write a helper module for non-view logic, the /lib directory is usually the best place to put it."

ffagc is essentially 100% antipatterns, thus: :sob: