Also Java's Spring Data:
https://docs.spring.io/spring-data/commons/docs/current/refe...
Wasn't it an ActiveRecord thing to begin with? Spring got a lot of its more recent awful features by trying to copy Rails.
https://docs.spring.io/spring-data/commons/docs/current/refe...
Wasn't it an ActiveRecord thing to begin with? Spring got a lot of its more recent awful features by trying to copy Rails.
It always seemed ridiculous to put the lookup key and lookup value in two different places.
Nice to see Rails reconsider these things I once thought it would never surrender.
For example, they could've used maps:
find_by name: "foo"It's also just a limited DSL that has none of the capabilities of the host language, and can't be used to express e.g. complex queries.
But in Ruby it's based on method_missing not a proxy. I believe ruby got it's method_missing idea from Smalltalk. But there might be other precursors.