Best of The New StackNovember 2023

  1. 1
    Article
    Avatar of newstackThe New Stack·3y

    Best Practices for Storing Access Tokens in the Browser

    This article discusses best practices for storing access tokens in the browser and highlights different storage solutions available. It covers browser threats such as cross-site request forgery (CSRF) and cross-site scripting (XSS) and provides recommendations for mitigating these risks. The article also introduces the token handler pattern as a design pattern for secure authentication and making authenticated calls to APIs in JavaScript applications.

  2. 2
    Article
    Avatar of newstackThe New Stack·3y

    How to Build a Server-Side React App Using Vite and Express

    Learn how to build a server-side React app using Vite and Express, enabling server-side rendering and data fetching. The article provides step-by-step instructions for setup, installing dependencies, adding scripts, creating source files, configuring Vite, and creating both development and production servers. It also covers server-side data fetching and provides insights and praise for Vite's documentation and developer experience.

  3. 3
    Article
    Avatar of newstackThe New Stack·2y

    Combining AI with React for a Smarter Frontend

    Frontend development needs to include AI for richer insights from data. Developers can use custom data and embeddings to enable natural language queries and find relevant information. The suggested tech stack includes Next.js, OpenAI's Chat GPT, Turbo, GPT 4, LangChain, Vercel's AI SDK, and MongoDB. GPTs can be made more real-time and context-aware with React, large language models, and RAG.

  4. 4
    Article
    Avatar of newstackThe New Stack·3y

    How Daily Dev Built an AI Search Using an LLM Gateway

    Daily.dev launched the beta version of their AI-powered Search, which aims to deliver concise, accurate answers to technical queries. The system follows a workflow involving query generation, candidate generation, scraping, context building, and answer generation. They integrated LLMs using the LLM Gateway, which streamlines interactions and offers foundational building blocks. The orchestrator, Magni, executes the workflow and provides traceability and debugging. Challenges include managing stateful services, cost analysis, optimizing performance, and prompt engineering.

  5. 5
    Article
    Avatar of newstackThe New Stack·3y

    Penetration Testing with Kali Linux as a Docker Container

    Learn how to run penetration testing using Kali Linux as a Docker container. Install Docker, pull the Kali Linux image, deploy the container, install pen-testing tools, commit changes, and run penetration testing.

  6. 6
    Article
    Avatar of newstackThe New Stack·2y

    How Quik’s Astro Integration Beats Both React and Vanilla JS

    Quik's Astro integration provides a lightweight and easy-to-maintain solution for adding interactivity to static websites built with Astro. Quik offers a cleaner and more concise alternative to Vanilla JavaScript and React, with minimal additional JavaScript added to each page.

  7. 7
    Article
    Avatar of newstackThe New Stack·3y

    Developer Productivity Engineering at Netflix

    Developer productivity engineering at Netflix focuses on enabling the technical community to focus on their work and optimizing the software development lifecycle. Netflix measures developer productivity using qualitative metrics and the 2021 SPACE developer productivity framework. The platform team at Netflix is responsible for providing tools and infrastructure to support developer productivity. They also provide internal customer support to help developers with technical issues. Netflix is constantly working on improving documentation and communication to support developer productivity.

  8. 8
    Article
    Avatar of newstackThe New Stack·2y

    Project Bluefin: A Linux Desktop for Serious Developers

    Project Bluefin is an enhanced version of Fedora Silverblue, tailored for those who find traditional Linux desktops less reliable. It aims to provide a maintenance-free desktop experience. The project focuses on providing a reliable platform for software engineering and development, offering tools and features for both developers and end users.

  9. 9
    Article
    Avatar of newstackThe New Stack·3y

    Deferable Views, Page Load Improvements Coming to Angular

    Angular version 17 introduces @defer, a new framework primitive that allows developers to lazily load parts of their views. It also includes improvements to server-side rendering and static site generation.