Newslurp

<< Stories

Fixing JS Dates 📆, Postgres as a search engine 🔍, 3 big promo mistakes 🤦

TLDR Web Dev <dan@tldrnewsletter.com>

August 26, 11:09 am

TLDR WebDev
The Temporal API in JavaScript introduces the Temporal.ZonedDateTime object, which accurately represents dates and times with their time zones. 

TLDR

 TLDR Web Dev 2024-08-26

🧑‍💻

Articles & Tutorials

JS Dates Are About to Be Fixed (10 minute read)

The Temporal API in JavaScript offers a new approach to handling time with the Temporal.ZonedDateTime object, which accurately represents dates and times with their corresponding time zones. This addresses the limitations of JavaScript's Date object, which doesn't capture the nuances of human-readable dates and the impact of time zones and daylight savings time. The new API introduces a standardized format for representing zoned dates and times, allowing developers to work with different calendars and time zones easily.
Postgres as a search engine (15 minute read)

PostgreSQL can be used as a search engine. Combining full-text search, semantic search with pgvector and fuzzy matching with pg_trgm makes PostgreSQL a good-enough search engine for a majority of use cases. This article goes into more advanced techniques to personalized search experiences, adjust for document length, debug rankings, and more.
🧠

Opinions & Advice

CORS is Stupid (8 minute read)

CORS is a flawed attempt to address the security issue of implicit credentials being used in cross-origin requests. While it does prevent some forms of data theft, it fails to prevent malicious requests that can manipulate data, such as transferring money from a user's account. A more effective approach is to ignore implicit credentials altogether on cross-origin requests, allowing only explicitly authenticated requests with a secure authorization header.
The 3 Big Mistakes That Almost Cost Me My Promotion (And How You Can Avoid Them) (7 minute read)

Software engineers make some common mistakes when trying to get promoted. They sometimes fall for the “Promotion Donut” trap, where focusing solely on next-level responsibilities leads to neglecting current duties. While it's true “what got you here won't get you there,” you still have to do “what got you here” while also performing at the next level. Additionally, engineers need to make sure they have a supportive manager and fully understand their company's leveling system.
Big Tech vs Startups (for New Grads) (5 minute read)

For new graduates, working at a big tech company for the first 1-3 years provides a solid foundation for career growth and skill development, offering better average outcomes compared to starting at a startup. However, startups give a chance for more “outlier” outcomes compared to Big Tech.
🚀

Launches & Tools

ChartDB (GitHub Repo)

ChartDB is a powerful, web-based database diagramming editor. It can be used to visualize database schemas with a single "Smart Query,” customize diagrams, and export SQL scripts.
Fuite (GitHub Repo)

Fuite is a CLI tool that detects memory leaks in web applications by simulating user interactions, analyzing heap snapshots, and identifying leaked objects, event listeners, and DOM nodes.
transformers.rb (GitHub Repo)

transformers.rb is a Ruby gem that provides state-of-the-art transformer models for natural language processing tasks, such as sentence embeddings, question answering, and sentiment analysis.
🎁

Miscellaneous

Is Telegram really an encrypted messaging app? (13 minute read)

Telegram, while technically using encryption, doesn't offer end-to-end encryption by default. Users must manually activate "Secret Chats" for individual conversations, a feature that is difficult to find and use, which means that a vast majority of Telegram conversations are visible to Telegram servers. Furthermore, while end-to-end encryption is valuable for protecting message content, it doesn't address the broader issue of metadata collection.
Create Calendar Entries with Anthropic Claude 3.5 (4 minute read)

This developer used Anthropic Claude 3.5 to create calendar entries from a schedule image. He first asked Claude to identify the dates outlined in green on the image and then asked it to generate an iCalendar file (ICS) for those dates. Claude successfully created the ICS file, which the developer then imported into Google Calendar.

Quick Links

Database “sharding” came from Ultima Online? (5 minute read)

The term "sharding" in database technology likely originated from the fictional justification used in the MMORPG Ultima Online to explain the existence of multiple parallel servers, which were referred to as "shards."
Automating Cache Invalidation with Cloudflare API (5 minute read)

This article describes how Cloudflare Cache can improve website performance by enabling features like Tiered Cache, Cache Reserve, and carefully crafted cache rules.
Lidl's Cloud Gambit: Europe's Shift to Sovereign Computing (3 minute read)

Lidl, a European grocery chain, is challenging major cloud providers like AWS by launching its own sovereign cloud platform, Schwarz Digits, to meet the growing European demand for data privacy and control within EU borders.
Scroll Snap Events (8 minute read)

Chrome 129 will introduce two new JavaScript events: scrollSnapChange and scrollSnapChanging.

Love TLDR? Tell your friends and get rewards!

Share your referral link below with friends to get free TLDR swag!
Track your referrals here.

Want to advertise in TLDR? 📰

If your company is interested in reaching an audience of web developers and engineering decision makers, you may want to advertise with us.

If you have any comments or feedback, just respond to this email!

Thanks for reading,
Priyam Mohanty, Jenny Xu & Ceora Ford


If you don't want to receive future editions of TLDR Web Dev, please unsubscribe from TLDR Web Dev or manage all of your TLDR newsletter subscriptions.