Best of InfoWorldSeptember 2024

  1. 1
    Article
    Avatar of infoworldInfoWorld·2y

    Exception handling in Java: The basics

    The post provides an in-depth guide on Java exception handling, explaining the basics of throwing, trying, catching, and cleaning up exceptions. It covers the types of exceptions in Java, including checked, unchecked, and errors, and how to manage them using try-catch-finally blocks. The tutorial also discusses the advantages of using exception objects over traditional error codes and offers practical code examples for better understanding.

  2. 2
    Article
    Avatar of infoworldInfoWorld·2y

    The open source community strikes back

    The power of the open source community is demonstrated by recent forks of Redis and Terraform, showing resistance to the trend of companies shifting from open source licensing to more restrictive models for profitability. Initially, open source aimed to align with free market benefits to gain corporate acceptance. However, instances like Redis' and HashiCorp's license changes have sparked grassroots actions, including the creation of fully open source forks like Valkey and OpenTofu. This movement underscores that open source is driven by community principles rather than business models.

  3. 3
    Article
    Avatar of infoworldInfoWorld·2y

    Can Java rival Python in AI development?

    Java is positioning itself as a strong contender in AI and machine learning, leveraging cloud infrastructure, frameworks, and integration with business logic. Oracle and Azul highlight Java's reliability, performance, and existing enterprise presence as key advantages. Frameworks like Tribuo, LangChain4j, and CoreNLP are set to boost Java's AI capabilities. Although Python currently dominates the field, experts believe Java's strengths in performance, scalability, and resource efficiency could make it a significant player in the future.

  4. 4
    Article
    Avatar of infoworldInfoWorld·2y

    Using PostgreSQL as a vector database in RAG

    Learn how to build a local retrieval-augmented generation (RAG) application using PostgreSQL with the pgvector extension, Ollama, and the Llama 3 large language model. This guide describes how Postgres can store both vector and tabular data, making it a versatile option for medium-sized RAG applications. It covers setting up a vector database, ingesting text from multiple sources, conducting similarity searches, and querying a large language model to generate answers. Practical coding examples and step-by-step instructions are provided to help developers get started quickly.

  5. 5
    Article
    Avatar of infoworldInfoWorld·2y

    Python in VS Code gets even better

    Microsoft has released an all-in-one data-science pack for Python in VS Code, featuring tools like Jupyter notebooks and GitHub Copilot. Python has reached its highest ever rating on the Tiobe index, rivaling Java's past popularity. Highlights also include a guide to using the py launcher for Windows, a comparison between Go and Python, and updates on Modin, Hy 1.0.0, and Spyder 6 IDE.

  6. 6
    Article
    Avatar of infoworldInfoWorld·2y

    Why vector databases aren’t just databases

    Vector databases are specialized databases designed for handling unstructured data and supporting modern AI workloads like generative AI, machine learning, and natural language processing. Unlike traditional databases focused on structured data and transactional workloads, vector databases excel in real-time similarity searches and relevance ranking. They are highly effective in advanced search, recommendation systems, and retrieval-augmented generation (RAG) for large language models. They also integrate traditional filtering capabilities to enhance search results and are optimized for scalability and speed in AI-driven applications.

  7. 7
    Article
    Avatar of infoworldInfoWorld·2y

    3 great new features in Postgres 17

    Postgres 17 introduces highly optimized incremental backups, expanded SQL/JSON support, and a configurable SLRU cache. These features improve efficiency, enhance developer capabilities, and provide more tuning options for complex transactions. Additional improvements include logical replication, partitioning performance enhancements, and more efficient maintenance tasks, further solidifying Postgres as a high-performance and reliable database solution.

  8. 8
    Article
    Avatar of infoworldInfoWorld·2y

    6 ways to apply automation in devsecops

    Automation is crucial in devsecops to secure the software development life cycle comprehensively. It assists in reducing human errors, ensuring consistency, and enabling developers to focus on coding rather than manual security checks. Key areas benefitting from automation include code, image, infrastructure, process, and collaboration security. Implementing role-based access control (RBAC) and automating the creating and checking stages are essential practices for maintaining robust security. Overcoming myths about the cost and complexity of automation is key for businesses aiming to enhance productivity and secure their development processes.

  9. 9
    Article
    Avatar of infoworldInfoWorld·2y

    Angular 19 to make standalone the default for components

    Angular 19 will make 'standalone: true' the default for components, directives, and pipes, moving away from the dependency on NgModules. This shift, which began as a developer preview in Angular 14, aims to simplify Angular code and promote faster adoption. Features like the directive composition API and deferrable views benefit from this change, although the option to use NgModules remains available. An automated migration path will ensure compatibility for existing code. Angular 19 is expected to be released in November, based on previous release schedules.

  10. 10
    Article
    Avatar of infoworldInfoWorld·2y

    PostgreSQL tutorial: Get started with PostgreSQL 16

    PostgreSQL 16 is a powerful, open-source relational database that can be installed on Windows, Linux, and macOS. This guide provides detailed steps for setting up PostgreSQL on each of these platforms, covering both binary installations and specific package managers. It also offers insights into migrating data between PostgreSQL versions and configuring the database, especially for Linux. Additionally, the guide discusses tools like pgAdmin 4 for database management.

  11. 11
    Article
    Avatar of infoworldInfoWorld·2y

    Node.js adds built-in API for on-disk caching

    Node.js 22.8.0 introduces a new API that allows on-disk caching of modules, enhancing performance and ESM support. The update also includes a feature requiring code coverage thresholds to be met before a process can exit, and adds a new context creation function. Download is available from Nodejs.org.