DEV Community

Refactorly

One tested coding tip. Every day.

Organization Settings Admin

Short, practical coding tips for JavaScript, Python, SQL, PHP, Git, DevOps and AI, where every snippet is actually run and every number is measured. Watch on YouTube: @refactorly

www.youtube.com/@refactorly Joined Joined on 
The Laravel N+1 Query Problem: Your Page Runs 101 Queries (and the One-Word Fix)

The Laravel N+1 Query Problem: Your Page Runs 101 Queries (and the One-Word Fix)

Comments
2 min read
Laravel chunk() Silently Skips Half Your Rows (+3 Eloquent Mistakes on Big Tables)

Laravel chunk() Silently Skips Half Your Rows (+3 Eloquent Mistakes on Big Tables)

Comments
3 min read
PHP Thinks \"1e1\" Equals \"10\": switch vs match (the Loose Comparison Trap)

PHP Thinks \"1e1\" Equals \"10\": switch vs match (the Loose Comparison Trap)

Comments
3 min read
SQL Window Functions in 5 Minutes: ROW_NUMBER, RANK, Running Totals, Top N

SQL Window Functions in 5 Minutes: ROW_NUMBER, RANK, Running Totals, Top N

Comments
3 min read
5 Reasons Your SQL Index Is Being Ignored (and How to Fix Them)

5 Reasons Your SQL Index Is Being Ignored (and How to Fix Them)

Comments
3 min read
4 SQL NULL Traps That Silently Break Your Queries (NOT IN Returns 0 Rows!)

4 SQL NULL Traps That Silently Break Your Queries (NOT IN Returns 0 Rows!)

Comments
3 min read
Stop Using OFFSET for Pagination: Keyset Pagination Is 10,000x Faster on Deep Pages

Stop Using OFFSET for Pagination: Keyset Pagination Is 10,000x Faster on Deep Pages

Comments
3 min read
Python 3.15 Is Out: 5 New Features You'll Actually Use (Tested)

Python 3.15 Is Out: 5 New Features You'll Actually Use (Tested)

Comments
3 min read
loading...