Programming · Latest articles

29 new today · 2,700 articles · from 79 blogs

Tailwind CSS Blog·

Welcoming David Luhr to Tailwind Labs

AI summaryTailwind Labs began working with David Luhr last summer to develop a Figma version of Tailwind UI and to leverage his accessibility expertise in following best practices and delivering markup that works for everyone. They are now excited to announce that David has joined the team full-time.

Svelte Blog·

What’s new in Svelte: February 2021

AI summaryThis article recaps Svelte's February 2021 updates, highlighting new compiler features such as support for WAI-ARIA Graphics Module roles and warnings for React-style attributes, along with language-tools improvements like semantic highlighting, smarter variable renaming, and an 'Extract Component' context menu option in VS Code. Major ecosystem releases included svelte-loader 3.0.0 with Webpack 5 support, rollup-plugin-svelte 7.x, prettier-plugin-svelte 2 with rewritten HTML formatting, and updates to Sapper and svelte-preprocess. The post concludes with a community showcase of new apps, libraries, integrations, starters, and learning resources.

Josh W. Comeau··Josh W. Comeau

The styled-components Happy Path

styled-components is a wonderfully powerful styling library for React, and over the years I've learned a lot about how to use it effectively. This article shares my personal “best practices”. Keep reading.

Josh W. Comeau··Josh W. Comeau

Let's Bring Spacer GIFs Back!

The 90s web gave us many delightful things: web rings, guestbooks, “under construction” animations, and spacer GIFs. In this article, we'll see how I use a Spacer component to solve common layout problems, and why it's often a great tool fo

The Vue Point·

Reflections for 2020-2021

AI summaryThis blog post from the Vue.js team reflects on 2020, highlighting major accomplishments such as shipping Vue 3 core, new documentation, Vue Router 4, Vuex 4, and new tools like Vite and VitePress, along with nearly 50% growth in NPM downloads and devtools users. The team also celebrates the community's continued growth through remote conferences and events despite the challenges of the pandemic. Looking forward to 2021, the team's focus is on stabilizing the Vue 3 ecosystem, with plans for Vue 3.1, Vue 2-to-3 migration tools, Vue CLI 5, an IE 11 compatibility build, Vue 2.7, SSR support in Vite, and Vuex 5.

Svelte Blog·

What’s new in Svelte: January 2021

AI summaryThis January 2021 Svelte update announces the renaming of SvelteComponent to SvelteComponentTyped for backwards compatibility, progress on the upcoming Sapper 0.29.0 release with new TypeScript definitions and bug fixes, and continued private development of SvelteKit, which can be previewed via npm init svelte@next. The post also highlights a community showcase featuring new apps, sites, libraries, components, and learning resources built with Svelte, plus related project updates from Snowpack and Uppy.

Lea Verou··Lea Verou

Writable getters

AI summaryThe article explores a JavaScript pattern called 'writable getters,' where a property defaults to a computed value via a getter but can be overwritten like a normal data property once explicitly set. Since JavaScript properties cannot be both accessors and data properties, the author shows how a setter that deletes the accessor and replaces it with a data property enables this behavior, then abstracts the pattern into reusable helpers like writableGetter() and makeGetterWritable(), including support for overwriting the getter with another getter. It concludes by discussing related patterns that blur the data-accessor distinction, such as 'live' data properties and lazy evaluation.

Josh W. Comeau··Josh W. Comeau

Refreshing Server-Side Props

Next allows you to do server-side data-fetching, but what happens when that data needs to change on the client? This brief tutorial shows how to re-fetch the props without doing a full server reload. Keep reading.