News for hackers. Stuff that matters.
Re:From Rails to Clojure, Then to Java, Then Back to Rails by brandonbloom on Wednesday March 21, 2018 @08:54PM (#16644358)
Years of Clojure has made me a dramatically better Rails programmer. The biggest change for me is that I now treat ActiveRecord models as gloried hashes with easy-access to a namespace of related functions (ie. methods) that operate on all manner of underspecified partial data, rather than traditional OOP-style objects with sophisticated invariants. I'm also very careful to strictly separate reads from writes, and to discard/reload all mutated objects immediately after transacting with them.

My new business is built on Rails for a very long list of reasons, not the least of which is that both Ruby is quite a nice language, and Rails is actually quite good for back-office/lo-fi/quick-and-dirty, server-side-rendered UX with relatively low web traffic.

Re:From Rails to Clojure, Then to Java, Then Back to Rails by cutler on Thursday March 22, 2018 @01:08AM (#16645930)
Have you tried Elixir/Phoenix?