Skip to main content

28 posts tagged with "dev"

View All Tags

Designing a consistent error handling pattern for APIs

· 7 min read

Errors and warnings are a minefield for developers, and very inconsistently implemented across APIsAPI A set of rules and protocols that allows different software applications to communicate with each other. APIs define the methods and data formats that applications can use to request and exchange information.. I've been thinking about what a consistent, developer-friendly approach to surfacing issues looks like — one that helps both developers and their end users.

This is focused on APIAPI A set of rules and protocols that allows different software applications to communicate with each other. APIs define the methods and data formats that applications can use to request and exchange information. responses and logs rather than native SDKsSDK A collection of software development tools, libraries, documentation, code samples, and guides that help developers create applications for a specific platform or framework..

Does AI change the best approach to separation of concerns?

· 5 min read

I used to be fairly extreme about separation of concerns in my React code. A smart component file for logic. A dumb component file for rendering. A styled-components file for styles. An index file to tie them together. Four files per component, minimum.

It made each individual file very readable. You could generally fit one on a screen. If you needed to understand the render logic, you opened one file. If you needed the business logic, you opened another. The mental overhead of jumping between co-located files was low.

Tailwind sucks

· 3 min read

I've been doing a lot of vibe coding, and my particular tools of choice include v0.dev (as a Vercelvercel Vercel is a cloud platform for frontend developers. It is used to deploy and host websites and web applications. fanboy). By default, v0 will use tailwind for styling. This means I've been using Tailwind for the first time, and... I hate it.

Get new posts in your inbox