News

The World Follows Power Laws: Why Premature Optimization is Bad
Programmers vaguely realize that 'premature optimization is bad'. But what is premature optimization? I'll argue that any optimization that does not come from observed measurement, usually in production, is premature, and that this fact stems from...



Rack Middleware for handling Cross-Origin Resource Sharing (CORS), which makes cross-origin AJAX possible.
Rack::Cors provides support for Cross-Origin Resource Sharing (CORS) for Rack compatible web applications.The CORS spec allows web applications to make cross domain AJAX calls without using workarounds such as JSONP. See Cross-domain Ajax with Cro...

Ruby 2.7 adds shorthand syntax for arguments forwarding – Saeloun Blog
The idea of ... operator is to capture all and forward arguments irrespective of type. So we can forward single, keyword arguments or blocks.Its a shorthand syntax to forward everything. It acts similar to calling super without any arguments.Lets ...




Using UUID in Rails 6 with PostgreSQL and ActiveRecord
UUID is an alternative primary key type for SQL databases. It offers some non-obvious advantages compared to standard integer-based keys. Rails 6 release fresh out of beta introduces a new feature in ActiveRecord that makes working with UUID prima...