1,344 karma · joined March 12, 2009
Sprinkling calls to order.save! or order.update(foo: bar) in random places is a recipe for disaster.
https://engineering.gusto.com describes some of their experiences with it.
Save a file, see the result instantly.
In a browser, terminal, etc. Using live reload, auto test, Rails class reloading, and so on.
Thinking I’m dealing with an Object A when I have object B.
Not realizing that nil is a valid thing to be returned from code that at first glance shouldn’t return nil.
Plus, accidentally writing super slow n+1 queries. And accidentally loading too much data.
Who is the email being sent to?
What is the content of the email?
What data does the email content and recipient depend on?
What are you tracking on the email?
How is the email visually formatted?
All those things might be in different apps as the logic gets more complicated.
If HTTP, that’s done via setting some information in the request headers, be it a cookie, or basic auth, or token auth, or similar.
CORS is done by the browser - to not allow certain requests to be made (In case you are accidentally executing malicious javascript code). The server tells the browser via the CORS headers which requests are ok to make.