Best of General ProgrammingJuly 2025

  1. 1
    Video
    Avatar of awesome-codingAwesome·45w

    A clean and simple stack for modern web dev

    The BEVR stack combines Bun (runtime/package manager), Hono (backend framework), Vite (build tool), and React to create a modern web development setup. This stack offers faster package installation, lightweight backend APIs, instant frontend builds, and type-safe communication between client and server through shared TypeScript definitions in a monorepo structure. The setup provides flexibility for deployment, allowing both bundled and separate hosting options.

  2. 2
    Article
    Avatar of collectionsCollections·44w

    Comprehensive TypeScript Crash Course for Beginners

    A comprehensive one-hour TypeScript crash course covering fundamental concepts like type annotations, static typing, generics, interfaces, classes, and enums. The course includes practical setup instructions, hands-on examples, and debugging techniques to help beginners integrate TypeScript into their development workflow.

  3. 3
    Article
    Avatar of freecodecampfreeCodeCamp·43w

    Object-Oriented Design Patterns with Java

    A comprehensive guide to essential object-oriented design patterns implemented in Java, covering Strategy, Singleton, Composite, Decorator, State, Observer, Proxy, Factory, and Visitor patterns. Each pattern is explained with practical examples and interactive code playbacks that demonstrate how to solve common programming problems through reusable solutions. The tutorial focuses on leveraging inheritance and polymorphism to create flexible, maintainable code architectures.

  4. 4
    Video
    Avatar of nickchapsasNick Chapsas·43w

    The New Best Scheduling Library in .NET

    TickerQ is a new open-source scheduling library for .NET that aims to replace Hangfire and Quartz.NET by combining their best features while addressing their limitations. The library offers a dashboard interface, Entity Framework Core persistence, compile-time safety with source generators, true async support, and dependency injection. It supports both time-based and cron-based job scheduling, allows programmatic job creation through APIs, and provides comprehensive error handling with retry mechanisms. The tutorial demonstrates setting up TickerQ with PostgreSQL, creating scheduled jobs, and using the web dashboard to manage and monitor job execution.

  5. 5
    Article
    Avatar of socketdevSocket·44w

    Bun 1.2.19 Adds Isolated Installs for Better Monorepo Suppor...

    Bun 1.2.19 introduces isolated installs with the --linker=isolated option to improve monorepo dependency management by preventing cross-package conflicts. The release adds a new bun pm pkg command for programmatic package.json editing, improves workspace installs, and includes a bun why command for dependency tracing. Performance improvements include 5x faster PostgreSQL queries through automatic pipelining, 1ms faster startup times, and 3MB less memory usage. The update resolves 163 issues and positions Bun as a stronger competitor to pnpm for monorepo workflows.

  6. 6
    Video
    Avatar of primeagenThePrimeTime·46w

    Why is the Rust Compiler So SLOW?

    A deep dive into why Rust compilation is slow, particularly in Docker environments. The investigation reveals that LLVM optimizations, especially link-time optimization (LTO) and function inlining, consume most compilation time. Through profiling tools and trace analysis, the author discovers that async functions and closures significantly impact build times due to their complex state machine implementations. Various optimization strategies are explored, including reducing LLVM inlining thresholds, breaking up large async functions, enabling shared generics, and switching from Alpine to Debian base images, ultimately reducing build times from 175 seconds to under 10 seconds.

  7. 7
    Article
    Avatar of planetpythonPlanet Python·44w

    Don't call dunder methods

    Dunder methods (double-underscore methods like __str__, __len__) should be implemented in your Python classes but not called directly. Instead of calling obj.__str__(), use str(obj). Python's built-in functions and operators provide the proper high-level interface to these low-level implementation details. Direct dunder method calls can fail in cases where the high-level operations would succeed, such as with type coercion between integers and floats.

  8. 8
    Article
    Avatar of infoworldInfoWorld·47w

    Meet Zig: The modern alternative to C

    Zig is a modern systems programming language designed as a safer, simpler alternative to C. Created by Andrew Kelley in 2015, it features explicit memory management through allocator objects, compile-time code execution with 'comptime', and strong C/C++ interoperability. Unlike C, Zig eliminates preprocessors and macros in favor of conditional compilation, uses error union types instead of exceptions, and includes a built-in package manager. Currently at version 0.14.0, Zig is already used in production by projects like Bun.js runtime and TigerBeetle database, with the language moving toward self-hosted compilation beyond LLVM dependency.