CodeSwissKnife

Focus on Productivity with Secure, Offline Developer Tools

Download
blog

Getting Started with System.Collections and Immutable Types in C# and .NET – Part 2

Introduction In Part 1 of this series, we explored the foundational types and interfaces behind collections in C# and .NET, such as IEnumerable<T>, ICollection<T>, IList<T>, as well as common types like arrays, List<T>, Queue<T>, Stack<T>, and Dictionary<TKey, TValue>. We also discussed trade-offs and practical use cases to help you make better choices when working with […]

Ottorino Bruni 
blog

Getting Started with System.Collections and Immutable Types in C# and .NET – Part 1

Introduction When writing C# code, most of us tend to stick with the basics List<T>, arrays, maybe a Dictionary<TKey, TValue> when needed. They’re familiar, flexible, and get the job done in many scenarios. But the .NET framework provides much more. The System.Collections namespace (and its generic and specialized variants) offers a wide range of collection […]

Ottorino Bruni 
blog

Getting Started with Garmin Connect IQ Development: Build Your First Watch Face with Monkey C and VS Code

Introduction As a seasoned software developer focused on cloud applications, I’ve always harbored a passion for gadgets and mobile devices. My journey in mobile development started in the early days, crafting applications for Nokia phones using J2ME, and later evolved to iOS development since the first iPhone release. My Smartwatch Journey Being deeply embedded in the […]

Ottorino Bruni 
blog

How to Implement HybridCache in .NET using C# – A Better Caching Strategy

Introduction After covering essential caching concepts in my article about in-memory caching and exploring distributed solutions with Redis caching, it’s time to discover a powerful new approach that combines the best of both worlds: HybridCache. The .NET team has introduced HybridCache as an innovative solution that addresses common caching challenges. This new caching strategy intelligently combines in-memory caching’s speed […]

Ottorino Bruni 
blog

How to Use Output Caching for Faster Results in ASP.NET Core Minimal API

Introduction In modern web development, performance optimization is crucial for delivering exceptional user experiences. While traditional caching mechanisms like Response Caching have served us well, ASP.NET Core introduces a more powerful and flexible solution: Output Caching. This new middleware represents a significant evolution in how we handle caching in web applications, offering enhanced control and efficiency. […]

Ottorino Bruni 
blog

Using CancellationTokens in .NET Minimal APIs: Boost Performance and Responsiveness

Introduction: Why Responsiveness Matters in Modern .NET Applications In today’s world of modern software development, creating responsive and high-performing applications isn’t just a luxury it’s a necessity. Whether you’re building REST APIs, web applications, or microservices, chances are you’re working with asynchronous operations. These operations are often long-running and involve expensive tasks like database queries, external […]

Ottorino Bruni