Best of InfoWorldDecember 2024

  1. 1
    Article
    Avatar of infoworldInfoWorld·1y

    Just say no to JavaScript

    JavaScript, created in a week in 1995, has become the most common programming language despite its numerous pitfalls. The author argues for TypeScript as a superior alternative due to its expressive and powerful type system, which enhances code clarity and maintainability. The post rebuts common objections to TypeScript and advocates for its gradual adoption.

  2. 2
    Article
    Avatar of infoworldInfoWorld·1y

    10 hot programming trends — and 10 going cold

    Programming trends are continuously evolving, with certain technologies gaining popularity while others lose steam. Emerging trends include repatriation to control cloud bills, AI partners in coding, the use of memory-safe languages like Rust, and the adoption of WebAssembly for faster code execution. Meanwhile, traditional pair programming, C/C++ languages, and interpreters are seeing a decline in favor. Other shifts include a preference for CPUs over GPUs due to cost efficiency, the rise of zero-knowledge proofs for better privacy, and the popularity of static site generators. Trends reflect the adaptability of companies seeking better performance, cost control, and security.

  3. 3
    Article
    Avatar of infoworldInfoWorld·1y

    Cython tutorial: How to speed up Python

    Cython is a tool for making Python code faster by translating it into C. This tutorial explains how to convert Python code into Cython, use it in a production application, and provides a simple example. The new Cython syntax is now compatible with Python's own syntax, making code linting easier. The post also covers important aspects like compiling Cython code, using type annotations, leveraging the `cfunc` decorator, and managing the Global Interpreter Lock (GIL). Additionally, it discusses profiling Cython code to identify and optimize performance bottlenecks.

  4. 4
    Article
    Avatar of infoworldInfoWorld·1y

    How to build better AI chatbots

    Campfire launched Cozy Friends, an AI chat product, achieving over 1.7 million messages exchanged in its first 30 days. Key lessons learned include treating system prompts dynamically like React apps, opting for deterministic outcomes early, utilizing model blending, employing scripted responses, and crafting engaging conversation starters. Metrics for judging AI output are essential for maintaining quality across various interactions.

  5. 5
    Article
    Avatar of infoworldInfoWorld·1y

    Build a server-side web app with .NET, C#, and HTMX

    Learn how to build a dynamic server-side web app using .NET, C#, and HTMX. This guide walks you through creating a simple quote application, covering project setup, creating model, repository, controller, and view classes. It demonstrates the use of the Razor templating engine and HTMX for Ajax functionality to enhance the user experience without writing JavaScript.