Cherry-pick an unreachable GitHub commit
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.
Feed
Latest entries from 30 seconds of code.
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.
Forced pushes in shared branches are dangerous, but did you know there's a safer alternative?
Did you set up a lot of Git aliases and forgot what they are? List them all with this command.
Increase your productivity and reduce your cognitive load by creating aliases for many common git operations.
A thesis on why magic abstractions are harmful to codebases and teams.
A short summary of your story up to 140 characters long.
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.
Infinite flexibility in your tech stack can lead to refactoring headaches and technical debt. Here's how to avoid the trap.
The new Speculation Rules API aims to deliver across the board performance optimizations with little developer effort. Let's see how!
Pair programming can be valuable for junior and senior developers alike, fostering collaboration and knowledge sharing.
Keep your code, data, and users safe by following these simple tips to secure your JavaScript projects from vulnerable dependencies.
Have you ever encountered an issue with incorrect line endings in your git repository? Let's fix it!
Writing great code is more than writing code that works, requiring discipline and a focus on testability, maintainability, and readability.
What's the connection between meditation and debugging? Let's find out.
Explore how to solve Sudoku puzzles in JavaScript using the wave function collapse algorithm, a constraint-propagation technique.
No code tools? No code at all? No code you write? Prepare for a triple entendre that cuts deep into the world of software development.
How staying on the frontend can limit your career growth and a hot take on how to escape it.
Learn how to deep clone objects in JavaScript using structuredClone, and how it compares to other cloning methods.
Using the degree of nodes, we can employ a very efficient algorithmic trick to find the minimum height tree in an undirected tree in JavaScript.
Using a two-pass DFS approach, we can efficiently find the diameter of an undirected tree in JavaScript.
Learn how to apply bipartite coloring to an undirected tree in JavaScript, ensuring that no two adjacent nodes share the same color.
Learn how to traverse an undirected tree using Depth-First Search (DFS) or Breadth-First Search (BFS) in JavaScript.
Learn how to build an undirected tree from an array of edges in JavaScript, with various approaches for storing node relationships.
Binary numbers are a fundamental part of computer science. Learn how to convert between binary and decimal numbers in JavaScript.
A historical run-through of how 30 seconds of code was deployed then and now.
Using indexes can speed up querying object collections significantly, but it seems like a black box for many. Let's dive in!
While a brute-force longest palindrome finder is simple, it is not efficient. Let's explore a more efficient solution.
Combining techniques presented in the past, we can solve a more complex problem with stellar performance.
Learn how to convert any number to an array of digits, as well as how to sum the digits and compute the digital root efficiently.
Design systems are often seen as the holy grail of design and development, but there are a few issues that can arise in the real world.
Sudoku is a logic-based combinatorial number-placement puzzle. This article discusses how to implement a Sudoku validator in JavaScript.
Markdown is the most popular markup language for writing documentation. Here is a cheatsheet with the most common syntax.
Learn why vocal errors are better than silent ones, how to handle them effectively, and improve debugging and collaboration in JavaScript.
After working with 2D arrays for a while, I decided to create a convenient wrapper for operations. Here's the gist of it.
Instead of reconfiguring ESLint and Prettier every time, I use this configuration to get started quickly.
Leverage modern HTML and CSS capabilities to create a tabbed content component without JavaScript.
Did you know you don't need JavaScript to create accordion-style content? Here's how to do it with the details element.
In the age of flexbox and grid, text alignment may seem simpler than ever, but there are a few things you should be aware of.
The inset shorthand property makes element positioning in CSS easier. Learn how to use it effectively in your projects.
New to CSS logical properties? This article provides a handy map of logical properties to their physical counterparts.
Have you ever stopped to wonder if modularization is right for your use case? What if I told you it might not be?
Quick reference for JavaScript operators.
Dive into Web Components with me and learn how I used them to create modular interactive components to progressively enhance my website.
Having built a search engine with TF-IDF and inverted indexes, we will now implement fuzzy matching to make searching error-tolerant.
Did you know JavaScript has a built-in way to format relative time? It's called Intl.RelativeTimeFormat and it's awesome!
Learn how to easily detect the user's operating system in the browser using JavaScript.
Building on top of the TF-IDF and inverted index implementation, we will implement partial search matching to make searching more robust.
Building on top of the Porter stemmer, we'll explore how to use TF-IDF and an inverted index to implement a search algorithm in JavaScript.
Learn how to implement the Porter stemming algorithm in JavaScript, a simple algorithm for stripping English words of common suffixes.
Let's demystify signals and reactivity, one of the most popular patterns in modern JavaScript, using event-driven programming!