Exploring indexes and cardinality with JavaScript
Using indexes can speed up querying object collections significantly, but it seems like a black box for many. Let's dive in!
30 seconds of code contains a curated collection of code articles covering a wide range of development needs. The collection spans many topics, ranging from simple coding problems to theoretical concepts and development techniques.
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.