Python List Comprehensions: From Loops to Elegant One-Liners
Learn how list comprehensions work, when they make your code clearer, and when a plain for-loop is still the better choice.
Read the tutorialFree, hands-on programming tutorials
Practical tutorials on Python, JavaScript, Git, Algorithms and more, with clear explanations, runnable examples and honest advice about when to use each technique.
Start here
Learn how list comprehensions work, when they make your code clearer, and when a plain for-loop is still the better choice.
Read the tutorialFresh
Most shell scripts work fine until a file name has a space in it or a command fails halfway through. Learn strict mode, quoting, safe temporary files and cleanup traps, then put it all together in a real backup script.
Why does a resolved promise always beat setTimeout(fn, 0)? Learn exactly how the event loop schedules tasks, microtasks and repaints, and how to keep long work from freezing the page.
When two CSS rules disagree, the browser follows a strict set of rules to pick a winner. Learn how the cascade decides, calculate specificity by hand, and stop reaching for !important.
GROUP BY squashes rows together; window functions calculate across rows and keep every one of them. Learn OVER, PARTITION BY, ROW_NUMBER, RANK, LAG and window frames with small, runnable examples.
Learn how B-tree indexes really work, read query plans with EXPLAIN, choose the right column order for composite indexes, and spot the mistakes that silently disable an index.
@property, bound methods, cached_property and __slots__ all run on one small protocol. Learn how descriptors work, the exact attribute lookup order, and how to write your own.
Explore
Pick a subject and work through it at your own pace. Every article is tagged by level, so you always know where to start.
Follow Cryo Learn in any feed reader. You don't need an account and you won't get spam or tracking, just new articles as they're published.