Running a separate query to count how many records are associated with another record is inefficient. Using a counter cache can save the day!
Branching early helps structure multi-step forms.
Learn how to improve the interface of your existing Active Record Models with this underutilized API.
Here are the risks and common scenarios we see when a team doesn’t have a plan for ongoing maintenance for their Rails application. We also share how we support clients in these situations with our new, flexible, Rails Maintenance offering.
Links to some of the best Elm data modeling resources around the web.
What is the correct behavior of hash
, ==
, eql?
and equal?
for value objects?
ActiveRecord provides a comprehensive interface for querying the database, but at what cost?
Techniques and reasons to optimize your code for people, not metrics.
Test-driven development, object-oriented design, and functional programming converge on some similar ideas.
A strict type system doesn’t mean inflexible. We can bend it to meet our needs with the utilities that ship with TypeScript.