Window functions in PostgreSQL - Part 1

Hi Readers, In this post, we’ll look at how to use PostgreSQL’s window functions instead of GROUP BY to handle calculations directly in your SQL queries. Window functions give you more control and can make your code simpler by reducing the need to do extra processing in your…

Understanding the Power and Problems of Freezing Objects in Rails

What is frozen attributes Frozen is an object or attribute immutable, this means that once an object is frozen, you cannot modify it or its state. When Rails needs to freeze an object, it typically does so by calling freeze on the object or its attributes at appropriate times in…