Rails 8 adds Brakeman by default to new applicationsAll new applications using Rails 8 will have Brakeman gem by default for static analysis for security vulnerabilities.
Rails 7.1 Allows ActiveRecord::Relation#explain To Accept OptionsAdding analyze and verbose as ActiveRecord::Relation#explain options give us deeper insight into query performance.
Next.js vs. Remix - A Developer's DilemmaBoth Next.js and Remix are highly sought-after frameworks for constructing contemporary web applications using React, yet they diverge in their methodologies and principles. This article aims to assist developers in selecting the optimal framework by comparing various aspects such as routing, data flow, and data mutation strategies.
Rails 7.1 Introduces ActiveRecord regroup MethodWith regroup and regroup! methods we can override the group_values
Memo vs. useMemo: When to use each for better React performance?Ever wondered when to use React.memo and useMemo? This in-depth guide clarifies their differences and shows how to leverage them for optimal performance.
Rails 7.1 allows resetting singular associationsQuery database again to retrieve the associated record by resetting the cache on singular associations.
What is new in Ruby 3.3Ruby 3.3 boasts performance boosts (faster YJIT, M:N threads), a pure-Ruby JIT compiler (RJIT), a new parser (Prism), developer-friendly features in IRB, and multiple bug fixes.
Rails introduces ErrorReporter#unexpected for reporting precondition violationsThe new method will report in production but raise in other environments, making it easier to debug.
Rails 7.1 Introduces Option To Disable All Methods That ActiveRecord.enum GeneratesDisable auto generated methods of ActiveRecord.enum with instance_methods by passing false to it.
Upsert no longer ignores on_duplicate if unique_by is specifiedUpsert would previously not execute the on_duplicate clause if the unique_by constraint found a match. This has been fixed.