TLDR Web Dev

TLDR WEB DEV 2024-05-29

5 sections15 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

INTRODUCING THE CSS ANCHOR POSITIONING API

The new CSS Anchor Positioning API allows native positioning of elements relative to anchors you define. You can set up anchors implicitly or explicitly and then position other elements relative to them using the anchor() function. The API also allows for centering elements with anchor-center, anchoring to multiple elements, positioning with inset-area, and sizing elements with anchor-size().

developer.chrome.com11 min read

WHAT WE LEARNED FROM A YEAR OF BUILDING WITH LLMS (PART I)

This is a comprehensive collection of ideas that helps dev work with LLMs better in production. For example, RAG (Retrieval-Augmented Generation) is great at improving LLM performance and is preferred over fine-tuning for adding new knowledge to a model's context. There are tips on prompting models better, such as using JSON or XML to structure inputs and outputs. There are also guidelines on evaluating and monitoring LLM I/O properly in areas where LLMs are in a production-level pipeline.

oreilly.com37 min read

HOW LARGE IS A 160 BIT NUMBER?

Dolt, a version controlled database, uses cryptographic checksums to address data blocks. While this might lead to potential collisions where different data blocks have the same checksum, the chance of collision is extremely low due to the combo of SHA-512, a strong hash function, and a 20-byte key, which provides a collision resistance of 2^80. This means that even with billions of objects stored, the probability of a collision is small and negligible.

dolthub.com9 min read

02OPINIONS & ADVICE

YOUR API SHOULDN'T REDIRECT HTTP TO HTTPS

Redirecting HTTP API calls to HTTPS can mask errors and expose sensitive data, so it's better to disable HTTP interfaces or return errors for unencrypted requests. Many well-known APIs still redirect HTTP to HTTPS, but some have adopted the fail-fast approach, returning errors for unencrypted calls. API credentials sent over unencrypted connections should be considered compromised and automatically revoked.

jviide.iki.fi10 min read

THE DISAPPOINTMENT FRONTIER

The disappointment frontier is the gap between a team's expectations and reality. This gap can grow when managers shield their teams from reality or overpromise on deliverables. Managing disappointment is a core leadership skill, so great managers acknowledge the disappointment frontier and actively work to shrink it.

theengineeringmanager.substack.com12 min read

03LAUNCHES & TOOLS

OPENKODA

OpenKoda is a development platform that makes it easier to build business apps and internal tools. It comes with pre-built functionalities and out-of-the-box features. OpenKoda supports common technologies like Java, Spring Boot, JavaScript, Postgres, and HTML.

github.comGitHub repository

RAGAPP

RAGapp is a way to use RAG in your own apps. Its configuration is similar to OpenAI's custom GPTs, but it's deployable in your own cloud infrastructure using Docker and whatever LLM you prefer.

github.comGitHub repository

NESTJS BOILERPLATE

This is a NestJS boilerplate that supports social sign-in, any database, file uploads, admin and user roles, Docker, CI, and more.

github.comGitHub repository

04MISCELLANEOUS

HIRING (AND MANAGING) CRACKED ENGINEERS

PostHog prioritizes hiring and retaining "cracked" engineers who are self-motivated and optimistic. The key to motivating and managing cracked engineers properly is to create an environment where they can collaborate with like-minded individuals, not have to deal with unnecessary bureaucracy, and can just focus on the work and the vision.

newsletter.posthog.com7 min read

LLAMA 3-V: MATCHING GPT4-V WITH A 100X SMALLER MODEL AND 500 DOLLARS

Llama3-V is an open-source multimodal model created by Stanford ML researchers that's able to keep up with GPT4-Vision. The researchers accomplished this by combining the language capabilities of Llama 3 with a vision encoder from SigLIP, using a projection block for alignment, and prepending image tokens to textual tokens.

links.tldrnewsletter.com7 min read