TLDR Web Dev

TLDR WEB DEV 2024-01-29

5 sections14 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01ARTICLES & TUTORIALS

WEB COMPONENTS IN EARNEST

This article is an extremely detailed walkthrough on how to build an app (specifically a palette generator) using Web Components and JavaScript. The app in this case is simple but complete. It’s entirely built with custom elements, has almost no dependencies, and runs fast. The author deep dives into the components and code, writes his own testing library (300 lines), and discusses some positives of using web components (like avoiding await/async or any other artificially introduced async behavior).

naildrivin5.com49 min read

HOW WE STRESS TEST AND BENCHMARK COCKROACHDB FOR GLOBAL SCALE

CockroachDB is regularly stress-tested and benchmarked using various benchmarking methods. These tests include daily benchmarks using TPC-C and TPC-E benchmarks on different node configurations, weekly benchmarks with larger clusters, and per-release benchmarks before major software updates. Ad hoc tests, such as scalability testing with varying node counts and workload types, are conducted to understand performance at scale.

cockroachlabs.com8 min read

02OPINIONS & ADVICE

WHY TAILWIND ISN’T FOR ME

Tailwind CSS is widely popular in web development today, but there are some notable downsides to it. It leads to ugly-looking HTML. The use of @apply in Tailwind is incompatible with other CSS frameworks, leading to vendor lock-in. Tailwind also encourages the use of `div` and `span` tags, whereas the modern web supports a much larger range of expressive custom elements and attributes.

spicyweb.dev9 min read

RATINGS != PROMOTIONS

High ratings alone don’t necessarily lead to promotions. It’s important to focus on adopting the behaviors of the next career level as these behaviors are transferable, sustainable, and ultimately more financially rewarding.

developing.dev3 min read

THINK FOR YOURSELF IF YOU WANT AI TO TEACH YOU HOW TO CODE

While AI can help generate code and provide solutions, developers should be careful to not become too reliant on the technology. Instead, they should approach AI tools with the goal of understanding and reviewing the generated code rather than blindly copying it. This not only allows for a better learning experience while coding, but also allows for easier debugging later on.

theregister.com8 min read

03LAUNCHES & TOOLS

INTRODUCING ANDROID EMULATORS, IOS SIMULATORS, AND OTHER PRODUCT UPDATES FROM PROJECT IDX

Google’s Project IDX, a cloud-based workspace for full-stack multi-platform development, has added support for various languages and frameworks, including Astro, Go, Python + Flask, Preact, and Node.js. Developers can now preview their Flutter mobile apps in an iOS simulator or Android emulator. Project IDX now has simplified Docker container management and supports running command-line tools within the workspace and auto-detecting network ports.

developers.googleblog.com4 min read

TXTAI

Txtai is an all-in-one embeddings database for semantic search, language model orchestration, and various language model workflows. It incorporates vector search with SQL, object storage, topic modeling, graph analysis, and multimodal indexing. The project can be implemented using Python or YAML and offers API bindings for various programming languages.

github.comGitHub repository

04MISCELLANEOUS

WHAT'S BEHIND THE TECH INDUSTRY'S MASS LAYOFFS IN 2024?

In the first four weeks of 2024, nearly 100 tech companies, including Meta, Amazon, Microsoft, Google, TikTok, and Salesforce, have collectively laid off about 25,000 employees, despite their stock prices returning to pre-pandemic levels and being highly profitable. These layoffs seem to be aimed at satisfying investors and boosting stock prices. They are driven by copycat behavior and may not actually be necessary.

npr.org4 min read

NEW GITHUB COPILOT RESEARCH FINDS 'DOWNWARD PRESSURE ON CODE QUALITY'

GitHub Copilot usage has led to an increase in AI-assisted code, which in turn has created a downward pressure on code quality. Code written with AI is often harder to maintain and of lower quality as it’s often verbose or copy-pasted. However, GitHub Copilot has had a positive effect on developer productivity and satisfaction.

visualstudiomagazine.com8 min read