🦜 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.
How can I parse Reverse Polish Notation in JavaScript?
https://www.30secondsofcode.org/js/s/parse-reverse-polish-notation
Published: February 15, 2025 00:00
Parsing Reverse Polish Notation, also known as postfix notation, is a simple algorithm that can be implemented in JavaScript using a stack.
How can I calculate the diff between two strings in JavaScript?
https://www.30secondsofcode.org/js/s/myers-diff-algorithm
Published: February 12, 2025 00:00
Delve deep into the Myers diff algorithm and learn how to calculate the difference between two strings in JavaScript, the way Git does.
Find matching bracket pairs in a string with JavaScript
https://www.30secondsofcode.org/js/s/find-matching-bracket-pairs
Published: February 7, 2025 00:00
A common problem when building parsers is finding matching bracket pairs in a string. Here's how you can solve it with JavaScript.
How can I find the longest common subsequence of two strings in JavaScript?
https://www.30secondsofcode.org/js/s/longest-common-subsequence
Published: February 3, 2025 00:00
The longest common subsequence is the longest subsequence common to all given sequences and can be easily found using dynamic programming.
Formatting day and hour ranges with JavaScript
https://www.30secondsofcode.org/js/s/formatting-day-hour-ranges
Published: January 29, 2025 00:00
I recently came across a fairly interesting algorithmic problem when formatting day and hour ranges. Here's my take on the solution.
Modeling complex JavaScript object advanced relationships
https://www.30secondsofcode.org/js/s/complex-object-advanced-relationships
Published: January 23, 2025 00:00
In this installment of the ActiveRecord-like JavaScript implementation, we will revisit modeling relationships between objects.
Modeling complex JavaScript object autoloading and console
https://www.30secondsofcode.org/js/s/complex-object-autoloading-console
Published: January 16, 2025 00:00
In this installment, we'll create a custom object inspect utility to help us debug our complex objects in the console.
Modeling complex JavaScript object field validation
https://www.30secondsofcode.org/js/s/complex-object-field-validation
Published: January 9, 2025 00:00
Returning to the models and records part of the implementation, this time around we'll explore how to add constraints to individual fields.
Modeling complex JavaScript object factories
https://www.30secondsofcode.org/js/s/complex-object-factories
Published: January 2, 2025 00:00
Expanding even further upon our ActiveRecord-inspired project, we'll figure out how to create factories that produce complex objects.
Modeling complex JavaScript object serialization
https://www.30secondsofcode.org/js/s/complex-object-serialization
Published: December 26, 2024 00:00
In the fourth part of the series, we will look at how to serialize complex JavaScript objects.
Modeling complex JavaScript object scopes
https://www.30secondsofcode.org/js/s/complex-object-scopes
Published: December 19, 2024 00:00
In the third installment of implementing an ActiveRecord-like pattern in JavaScript, we'll model and optimize object scoping.
Modeling complex JavaScript object attributes & relationships
https://www.30secondsofcode.org/js/s/complex-object-attributes-relationships
Published: December 12, 2024 00:00
Continuing on the journey to implement an ActiveRecord-like pattern in JavaScript with object attributes and relationships.