Best of The New Stack2023

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

    The New JavaScript Features Coming in ECMAScript 2023

    ECMAScript will be approved in July 2023, but four proposals for new language features have already reached stage four. WeakMap lets you extend an object with extra properties without worrying about creating a memory leak. Change Array by Copy gives developers new methods for sorting, reversing and overwriting data without mutating the array it’s stored.

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

    Good-Bye Kris Nóva

    Kris Nóva had co-founded The Nivenly Foundation, a member-controlled and democratically-governed open source foundation. She was an open source developer who contributed significantly to Linux, Kubernetes, distributed runtime environments, Falco, and the Go programming language. In a word, she was “impressive.

  3. 3
    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.

  4. 4
    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.

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

    What Vue’s Creator Learned the Hard Way with Vue 3

    Vue's creator learned several lessons in the transition from Vue 2 to Vue 3. These include the need to handle breaking changes more carefully, reach out to ecosystem library authors, release everything together, embrace TypeScript and the composition API, and invest in developer experience.

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

    Bun 1.0 Ships as Node.js and Deno Alternative

    Built for Speed Bun competes with Node.js and the Rust-based Deno, which were both created by Ryan Dahl. It’s designed to be a drop-in replacement for node.js, according to a release livestream that aired Thursday. The buzz over Bun was all about its speed and ease of use.

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

    5 Best Practices for Securing Your API Gateway

    Learn about five best practices for securing your API gateway, including token-based authentication, role-based access control, rate limiting, explicit CORS policy, and real-time monitoring and alerting for anomalies.

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

    OAuth.Tools: The Online Tool That Goes beyond JWTs

    OAuth is a free online tool provided by Curity. It offers incredible features for anyone working with or interested in OAuth and OpenID Connect. You can decode or create JWTs with different characteristics, fetch tokens from a server, revoke tokens or add an access token to external API calls.

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

    Dev News: A ‘Nue’ Frontend Dev Tool; Panda and Bun Updates

    Nue.js is an alternative to React, Vue, Next.js, Vite, Svelte and Astro. It's designed to be part of an ecosystem, with plans to include Nue CSS for cascaded styling to replace CSS-in-JS, Tailwind and SASS.

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

    How to Write Your Own Email Server in Rust

    The result of this small personal hackathon is edgemail, an open source disposable email server. In this post, you’ll see how to write and deploy one yourself. In order to not go out of storage, old mail will be cleaned up periodically.

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

    JavaScript in 2023: Signals, React’s RSC, and Full-Stack JS

    JavaScript in 2023 saw the broader adoption of Signals by frameworks and React Server Components. Signals are reactive primitives that manage application states, while React Server Components enhance user and developer experiences. JavaScript is becoming a full-stack language with the rise of Node.js and the availability of JavaScript-friendly serverless hosting platforms.

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

    Why Your Code Sucks: Common Excuses for Bad Programming

    Dave Farley is a software engineer/author/consultant, as well as a co-author of the 2010 book Continuous Delivery. Farley recently took to YouTube to share his ‘exploration of seven common excuses that software developers make for doing a worse job’ The video is the first in a planned monthly series.

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

    What Is Microservices Architecture?

    Microservices architecture allows for the deployment of independent and self-contained services in an organization. It offers flexibility, faster deployment, scalability, and isolated failures. However, it also presents challenges in terms of increased complexity, testing, managing communication systems, and observability. The decision to adopt microservices architecture depends on the environment, team function, application flexibility, and the number of services.

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

    How Discord Migrated Trillions of Messages to ScyllaDB

    Discord migrated its messages cluster from Cassandra to ScyllaDB, reducing latencies from 200 milliseconds to 5 milliseconds. They built a data service library to streamline queries, created a 'Superdisk' with persistent disks and NVMe SSDs, and made modifications to ScyllaDB for compatibility with the Superdisk.

  15. 15
    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.

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

    Why Grafana Needs OpenTelemetry

    The New Stack Grafana is often considered to be the hands-down most popular observability platform for data visualization. OpenTelemetry has emerged as a key open source component to lend compatibility among the different observability platforms. The project has continued to gain momentum and is the second-highest velocity open source project in the CNCF.

  17. 17
    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.

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

    VanJS: a Minimalist, ‘Vanilla JavaScript’ UI Framework

    VanJS is a minimalist, open-source UI framework for JavaScript that offers a modern developer experience and reactivity. It is lightweight, unopinionated, and suited for small to medium-scale applications. VanJS is designed to provide an alternative to React and native GUI applications, allowing developers to build web-based applications that can replace most native applications. It supports states, state bindings, and automatic UI updates, while being more vanilla and immediate in the browser. VanJS also integrates well with large language models and has an AI-powered app builder. It is easy to learn and offers good performance.

  19. 19
    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.

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

    Vercel’s Next.js 14 Introduces Partial Pre-Rendering

    Vercel has released Next.js 14, which introduces partial pre-rendering for performance improvements. It also includes a faster TurboPack engine and stable server actions.

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

    7 Best Practices for Data Visualization

    Data visualization is an important skill for data professionals, which usually goes hand in hand with storytelling, aiming to communicate observations effectively and inform decisions. Data visualizations are useful for highlighting trends, patterns and correlations in data. There are code libraries and no-code/low-code platforms, depending on the use case.

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

    Web Development in 2023: JavaScript Still Rules, AI Emerges

    Web development trends in 2023 include the continued dominance of JavaScript, the rise of Cloud Development Environments (CDEs), and the integration of generative AI into web frameworks. Next.js remains the top framework, but Astro is gaining popularity. The separation of frontend and backend development continues to be a trend. Vercel's AI SDK has had a significant impact, and CDEs are becoming more popular among developers. WebAssembly is steady but not spectacular. The open web is also experiencing a renaissance.

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

    Secure Go APIs with Decentralized Identity Tokens, Part 1

    The rise of decentralized identity tokens adds a new dimension to API security. Traditionally, API authentication and authorization relied heavily on centralized identity providers. Decentralized identity tokens allow individuals to have greater control over their identities and authenticate themselves without relying on central authority.

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

    Penpot Woos Developers, Takes on Figma With Open Source Tool

    Penpot Woos Developers, Takes on Figma With Open Source Tool - The New Stack. Penpot sign-ups have grown by 66% to 400,000 users, reports Kaleidos. The company is introducing a suite of new tools to ‘further improve collaboration between designers and developers’ Penpot.

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

    Why Viable Uses Next.js and Node.js for AI Applications

    Viable uses AI to analyze customer feedback and create reports, Honeycomb uses a natural language interface for queries, Viable utilizes Next.js and Node.js for its UI and APIs, and developers should consider real-time streaming support when developing with AI.