TLDR Web Dev

TLDR WEB DEV 2024-09-11

5 sections17 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

BUILDING THE SAME APP USING VARIOUS WEB FRAMEWORKS

This developer built the same web application using different web frameworks: FastAPI, FastHTML, Next.js, SvelteKit, and FastAPI combined with Svelte. They compared the developer experience and unique features of each framework by implementing CRUD operations in a simple "Look at Your Data" app. FastAPI and FastHTML were more concise in code, while Next.js and SvelteKit required more code but offered a more structured approach and better UI elements.

eugeneyan.com9 min read

A GOOD DAY TO TRIE-HARD: SAVING COMPUTE 1% AT A TIME

Cloudflare's "pingora-origin" service processes a massive amount of HTTP requests - a small function called "clear_internal_headers" was identified as consuming a significant portion of its CPU time. To optimize this function, Cloudflare explored different data structures, eventually settling on a trie-based approach, which resulted in a new open-source Rust crate called "trie-hard". The trie-hard implementation reduced the CPU utilization of the function, achieving a 1.28% decrease in compute time, which matters a lot at scale.

blog.cloudflare.com12 min read

FEATURES OF YOUR FONT YOU HAD NO IDEA ABOUT

High-quality fonts have hidden features like variable axes for customizing appearance, stylistic alternates for different letter variations, swashes for decorative accents, and multiple numeral styles. Each of these features can be accessed using CSS properties, as shown with examples throughout this article.

sinja.io11 min read

02OPINIONS & ADVICE

GOOD SOFTWARE DEVELOPMENT HABITS

This developer writes about a few software development habits that have helped him write better software faster. They focus on writing small commits frequently, refactoring continuously, and deploying often. They also often write tests first to define API structures early.

zarar.dev5 min read

WHY I PREFER EXCEPTIONS TO ERROR VALUES

Exceptions are a superior error handling mechanism compared to returning error values. This is because exceptions offer a better user and developer experience by providing more graceful error handling and leading to faster execution. The common practice of using error values in languages like Rust and Go leads to excessive boilerplate and has a higher potential for hidden system errors.

cedardb.com15 min read

SQLITE IS NOT A TOY DATABASE

SQLite's serverless nature lets developers embed it directly within applications, with a user-friendly console to provide straightforward access. It also has data import and export, native JSON handling, and advanced SQL capabilities like Common Table Expressions and set operations.

antonz.org10 min read

03LAUNCHES & TOOLS

Sponsored

THE JOYS OF CONVERSATIONAL TICKETING: TURNING SLACK/TEAMS CONVERSATIONS INTO JIRA TICKETS

Conversational ticketing uses chatbots and virtual assistants to automate the way users create, update, and resolve IT service tickets. Conversational ticketing is a popular choice for dev teams [10] as it allows users to submit Jira tickets without leaving the tools they're already on (like Slack or MS Teams). Read more on the Appfire blog

appfire.comSponsor

appfire.com

DEBUGGING IN THE MULTIVERSE

Antithesis is a new debugging tool that allows software engineers to rewind time and examine their code in various states. It simulates a deterministic universe, allowing users to step back in time, replay events, and analyze the code's behavior leading up to a bug or crash. It also enables time-travel to the future, accelerating simulations for faster debugging of networked systems.

antithesis.com6 min read

VOMITORIUM

Vomitorium is a command-line tool that recursively scans directories, processes files, and compiles their contents into a single output file. Its single output file is useful for working with LLMs, as you can pass in the entire file as context for the LLM to process.

npmjs.comTool

GOOGLE ILLUMINATE

Google's AI tool, Illuminate, turns books and papers into audio discussions.

illuminate.google.comTool

04MISCELLANEOUS

HOW WE MADE JUPYTER NOTEBOOKS LOAD 10 TIMES FASTER

SingleStore's Jupyter Notebook integration faced significant load time issues. To address this, its engineering team implemented a series of optimizations, including decoupling the Jupyter server from the UI, mocking static requests, and pre-rendering the extension/UI. These efforts resulted in improved load times, reducing the P90 from around 30 seconds to 4 seconds, an 87% improvement.

singlestore.com17 min read

GOING OPEN-SOURCE AS A VC-BACKED COMPANY

Briefer is launching a free and open-source version of its software while also offering a premium cloud-hosted version with more features. It chose the AGPL license to make sure its software remains open-source, deter competitors from copying it, and protect its business model. It is doing this to build user trust and differentiate itself from competitors like Tableau and Power BI.

briefer.cloud14 min read