Sponsored
TLDR WEB DEV 2024-07-12
Parse notes
- Subscription/account footer truncated before parsefooter_truncated
01GENERAL
Fullstack or backend dev? You don't want to miss this discussion
with contributors, founders, and CEOs building the tools that they use everyday - from Laravel to Node.
Save your spot [4] and submit your questions in advance!
02ARTICLES & TUTORIALS
FROM WEB TO NATIVE WITH REACT
React Native is a framework that lets developers build native mobile apps using JavaScript and React. It has some key differences from React, such as the use of native UI primitives and the lack of global styling. This transition guide for React devs interested in building mobile apps provides a deep dive into the differences between React and React Native and discusses common mistakes new devs make, such as using array.map for large lists, using the default Button element, and placing secrets in app code.
REACT ARCHITECTURE DOMAIN LOGIC
Domain logic refers to code that operates on the core models of an application. Extracting domain logic from components and placing it in a dedicated domain layer improves code readability, testability, and reusability. It also reduces the need for complex testing setups and allows for focused unit tests.
ENGINEERING PRINCIPLES FOR BUILDING FINANCIAL SYSTEMS
Accounting systems should be accurate, auditable, and timely. Data should be immutable, durable, and recorded at the smallest grain and code should be idempotent. This article also goes through best practices for building financial systems, such as using integers for financial amounts, consistent rounding methods, delayed currency conversion, and integer representations of time.
03OPINIONS & ADVICE
HOW TO HELP UNDERPERFORMERS
Performance is largely systemic and is influenced by culture, systems, management, and individual traits. Underperformers need effective feedback and a structured approach like the accountability dial.
UBUNTU SECURITY UPDATES ARE A CONFUSING MESS
A patch for a vulnerability in Apache Tomcat 9 on Ubuntu 22.04 is only available to Ubuntu Pro subscribers. This is because Tomcat 9 is part of the universe repository, which is only supported on a "Best Effort" basis for regular users. Canonical has decided to withhold the patch from regular users despite having it available for Ubuntu Pro subscribers.
04LAUNCHES & TOOLS
Sponsored
HOW EASY IS IT TO UPDATE YOUR WEBSITE? SEE HOW YOU COMPARE
Websites are meant to be easy to update, but that vision often clashes with the dev-centric reality of many sites.
KORVUS
Korvus is a search SDK that unifies the entire RAG pipeline in a single database query. It's built on top of Postgres, with bindings for Python, JavaScript, Rust, and C.
CODEMIRROR
CodeMirror is a code editor component for the web. It can be used in websites to implement a text input field that supports many editing features and has a rich programming interface to allow further extension.
TINYBASE V5.0
TinyBase is a reactive data store for local-first apps. v5.0 introduces the new MergeableStore type for CRDT-based data merging and a Synchronizer framework for syncing data across different media. TinyBase now exclusively supports Expo SQLite v14 (SDK 51) and above.
05MISCELLANEOUS
ICONOGRAPHY OF THE X WINDOW SYSTEM: THE BOOT STIPPLE
The X Window System's boot stipple, a mesh pattern displayed during startup, served as an early indicator of successful configuration and helped users troubleshoot issues in the era of slow computers. Its disappearance in the mid-2010s was likely due to efforts to modernize and speed up Linux boot processes. While the stipple can be brought back through command-line flags, the process is fragmented across different display managers, reflecting the complex and sometimes unpolished nature of the X ecosystem.
QUALCOMM'S ORYON CORE: A LONG TIME IN THE MAKING
Qualcomm's Oryon core is a CPU designed for laptops that aims to compete with AMD and Intel. It features a unique clustered architecture with high reordering capacity and fast clock speeds. The CPU faces challenges in terms of software compatibility and pricing compared to its x86 counterparts.
BRINGING AI-POWERED ANSWERS AND SUMMARIES TO FILE PREVIEWS ON THE WEB
Dropbox integrates machine learning to provide advanced file understanding features such as summarization and Q&A, using LLMs for text processing and embedding generation. This allows users to efficiently retrieve summaries and answers from all kinds of file types.
06QUICK LINKS
LET'S REPRODUCE GPT-2 (1.6B)
Andrej Karpathy walks readers through recreating GPT-2 from scratch.
CSS ONE-LINERS TO IMPROVE (ALMOST) EVERY PROJECT
WEBVM
WebVM is a server-less virtual Linux environment running client-side.
EFFECTIVE CRASH TROUBLESHOOTING TIPS FOR REACT NATIVE DEVELOPERS
JS errors provide stack traces, Java exceptions require exception details like name, code, and domain, and iOS NSExceptions need specific information such as exception names and messages.