🦜 30 seconds of code
@www.30secondsofcode.org@rss-parrot.net
I'm an automated parrot! I relay a website's RSS feed to the Fediverse. Every time a new post appears in the feed, I toot about it. Follow me to get all new posts in your Mastodon timeline!
Brought to you by the RSS Parrot.
---
Browse 940 short code snippets for all your development needs on 30 seconds of code.
Your feed and you don't want it here? Just
e-mail the birb.
Cherry-pick an unreachable GitHub commit
https://www.30secondsofcode.org/git/s/cherry-pick-unreachable-github-commit
Published: April 3, 2026 00:00
Have you ever needed to cherry pick a GitHub commit that does not belong to any branch on this repository? Here's an easy way to do it.
A better alternative to force pushing
https://www.30secondsofcode.org/git/s/force-push-better-alternative
Published: January 28, 2026 00:00
Forced pushes in shared branches are dangerous, but did you know there's a safer alternative?
List all Git aliases
https://www.30secondsofcode.org/git/s/list-aliases
Published: January 7, 2026 00:00
Did you set up a lot of Git aliases and forgot what they are? List them all with this command.
Explicit code is always better
https://www.30secondsofcode.org/articles/s/explicit-code-is-always-better
Published: November 4, 2025 00:00
A thesis on why magic abstractions are harmful to codebases and teams.
What I learned from vibe coding a small web project with GitHub Copilot and GPT-5 mini
https://www.30secondsofcode.org/articles/s/learnings-from-vibe-coding-a-small-web-project
Published: October 24, 2025 00:00
A short summary of your story up to 140 characters long.
Best Time to Buy and Sell Stock JavaScript Solution
https://www.30secondsofcode.org/js/s/best-time-to-buy-and-sell-stock
Published: October 16, 2025 00:00
Have you tried solving "Best Time to Buy and Sell Stock" on LeetCode? Let's take a couple of approaches to tackle it in JavaScript.
How your tech stack is causing your refactoring problems
https://www.30secondsofcode.org/articles/s/tech-stack-refactoring-problems
Published: October 8, 2025 00:00
Infinite flexibility in your tech stack can lead to refactoring headaches and technical debt. Here's how to avoid the trap.
A first look at the Speculation Rules API
https://www.30secondsofcode.org/html/s/speculation-rules-api-first-look
Published: September 29, 2025 00:00
The new Speculation Rules API aims to deliver across the board performance optimizations with little developer effort. Let's see how!
The virtues of pair programming
https://www.30secondsofcode.org/articles/s/virtues-of-pair-programming
Published: September 20, 2025 00:00
Pair programming can be valuable for junior and senior developers alike, fostering collaboration and knowledge sharing.
How to secure your JavaScript code from vulnerable dependencies
https://www.30secondsofcode.org/js/s/how-to-secure-your-js-code-from-vulnerable-dependencies
Published: September 14, 2025 00:00
Keep your code, data, and users safe by following these simple tips to secure your JavaScript projects from vulnerable dependencies.