281 karma · joined Feb 10, 2017 (9y ago) · 145 submissions
comment 4mo ago · link · parent
comment 5mo ago · link · parent
comment 9mo ago · link · parent
comment 10mo ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
opacity = (opacity < 0) ? 0 : opacity;
opacity = (opacity > 1) ? 1 : opacity;
if(opacity >= 0 && opacity <= 1) {
document.getElementsByTagName("BODY")[0].style.opacity = opacity;
}comment 3y ago · link · parent
Mail Catcher https://mailcatcher.me/
Lunatic SMTP https://github.com/anlar/lunaticsmtp
comment 3y ago · link · parent
comment 3y ago · link · parent
This same colleague had implemented a similar FSM (flying spaghetti monster as known by the team) in an FX (foreign exchange) platform at a previous company. Which after a job change I got the pleasure of experiencing, nobody in the team knew how it worked and everyone was petrified of making changes
comment 3y ago · link · parent
comment 3y ago · link · parent
Sometimes I wonder if this is a "feature not a bug" the company wins and saves money (in the short term)
It probably costs them via reduced employee happiness turnover etc etc indirectly but there is no KPI for that
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
* Managing schema migrations across every DB
* You cant query across the DB, want to know some cross tenant thing for ops? That's now a lot harder
* Connection pooling and resource usage can be harder to manage
Most systems I've worked on use a single DB with a `tenant_id` col on every relevant table, it's easy to have your query builder slap in the auth'd tenant I'd. This approach does come with issues like saving and restoring an individual tenants data
Like a lot of things in life, it's a trade off
comment 4y ago · link · parent
Without two phase commits I would
1) Write to the DB in the original POST request a record indicating that an email should be sent 2) Process that record outside of the original request and mark it as sent