• Hungry Minds
  • Posts
  • ๐Ÿ”๐Ÿง  Discord Cut 40% WebSocket Latency Using This

๐Ÿ”๐Ÿง  Discord Cut 40% WebSocket Latency Using This

PLUS: Meta's AI Hardware ๐Ÿ˜ฎ, Interview Graph Algorithms ๐Ÿง‘โ€๐ŸŽ“, How Netflix Does Load Shedding ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป

In partnership with

Happy Monday! โ˜€๏ธ

Welcome to the 568 new hungry minds who have joined us since last Monday!
If you arenโ€™t subscribed yet, join smart, curious, and hungry folks by subscribing here.

๐Ÿ” THIS WEEKโ€™S MENU ๐Ÿฅ—

๐Ÿ“š Software Engineering Articles

๐Ÿ—ž๏ธ Tech and AI Trends

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Coding Tip

  • Use discriminated unions in TypeScript for type-safe data modeling and operations.

Reading time: 5 minutes

A few words from this weekโ€™s sponsor:

Want SOC 2 compliance without the Security Theater?

  • Get the all-in-one platform for SOC 2

  • Build real-world security ๐Ÿ’ช

  • Penetration testing, compliance software, 3rd party audit, & vCISO

Food for Thought
A mindset, an example, and an action item to start the week
โ

"Build your own dreams, or someone else will hire you to build theirs."

Farrah Gray

Mindset: This quote inspires you to take control of your future and build a life aligned with your passions, not someone else's.

Example: Apple co-founder Steve Jobs exemplified this quote, leaving a corporate job to create a revolutionary tech company that changed the world.

Action: Carve out 30 minutes today to brainstorm your biggest dreams and start outlining a concrete plan to make them a reality.

The Rabbit Hole
Deep dives, trends, and resources curated to stay ahead

๐Ÿ’พ SIDE DISHES ๐Ÿ’พ

ESSENTIAL (fomo no more)
How to cope with technology FOMO

GITHUB REPO (math made pretty)
Animation engine for explanatory math videos

ARTICLE (chaotic intro)
Introduction to Chaos Engineering

ESSENTIAL (senior wisdom)
On Being A Senior Engineer

ESSENTIAL (concurrency madness)
What makes concurrency so hard?

ARTICLE (rusty reflections)
One year of Rust in production

ARTICLE (not all that public)
No One Builds in Public

ARTICLE (latency life hacks)
Optimizing for High Latency Environments

ARTICLE (flagging features like a pro)
Implementing Feature Flagging with the Next.js App Router

ARTICLE (on-call newbie tips)
What I tell people new to on-call

ARTICLE (moving from redis to sqlite)
Rearchitecting: Redis to SQLite

ESSENTIAL (design lessons learned)
4 Software Design Principles I Learned the Hard Way

The Weekly Digest
Software, AI, and startup news worth your time

Brief: Jony Ive and OpenAI CEO Sam Altman are teaming up on an AI hardware project that aims to leverage generative AI, with ambitions for $1 billion funding and a design led by Ive's company, LoveFrom.

Brief: Llama 3.2 introduces new multilingual and multimodal AI models, offering flexible deployment, enhanced performance, and diverse use cases for developers on various platforms.

Brief: Meta's Ray-Ban smart glasses may be positioned to lead the AI wearable revolution, successfully integrating style, practicality, and essential features despite past failures in the sector.

Brief: A recent survey indicates 70% of Redis users are exploring alternatives due to the shift to less permissive licensing, sparking interest in Valkey and other FOSS options.

Brief: Richmond, VA, opens the world's first indoor vertical farm dedicated to strawberries, projected to produce 4 million pounds annually, leveraging innovative techniques to combat food scarcity and environmental issues.

Brief: Blue Origin's GS2 hot-fire test for the New Glenn rocket marks a significant milestone as the company prepares for a November launch amid potential challenges in vehicle integration and weather conditions.

Brief: A condensed summary of Ilya Sutskever's AI reading list offers insights into foundational papers and concepts essential for mastering deep learning, from CNNs and RNNs to the Transformer architecture and information theory.

The Quick Byte
One coding tip because youโ€™re technical after all

This weekโ€™s coding challenge:

This weekโ€™s tip:

The Discriminated Unions feature in TypeScript is a powerful technique for modeling complex data structures and handling type-safe operations on them.

Wen?

  • Improved Type Safety: Discriminated Unions provide a type-safe way to represent and work with heterogeneous data structures, reducing the risk of runtime errors and making your code more robust.

  • Expressive and Readable Code: By using a common discriminating property (the type field in the example), the structure of your data becomes more explicit and easier to understand.

  • Compiler-Assisted Refactoring: When working with Discriminated Unions, the TypeScript compiler can provide valuable assistance during refactoring, ensuring that all relevant cases are updated consistently across your codebase.

Burp-A-Laugh
The most important meal of your day

Thatโ€™s it for today! โ˜€๏ธ

Enjoyed this issue? Send it to your friends here to sign up, or share it on Twitter!

If you want to submit a section to the newsletter or tell us what you think about todayโ€™s issue, reply to this email or DM me on Twitter! ๐Ÿฆ

Thanks for spending part of your Monday morning with Hungry Minds.
See you in a week โ€” Alex.

Icons by Icons8.

*I may earn a commission if you get a subscription through the links marked with โ€œaff.โ€ (at no extra cost to you).