Passing `useState` setter functions as props to child components is a React anti-pattern. This creates an abstraction leak, tightly coupling the child to the parent's internal state management and making the code fragile and less reusable. The solution is to instead pass a callback function that encapsulates the state change, allowing the child to update the parent's state without knowing the specific implementation details.
TypeScript's type discrimination can be used to manage conditional props in React components, making sure props are type-safe and mutually exclusive when required. This article shows practical examples, like defining components that accept either one prop or another but not both.
SQL pagination is complex and using the offset keyword can make it worse. `offset` can lead to duplicate results and degrade performance, especially with large datasets, due to its need to process and skip data. A better alternative is to use predicate-based pagination with a `where` condition.
A Tuesday-to-Tuesday on-call rotation is better than Monday-to-Monday because it accommodates weekend issue resolution and holiday scheduling, allowing for a more thorough follow-up on problems. It's a simple, low-cost improvement to overall team efficiency.
Engineers should prioritize impact over optics and focus on delivering meaningful results that improve metrics and benefit users. Trust and recognition are gained through impactful work and should not be the primary goal.
Sponsored
Learn how to secure real-time collaborative apps by integrating Liveblocks with Clerk in a Next.js setup. This guide addresses unauthorized access risks by ensuring only authenticated users can access Liveblocks rooms, enhancing security in apps like team-based task managers. Perfect for developers prioritizing data protection in collaborative environments.
React Scan is a tool that automatically detects and highlights performance issues in React applications. Unlike other tools, it requires minimal code changes and provides clear visual cues to pinpoint problematic components.
Pglite-fusion lets users embed SQLite databases into their PostgreSQL tables.
The BM25 algorithm is a full-text search algorithm widely used in systems like Lucene/Elasticsearch and SQLite. This post goes over the algorithm's mathematical components - inverse document frequency (IDF), term frequency, and document length normalization - showing how they contribute to a relevance score.
AWS Lambda launched in 2014 and quickly gained traction. Today, it has over 1.5 million users and tens of trillions of function invocations monthly.
Go recently celebrated its 15th anniversary as an open-source project. Its user base has more than tripled in the last five years. Recent Go releases (1.22 and 1.23) were focused on improving for loops, iterators, and generics, along with improvements to the standard library, including the HTTP router and execution traces.
A collection of data engineering resources, including projects, interview guides, roadmaps, books, and more.
This article goes over how to dynamically generate different Progressive Web App (PWA) icons for various environments (development, staging, and production) in a Next.js app, with code examples.
The word "just," when used to describe a software engineering solution, minimizes the complexity of the task, discourages critical thinking and alternative solutions, and contributes to imposter syndrome.
Tips for improving remote startup communication include keeping discussions public on platforms like Slack, recording and summarizing meetings, sharing solutions openly, maintaining clear documentation, and avoiding excessive DMs.
Sponsored
TeamViewer is the industry standard for remote IT support [4]. Now's your chance to get your business on board by taking advantage of TeamViewer's Black Friday discounts.
Justice Department antitrust officials will ask federal judge Amit Mehta to force Alphabet to sell Google's Chrome browser as part of the ruling that Google illegally monopolized the search market. They will also ask to implement measures related to artificial intelligence and Google's Android smartphone operating system. The proposals have the potential to reshape the online search market and AI industry. States are still considering adding some proposals and some details could change. Google has plans to appeal the antitrust ruling.
2024.11.19·bloomberg.com·4 min read·TLDR Nvidia's upcoming Blackwell GPUs are prone to overheating when connected to each other on server racks. The issue is due to the server rack designed for Blackwell, which can connect up to 72 GPUs at a time. The racks have been redesigned, but this could cause further delays. Nvidia originally said that the GPUs could ship as soon as Q2 2024 before it encountered challenges.
2024.11.19·links.tldrnewsletter.com·3 min read·TLDR ChatGPT outperformed doctors in diagnosing disease in a study that looked at whether the chatbot could help doctors diagnose illnesses. Doctors who had help from the chatbot performed only slightly better than doctors without the tool, showing how doctors sometimes will stick to their diagnoses even when presented with a potentially better option. Many of the doctors didn't know how to use chatbots and treated ChatGPT like a search engine for direct questions, which could have affected results. Only a small fraction of the doctors copied the entire case history into the chatbot and asked it to answer the entire question.
2024.11.19·links.tldrnewsletter.com·8 min read·TLDR SpaceX launched three Falcon 9 rockets in less than 24 hours on November 17-18 ahead of a planned flight test of its Starship-Super Heavy vehicle today. Falcon 9 has reached 113 launches this year and 398 since it debuted in June 2010. Starship Flight 6 is slated to launch at around 5-5:30 PM from SpaceX's Starbase complex at Boca Chica Beach, Texas. SpaceX is hoping to catch the Super Heavy booster again using a pair of mechanical arms on its launch gantry and relight a Raptor engine in flight. Starship will not reach orbital velocity and will make a targeted splashdown in the Indian Ocean.
2024.11.19·aviationweek.com·3 min read·TLDR Sponsored
Rather than targeting the same tired audience on social media and seeing incremental gains at best, why not reach a fresh audience? Reach software developers, product managers, marketers, executives and other tech professionals reading TLDR every day. TLDR offers 10 interest-based newsletters to help you get in front of your target audience. Learn more [9] about running your first campaign with us.
2024.11.19·advertise.tldr.tech·Sponsor·TLDR The Rust Foundation's problem statement on the challenges and opportunities in C++ and Rust interoperability outlines three key strategic approaches: improve existing tools and address tactical issues within Rust to reduce interoperability friction and risk in the short term, build consensus around long-term goals and develop the tactical approaches to begin pursuing them, and engage with the C++ community and committee to improve the quality of interoperation for both languages to help realize the mutual goals of safety and performance. The 'interop initiative' was launched earlier this year to make cross-language development more accessible and approachable for the wider programming community.
2024.11.19·foundation.rust-lang.org·3 min read·TLDR Documind is a document processing tool that uses AI to extract structured data from PDFs. It can handle PDF conversions, extract information, and format results as specified by customizable schemas. Documind is designed for flexible deployment on local or cloud environments.
2024.11.19·github.com·GitHub repository·TLDR Elon Musk reportedly had plans to combine Twitter and Substack. He saw acquiring Substack as a way to aid Twitter's subscription service. Substack executive Chris Best declined the acquisition despite Musk offering him a chief executive position at the combined company. Substack pivoted to politics soon after the offer as some of the largest election pundits found a home on the platform.
2024.11.19·newsweek.com·2 min read·TLDR Creating digital artifacts that last requires using open file formats that are easy to retrieve and read. This means using tools that give people this freedom. While it isn't always possible to choose 'file over app', there are almost always options that allow users to export their data, which can later be scraped into usable formats. This post provides links to tools and projects that align with the 'file over app' philosophy.
2024.11.19·rishikeshs.com·6 min read·TLDR Sponsored
Q4 closing fast? Klue helps product marketers deliver winning competitive insights. Give sales the advantage they need. GET KLUE'D
The top 10 best-selling CPUs on Amazon are AMD processes from the Ryzen 5000, 7000, and 9000 processor series.
2024.11.19·tomshardware.com·2 min read·TLDR Security at scale means deciding how to divide a limited pool of engineering resources such that the largest demographic of users benefits from a security initiative.
2024.11.19·blog.yossarian.net·14 min read·TLDR Production code that utilized gpt-4o and gpt-4o-mini suddenly stopped working on November 13, suggesting there was an update to the model that made them incapable of doing the previous task.
2024.11.19·adriano.fyi·6 min read·TLDR Mistral has added image generation, web search, and an interactive 'canvas' to its free web-based chatbot, Le Chat.
2024.11.19·links.tldrnewsletter.com·8 min read·TLDR Google is also building a new version of Chrome for Android with extensions support and a Terminal to run Linux apps on Android.
2024.11.19·androidauthority.com·3 min read·TLDR Elon Musk's suit against Sam Altman has given Musk a chance to reveal how Altman secured power in the company's early days and his willingness to go toe-to-toe with for-profit competitors from the beginning.
2024.11.19·theverge.com·13 min read·TLDR → Check out pgai on GitHub [5]: a framework for developing RAG, semantic search, and other AI applications directly in PostgreSQL
Sponsored
You're building a RAG system, using Pinecone as a vector database to store and search embeddings.
2024.11.19·timescale.com·Sponsor·TLDR AI Pixtral Large is a 124B open-weights multimodal model built on top of Mistral Large 2. It is the second model in the multimodal family and demonstrates frontier-level image understanding. The model is able to understand documents, charts, and natural images while maintaining the leading text-only understanding of Mistral Large 2.
2024.11.19·mistral.ai·7 min read·TLDR AI Perplexity has introduced a shopping feature for Pro users in the US, making it a one-stop solution where you can research and purchase products.
2024.11.19·links.tldrnewsletter.com·4 min read·TLDR AI Ben Affleck reassured Hollywood actors and writers during an interview that AI poses little threat to their jobs due to its current limitations.
2024.11.19·movieweb.com·2 min read·TLDR AI While this is not an actual replication of the process used to train o1, it is still a strong VLM trained on reasoning traces.
2024.11.19·arxiv.org·25 min read·TLDR AI This work aims to systematically test the ability of new autonomous computer use agents. It finds Claude quite powerful at traditional linear tasks.
2024.11.19·arxiv.org·40 min read·TLDR AI This paper introduces NumPro, a creative solution that helps Video Large Language Models handle Video Temporal Grounding tasks.
2024.11.19·arxiv.org·14 min read·TLDR AI Sponsored
Sendbird's AI chatbot now supports Vision AI [13]. Powered by multimodal RAG technology, Vision brings a new level of understanding to conversations. You can now leverage vision language models and process inputs like images and files.
2024.11.19·sendbird.com·Sponsor·TLDR AI Cerebras has the largest Llama model, running 12x faster than comparable systems and 18x faster than some closed model API providers. It can run at almost 1k tokens per second. It will be available via API at the beginning of next year.
2024.11.19·cerebras.ai·4 min read·TLDR AI Despite CLIP's success in open-vocabulary tasks, it struggles with semantic segmentation due to noisy features and limited resolution. Trident addresses the resolution issue with a training-free framework that combines CLIP and DINO features from sub-images and uses SAM's encoder for global feature aggregation.
2024.11.19·github.com·GitHub repository·TLDR AI This work focuses on improving the certified robustness of smoothed classifiers by fine-tuning off-the-shelf models.
2024.11.19·github.com·GitHub repository·TLDR AI This paper from Google shows how you can change the camera viewpoint of an existing video.
2024.11.19·generative-video-camera-controls.github.io·7 min read·TLDR AI The Forge Reasoning API allows you to take any popular model and superpower it with a code interpreter and advanced reasoning capabilities. This has been shown to increase model performance.
2024.11.19·nousresearch.com·11 min read·TLDR AI Advancements in AI and robotics are accelerating the development of humanoid robots such as Atlas, Optimus, and Neo, robots aimed at fulfilling domestic tasks akin to Rosie from "The Jetsons." Challenges persist in creating cost-effective, safe, and efficient actuators. AI models are crucial for training robots to perform complex tasks autonomously. Despite progress, these humanoid robots are currently more suited for industrial settings. They may eventually transition into home environments if significant breakthroughs occur.
2024.11.19·spectrum.ieee.org·40 min read·TLDR AI Sponsored
Jane Street is offering $120,000 in prizes for building a real-time
2024.11.19·jane-st.co·Sponsor·TLDR AI