Found 1370 bookmarks
Newest
TypeScript Style Guide |
TypeScript Style Guide |
TypeScript Style Guide provides a concise set of conventions and best practices for creating consistent, maintainable code.
·mkosir.github.io·
TypeScript Style Guide |
Performance
Performance
TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - microsoft/TypeScript
·github.com·
Performance
Component Composition is great btw
Component Composition is great btw
Component composition is one of the best parts of React, and I think we should take more time to break our components into manageable parts before littering one component with conditional renderings.
·tkdodo.eu·
Component Composition is great btw
Modularizing React Applications with Established UI Patterns
Modularizing React Applications with Established UI Patterns
Learn how to apply established UI patterns for a more organized and maintainable codebase and discover the benefits of layering architecture in React development
·martinfowler.com·
Modularizing React Applications with Established UI Patterns
CUPID: the back story
CUPID: the back story
“If you had to offer some principles for modern software development, which would you choose?” At a recent Extreme Tuesday Club (XTC) virtual meet-up, we were discussing whether the SOLID principles are outdated. A while ago I gave a tongue-in-cheek talk on the topic, so ahead of the meet-up one of the organizers asked what principles I would replace SOLID with since I disagreed with them. I have been thinking about this for some time and I proposed five of my own, which form the acronym CUPID.
·dannorth.net·
CUPID: the back story
Stop writing CLI validation. Parse it right the first time.
Stop writing CLI validation. Parse it right the first time.
This post introduces Optique, a new library created to address the pervasive problem of repetitive and often messy validation code in CLI tools. The author was motivated by the observation that nearly every CLI tool reinvents the wheel with similar validation patterns for dependent options, mutually exclusive options, and environment-specific requirements. Optique leverages parser combinators and TypeScript's type inference to ensure that CLI arguments are parsed directly into valid configurations, eliminating the need for manual validation. By describing the desired CLI configuration with Optique, TypeScript automatically infers the types and constraints, catching potential bugs at compile time. The author shares their experience of deleting large chunks of validation code and simplifying refactoring tasks. Optique aims to provide a more robust and maintainable approach to CLI argument parsing, potentially saving developers from writing the same validation logic repeatedly.
·hackers.pub·
Stop writing CLI validation. Parse it right the first time.
File-system conventions: Parallel Routes
File-system conventions: Parallel Routes
Simultaneously render one or more pages in the same view that can be navigated independently. A pattern for highly dynamic applications.
·nextjs.org·
File-system conventions: Parallel Routes
When Does Framework Sophistication Becomes a Liability?
When Does Framework Sophistication Becomes a Liability?
How our quest for “best practices” turned a simple API change into a multi-day debugging marathon, and why I’m now convinced that strongly-typed simplicity beats framework complex…
·fastcode.io·
When Does Framework Sophistication Becomes a Liability?
Why do browsers throttle JavaScript timers?
Why do browsers throttle JavaScript timers?
Even if you’ve been doing JavaScript for a while, you might be surprised to learn that setTimeout(0) is not really setTimeout(0). Instead, it could run 4 milliseconds later: Nearly a decade a…
·nolanlawson.com·
Why do browsers throttle JavaScript timers?
To Infinity… But Not Beyond!
To Infinity… But Not Beyond!
More explorations of ways to abuse the CSS `infinity` keyword, this time with more than just lengths.
·meyerweb.com·
To Infinity… But Not Beyond!
Everything I know about good API design
Everything I know about good API design
Most of what modern software engineers do involves APIs: public interfaces for communicating with a program, like this one from Twilio. I’ve spent a lot of time…
·seangoedecke.com·
Everything I know about good API design
Know why you don't like OOP
Know why you don't like OOP
Programmers tend to fight about why Object-Oriented Programming (OOP) is good or bad. Among the anti-OOP crowd, I often see junior programmers hate on OOP and “rebroadcast” what they’ve heard experienced programmers say. But when challenged to explain why OOP is bad, they have a hard time explaining it. It’s usually because they haven’t really experienced those things first hand. I’d like to take a positive spin on this and say: Just write your code in a way that makes sense to you.
·zylinski.se·
Know why you don't like OOP
What are Traces and Spans in OpenTelemetry: A Practical Guide
What are Traces and Spans in OpenTelemetry: A Practical Guide
A comprehensive, practical guide to understanding traces and spans in OpenTelemetry—how they work, how they relate, and how to instrument real Node.js / TypeScript applications effectively for deep insight and faster debugging.
·oneuptime.com·
What are Traces and Spans in OpenTelemetry: A Practical Guide
Cognitive load is what matters
Cognitive load is what matters
There are so many buzzwords and best practices out there, but let's focus on something more fundamental. What matters is the amount of confusion developers feel when going through the code.
·minds.md·
Cognitive load is what matters
Functional Programming in Ruby — State
Functional Programming in Ruby — State
Functional Programming in Ruby — State Ruby is, by nature, an Object Oriented language. It also takes a lot of hints from Functional languages like Lisp. Contrary to popular opinion, Functional …
·medium.com·
Functional Programming in Ruby — State
The Case for Being Lazy
The Case for Being Lazy
Why doing the absolute minimum is a gift in software engineering. \n
·osada.blog·
The Case for Being Lazy
The Surgical Update: From JSON Blueprints to Flawless UI
The Surgical Update: From JSON Blueprints to Flawless UI
In a world where some frameworks declare the VDOM “pure overhead,” we’ve made a radical bet: we’ve doubled down on the VDOM and moved it entirely off the main thread. This isn’t a defense of the…
·itnext.io·
The Surgical Update: From JSON Blueprints to Flawless UI