javascript

Just Your Type: Swiping Right On JavaScript and TypeScript

Just Your Type: Swiping Right On JavaScript and TypeScript

Table of contents: Introduction Sketch Type Checking Functions Teamwork Lessons Learned Next Steps Resources Introduction Web development can sometimes feel like the wild west of the coding world. There are so many frameworks and libraries to work with, and oftentimes it can feel overwhelming. If you feel this way, I’m here to tell you that you are not alone; when I started my apprenticeship, I was at a loss for what technology I wanted to add to my tech stack. I knew I enjoyed front-end development but had no idea what path to take to sharpen my skills in the…
Read More
Medusa B2C Starter – Solace

Medusa B2C Starter – Solace

Built specifically for B2C and DTC brands, Solace provides everything needed to launch an online store: Full product management system on Medusa 2.0 Customer account management Order processing and tracking Search and filtering capabilities Strapi CMS integration Stripe payments Resend email service Dark and light mode support Customizable UI components Mobile-optimized layouts Consistent styling patterns Figma components: Home Page, Menu & Search, Listing & Search Results, Collection Page, Product Page, Shopping Cart, Checkout, Content Pages, Profile, Blog, Log in & Create Account See more about Solace → https://rigbyjs.com/starters/medusa-b2c-starterComplete Figma design system → https://www.figma.com/community/file/1443909830271200781/solace-medusa-b2c-storefront-starter Source link lol
Read More
Custom “Read More” to Clipped Lines of Text with JavaScript – And Full Custom Code for You

Custom “Read More” to Clipped Lines of Text with JavaScript – And Full Custom Code for You

Hi everybody! I wanted to share a neat little JavaScript snippet I worked on during my first YouTube live stream. The goal was to clip a block of text to a specific number of lines and add a "Read More" link (or anything else, as the current project requires) at the end if the text exceeds that limit—in the same block, not as a separate button. The History The project, which I can’t name just yet, used a previous version of this function. How did it work? It split the text into separate characters. Placed each and every single one…
Read More
First glance at C# from JS perspective

First glance at C# from JS perspective

My journey started with… When I set out to create a project, my goal was to build a game that could potentially feature 3D elements, be interactive, and particularly played on mobile platforms. I also wanted to integrate AI into the game to add depth and complexity. Naturally, this led me to explore C#—a language commonly used in the Unity game engine. While I won’t dive into the specifics of Unity itself in this post, I do want to focus on why I chose C# and how it compares to JavaScript from my perspective as someone coming from a JavaScript…
Read More
Creating a Scroll Grid

Creating a Scroll Grid

The other day I noticed the similarities between Tailscale and MUBI — not the companies, of course, but their logos! It also reminded me of a position control I once created. Subconsciously, this must have triggered something, because I woke up today wanting to code a “Scroll Grid.” So, what is a scroll grid? It’s a scrollable grid in multiple directions, aided with a “scroll spy,” which looks a bit like MUBI’s and Tailscale’s logos: Enough talking. Let’s code! Progressive Enhancement Progressive enhancement is a design philosophy that ensures basic functionality works for everyone while adding advanced features for those…
Read More
Exploratory Testing: A Dynamic Approach to Software Quality

Exploratory Testing: A Dynamic Approach to Software Quality

In the fast-paced world of software development, ensuring quality requires approaches that adapt to changing requirements and uncover unexpected issues. Exploratory testing is one such method, emphasizing discovery, learning, and adaptability. This article delves into exploratory testing, its importance, and best practices to maximize its benefits. What Is Exploratory Testing? Exploratory testing is a hands-on software testing method where testers design and execute tests simultaneously. Instead of relying on predefined scripts, testers dynamically interact with the application to uncover issues, leveraging their skills and intuition. This approach prioritizes understanding the software while actively seeking out defects. Key Characteristics of Exploratory…
Read More
Mejores Prácticas en JavaScript Moderno – Parte 1

Mejores Prácticas en JavaScript Moderno – Parte 1

JavaScript es, sin duda, el lenguaje de programación más utilizado en el mundo y tiene una enorme influencia en una de las tecnologías más importantes de nuestra vida diaria: internet. Con este poder viene una gran responsabilidad, y el ecosistema de JavaScript ha estado evolucionando rápidamente, haciendo difícil mantenerse al día con las mejores prácticas. En este artículo, exploraremos algunas de las principales mejores prácticas en JavaScript moderno para escribir un código más limpio, mantenible y eficiente. 1. Las reglas del proyecto son lo más importante Cada proyecto puede tener reglas específicas para mantener la coherencia del código. Estas reglas…
Read More
You’re Doing Error-Handling Wrong!

You’re Doing Error-Handling Wrong!

You’re Doing Error-Handling Wrong: A Case for Predictable and Standardized Responses Introduction: An Opinionated Stance Error handling in JavaScript is a topic that evokes strong opinions, and I’m here to share mine: the traditional try-catch approach is clunky, inconvenient, and outdated. At Garmingo, where we built Garmingo Status — a SaaS solution for uptime and infrastructure monitoring—we’ve shifted away from try-catch blocks. Instead, we embraced a TypeScript-based approach that provides predictable, standardized responses for asynchronous operations. This article shares why we believe this paradigm is a game-changer for developer productivity and how it helped simplify our codebase. While it’s an…
Read More
LeetCode Meditations: Longest Increasing Subsequence

LeetCode Meditations: Longest Increasing Subsequence

The description for this problem simply states: Given an integer array nums, return the length of the longest strictly increasing subsequence. For example: Input: nums = [10, 9, 2, 5, 3, 7, 101, 18] Output: 4 Explanation: The longest increasing subsequence is [2, 3, 7, 101], therefore the length is 4. Enter fullscreen mode Exit fullscreen mode Or: Input: nums = [0, 1, 0, 3, 2, 3] Output: 4 Enter fullscreen mode Exit fullscreen mode Or: Input: nums = [7, 7, 7, 7, 7, 7, 7] Output: 1 Enter fullscreen mode Exit fullscreen mode Similar to the previous problem in…
Read More
A Tale of WeakMap and WeakSet in JavaScript: The Guardians of Forgotten Secrets

A Tale of WeakMap and WeakSet in JavaScript: The Guardians of Forgotten Secrets

Once upon a time in the mystical land of JavaScript, two special data structures lived quietly in the shadows: WeakMap and WeakSet. They weren’t as flashy as their cousins, Map and Set, but they had a secret power that made them irreplaceable in the magical realm of memory management. The Story Begins: The Problem of Forgotten Secrets There was a wise old wizard named Dev, who often worked on large magical projects. He had a common problem: whenever he stored objects in a Map or Set, those objects stayed forever, like guests who wouldn’t leave a party. Even if they…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.