Neon sunglasses logo

troels.im

Level Up Your Coding Game with AI & Rust!

Made with ❤️ by @troels_im

Raining colors

Blog

Latest articles and thoughts

Cursor and Claude Code represent two fundamentally different approaches to AI-assisted coding in 2025, with Cursor offering a familiar IDE experience through its VS Code fork that excels at rapid prototyping and visual debugging, while Claude Code operates as a powerful terminal-based CLI tool that leverages superior reasoning capabilities and 200K token context windows for complex multi-file projects. While both tools cost around $20/month, Claude Code can be up to 4x more expensive for heavy usage due to its token-based consumption model, making Cursor more cost-effective for moderate developers, though experienced programmers often prefer Claude Code's autonomous capabilities and deep codebase understanding for large-scale architectural work. The choice ultimately depends on your workflow preferences: Cursor is ideal for beginners and visual learners transitioning from traditional IDEs, while Claude Code serves power users who value terminal efficiency and advanced reasoning for complex development tasks.

This blog post addresses a common error encountered when building Rust WebAssembly projects with Trunk, particularly after Rust 1.82.0. The error stems from the introduction of "bulk memory operations" in the Rust compiler, which are not supported by older versions of `wasm-opt`. The post outlines three solutions: updating `wasm-opt` to the latest version (recommended), configuring Trunk to pass the `--enable-bulk-memory` flag to `wasm-opt`, or disabling bulk memory operations in the Rust compiler. It emphasizes the importance of addressing this issue for production builds to avoid build failures and performance impacts, and provides practical advice on checking tool versions and staying updated with the evolving WebAssembly ecosystem.

Feeling the pressure to ship faster while keeping bugs away? You're not alone! This guide cuts through the hype about AI coding tools to show you what actually works. AI won't take your job—it's more like a junior developer with unlimited energy but needs your guidance. The real power comes when you combine AI's speed with your experience. We'll explore common myths and show you: - How AI tools become your coding buddy (not your replacement) - Why AI can work for complex projects (with the right approach) - The danger of using AI without understanding the code Plus, you'll get 10 practical principles for using AI safely, along with clear dos and don'ts that help you ship faster without breaking things. Level up your coding by learning to use AI the right way—like adding seatbelts and airbags to your development process!