TLDR Web Dev

TLDR WEB DEV 2024-06-03

6 sections20 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01GENERAL

Sponsored

WANT TO REACH TLDR'S AUDIENCE?

Fortune 50 companies like AWS and Google Cloud and fast growing startups like Vercel and Secureframe work with TLDR to reach our audience of over 4 million tech-savvy decision makers with highly customized campaigns (like this one!).

advertise.tldr.techSponsor

02ARTICLES & TUTORIALS

WANT TO UNLOCK PERFORMANCE AND CLARITY? USE STRONG TYPES!

Strong types in programming languages like C++ and Rust, which enforce specific data types and rules for variables, lead to fewer bugs, more expressive APIs, and potentially better performance. They prevent invalid input, improve code clarity, and reduce the need for repetitive error checking (like in JavaScript with undefined).

ekxide.io5 min read

GEOGRAPHICALLY DISTRIBUTED POSTGRES FOR MULTI-TENANT APPLICATIONS

This article describes a pattern for geographically distributing PostgreSQL databases for multi-tenant applications using only standard PostgreSQL functionality. The pattern involves separating per-tenant data from control plane data, placing tenant data in the nearest region, creating a global view using Foreign Data Wrappers, and partitioning, while keeping authentication and control plane data centralized. This approach lowers latencies, complies with data residency laws, and allows edge computing while maintaining most PostgreSQL features and ACID guarantees within tenants.

xata.io11 min read

03OPINIONS & ADVICE

SOME THOUGHTS AS I SIT HERE IN ANOTHER STANDUP

Agile and Scrum are too rigid and bureaucratic as implemented in the industry right now. Daily standup is a prime example of a pointless and unproductive ceremony that wastes developers' time and fails to actually foster progress.

lloydatkinson.net12 min read

SPEND 2 HOURS DISCUSSING, MAKE THE WRONG DECISION ANYWAY

Meetings are timesuck for devs. To be useful and effective, meetings should have an authoritative document to guide discussions. This makes sure that everyone is on the same page about the project's goals and complexities.

shiftmag.dev10 min read

MY 3-STEP PROCESS FOR WRITING CLEAN CODE

A three-step process for writing clean code: first, prioritize making the code work, then add testing for correctness, and finally, refactor and clean up the code while relying on the tests.

thesweekly.com4 min read

04LAUNCHES & TOOLS

TWINNY

Twinny is a free private AI extension for VS Code. It comes with fill-in-the-middle code completion, AI chat, customizable prompt templates, and more. Twinny supports both API endpoints and local LLMs.

github.comGitHub repository

MESH SPREADSHEET

Mesh is a data and code editor that feels like a spreadsheet.

github.comGitHub repository

SANDBOX

Sandbox is an open-source cloud-based code editing environment with custom AI code autocompletion and real-time collaboration.

github.comGitHub repository

05MISCELLANEOUS

WHAT DO I THINK ABOUT LUA AFTER SHIPPING A PROJECT WITH 60,000 LINES OF CODE?

Ivan Trusov, the lead programmer for a project, shares his experience using Lua for game development within the Defold engine. Trusov encountered some surprises with Lua's syntax and quirks, particularly with table handling. Despite these challenges, he found Lua's simplicity and speed very useful. Trusov also discusses the limitations of Lua's lack of strict typing and modules.

blog.luden.io15 min read

HTMX: SIMPLICITY IN AN AGE OF COMPLICATED SOLUTIONS

htmx offers a simpler alternative to frameworks in frontend development by enhancing HTML with attributes that enable AJAX-like functionality, utilizing the hypermedia concept to create RESTful applications without excessive JavaScript.

erikheemskerk.nl17 min read

LESSONS LEARNED FROM 6 MONTHS OF OPERATING A TEENSY-TINY NEWS ARCHIVE

A developer shares lessons learned from running a simple static news archive website for learning Finnish. He enjoys using cronjobs and Git together as they complement each other nicely. He also thinks simplicity and working locally are severely underrated.

hiandrewquinn.github.io3 min read