Best of The New StackJune 2024

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

    The 5 Worst Anti-Patterns in API Management

    API management poses unique challenges, especially when scaling services across different developer teams. Key anti-patterns to avoid include centralizing too many responsibilities, choosing over-complicated solutions prematurely, neglecting fully infrastructure-as-code practices, inconsistent versioning, and poor dependency management. Following best practices for API governance, gradual implementation, consistent versioning, and meticulous dependency management can ensure more predictable, reliable, and efficient operations.

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

    13 Practical Updates to Optimize Website Performance

    Gcore.com enhanced website performance, security, SEO, and accessibility through a series of strategic updates. Implemented improvements include SSO authentication for streamlined access, WAF and bot protection to reduce security breaches, Gcore DDoS protection to achieve 99.99% uptime, and automatic pod scaling to improve stability. SEO initiatives like structured data markup, special HTML tags for lists, and image optimization significantly boosted search rankings and organic traffic. Accessibility advancements were made via color scheme adjustments, font-size changes, and better alt texts. These efforts resulted in improved user engagement, SEO metrics, and overall website performance.

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

    7 Technical Updates to Boost Website Performance

    Learn how to boost website performance with 7 technical updates, including lazy loading, DOM size reduction, caching strategies, font loading optimization, image size management, and blog architecture restructuring.

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

    5 Ways JavaScript Is Improving Modules for Developers

    JavaScript is enhancing its modular capabilities with a set of interconnected proposals known as module harmony. These proposals aim to improve performance and usability for developers by introducing features such as combining module files with web workers, module declarations, import attributes for better file handling, granular security with compartments, and simplifying virtual environments for development tools like Jest. While improvements might not be immediately visible, the process is designed to ensure robust and reliable features. The TC39 committee's standards process works to deliver mature and well-supported enhancements to the JavaScript language.

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

    Backend Development Efficiency: The Critical Role of Caching

    Caching is a key technique in backend development that enhances application performance by storing data retrieved from the database and delivering it seamlessly for subsequent requests. This article explores the fundamentals of caching and provides a comprehensive guide on implementing caching using technologies such as Nest.js, Redis, Docker, and Postman.

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

    Why Python Is So Slow (And What Is Being Done About It)

    Python's slow runtime can be improved through techniques like using Cython to write code in C, implementing static typing, rewriting processing-heavy functions in C, and using immutable objects and sub-interpreters to bypass the Global Interpreter Lock (GIL).

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

    Top 9 API Security Vulnerabilities: How to Defend Against Them

    API vulnerabilities can lead to data exposure, broken authentication, and authorization issues. Mitigating these risks requires strict output filtering, multi-factor authentication, and enforcing data access permissions.

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

    Introduction to Gleam, a New Functional Programming Language

    Gleam is a new type-safe functional programming language designed for building scalable concurrent systems. It compiles to Erlang and JavaScript, making it compatible with other BEAM languages like Erlang and Elixir. The language focuses on immutability, has no exceptions, and emphasizes type safety. Key features include a straightforward syntax, the absence of `null`, algebraic data types, and built-in package management. It offers an approachable way for developers unfamiliar with functional programming to learn and appreciate its advantages.

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

    PostgreSQL vs. MongoDB: Which Is Better for GenAI?

    Generative AI (GenAI) requires databases that can efficiently handle complex, large-scale data structures. This post compares PostgreSQL and MongoDB for GenAI workloads, highlighting that MongoDB, with its BSON format, offers superior performance for large documents and multiple attributes versus PostgreSQL's JSON/JSONB handling. Specific benchmarks in write and read operations underscore how PostgreSQL struggles with large payloads, whereas MongoDB maintains consistent performance, making it a better choice for GenAI tasks.

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

    AI Agents: Key Concepts and How They Overcome LLM Limitations

    AI agents augment LLMs by incorporating memory, enabling asynchronous processing, fact-checking and real-time information access, enhancing mathematical capabilities, ensuring consistent output formatting, and creating persona-driven interactions.

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

    RAG vs. Fine-Tuning Models: What’s the Right Approach?

    Retrieval-Augmented Generation (RAG) retrieves relevant documents to generate contextually accurate responses, ideal for dynamic environments like enterprise search and customer support. Fine-tuning involves training a model on specific datasets for specialized tasks, ensuring consistency and improved performance for targeted applications. Choosing between RAG and fine-tuning depends on the need for adaptability or task-specific expertise.

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

    Open Source LibreChat Offers More Than Just Extra LLMs

    LibreChat is an open-source alternative to ChatGPT that offers enhanced features, customization options, and the ability to search through past conversations. It supports multiple AI models, including OpenAI's models, and promotes data sovereignty by allowing users to host their own AI chat interface. The project has a passionate and collaborative open-source community.

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

    How Sprinting Slows You Down: A Better Way to Build Software

    Software sprints may not be the most effective way to build products. This post explores the negative consequences of sprints, the challenges of developing software with deadlines, and the benefits of using smaller teams without imposing deadlines.

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

    What GitHub Pull Requests Reveal about Your Team’s Dev Habits

    Researchers have analyzed GitHub pull requests and issues to uncover patterns in development workflows. By studying 56 GitHub projects, they identified patterns like competing PRs and duplicate issues that can impact productivity. They also developed a tool, WorkflowsExplorer, to visualize these patterns. The findings suggest that optimizing communication and code review practices can enhance project efficiency.

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

    Who Should Run Tests? On the Future of QA

    QA's role grows in a world where testing is shifting left. QA professionals are embedded within teams and play a critical role in overseeing interactions between microservices.

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

    Linux Skills: Manage System Services

    This post provides an overview of managing system services on Linux. It covers common services, checking service status, and starting, stopping, and restarting services using the systemctl command. Service management is an essential task for Linux sysadmins, and understanding how services interact with configuration files is crucial. The post also emphasizes the importance of service management for system hardening.

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

    Rust Growing Fastest, But JavaScript Reigns Supreme

    Rust is the fastest-growing programming language, while JavaScript remains the most popular. Python has surpassed Java as the second most popular language. Go language has also seen growth.

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

    Favorite AI Tools of Developers and Tips For Using Them

    AI tools are increasingly used by developers and can improve productivity, code completion, and learning. GitHub Copilot and Cursor IDE are popular AI tools for pair programming and code completion. Other AI tools, such as AppMap's Navie, help with troubleshooting and complex design work. Developers emphasize the importance of using AI as a tool, not a substitute for knowledge. They also caution against relying too heavily on AI and emphasize the need for privacy considerations. The future of AI-assisted development is promising, with rapid improvements in AI programming recommendations.

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

    TanStack Introduces New Meta-Framework Based on Its Router

    TanStack introduces a new meta-framework based on its router. The TanStack router is the first fully type-safe router for the frontend, providing static analysis and reducing bugs. The upcoming TanStack Start framework is built around the router and focuses on building highly interactive client-side applications.