TLDR Web Dev

TLDR WEB DEV 2024-07-10

6 sections17 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01GENERAL

Sponsored

NO THIRD PARTY QUERIES REQUIRED

If you've not heard of Convex, it's the “Laravel of TypeScript” — an open source, thoroughly-enjoyable development framework that combines the type safety and DX upgrades of tRPC, with a Firebase-style experience.

convex.devSponsor

02ARTICLES & TUTORIALS

EXPLORING THE CHALLENGES IN CREATING AN ACCESSIBLE SORTABLE LIST (DRAG-AND-DROP)

Creating an accessible drag-and-drop list is challenging due to conflicts with screen reader navigation and the need for clear movement announcements. Overriding default key bindings and using separate elements for keyboard and mouse interactions can help resolve these conflicts. Adding a debounce to announcements and providing a move dialog for voice control users also improves the overall accessibility and user experience.

github.blog8 min read

DEACTIVATING AN API, ONE STEP AT A TIME

To safely deactivate an API, first limit new consumers, then discover existing ones and communicate the upcoming change. Next, deprecate the API with a clear deadline and communicate a sunset date for final usage. Finally, block all requests and deactivate the API while making sure critical bug fixes are addressed during the process.

apichangelog.substack.com7 min read

COMPILE-TIME JSON DESERIALIZATION IN C++

C++ doesn't directly support pattern matching like some languages, but template specialization can achieve similar results. This enables type-safe JSON deserialization at compile time. By employing constexpr functions and a lazy parsing approach, the deserialization process can occur at compile time, allowing for compile-time assertions on JSON data.

links.tldrnewsletter.com11 min read

03OPINIONS & ADVICE

DON'T USE BOOLEANS

Enums offer several advantages over booleans, such as improved readability, explicit typing for better error handling, and easier behavior-driven development with extendability for future features. The overhead of enums is minor compared to the benefits.

luu.io4 min read

COMMON ANTI-PATTERNS IN GO WEB APPLICATIONS

Building user-facing applications can be boring compared to low-level programming, but the challenge of avoiding unmaintainable code makes it rewarding. Loose coupling is key to maintainable applications, and over-reliance on DRY can lead to strong coupling and complexity. Use separate models for different responsibilities and clear code generation to improve maintainability and clarity.

threedots.tech18 min read

04LAUNCHES & TOOLS

Sponsored

📕 FREE O'REILLY EBOOK: GENERATIVE AI ON AWS

Want to understand GenAI? Ditch the clickbaity Twitter and LinkedIn posts and read this O'Reilly ebook [10] (offered free by DoiT). This is the technical GenAI resource [10] you've been looking for, covering everything from use case definition, model training, prompt engineering, RAG, to deployment on AWS. Get the free ebook from DoiT [10] 📥

resources.doit.comSponsor

PARALLEL DOM

Parallel DOM makes your web apps faster by parallelizing away heavy DOM operations.

pdom.devTool

CRAWLEE FOR PYTHON

Crawlee is a web scraping and browser automation library. It supports both BeautifulSoup and Playwright crawling for more reliable web crawlers. It also supports type hints in Python, headless browsers, automatic scaling, and proxy management.

crawlee.devTool

PGVECTOR-NODE

The `pgvector-node` library provides Node.js and TypeScript support for integrating vector operations with PostgreSQL across multiple database libraries. It allows the creation of tables with vector fields, insertion of vectors, and retrieval of nearest neighbors using various distance metrics. The library also supports creating approximate indexes for efficient vector similarity searches.

github.comGitHub repository

05MISCELLANEOUS

WHAT IS OLD IS NEW AGAIN

Rising interest rates on the tech industry have affected everything - the job markets, VC funding, IPOs, and layoffs. Macroeconomic changes are continuing to shape the landscape for the tech and software industries. However, these cycles happen every so often, and eventually, the job market will recover.

open.substack.com15 min read

INSIDE THE US GOVERNMENT'S BRILLIANTLY BORING WEBSITES

The US government created a unified web design system (USWDS) and a custom typeface (Public Sans) to improve the accessibility and functionality of federal websites. The USWDS, developed by the US Digital Service, provides guidelines and components for consistent design. This initiative was launched in response to the fragmented and inconsistent design of earlier government websites, which often posed a problem for public access to essential services.

technologyreview.com3 min read