Understanding C#: Object vs. Dynamic – and Why to Avoid ThemC# is a statically typed language, which means that variables are typically declared with specific types at compile-time, allowing for compile-time type checking and improved code reliability. However, there are two constructs that break away from th...Oct 20, 2023 · 3 min readguillermovalenzuela.hashnode.dev
Simplifying Object Instantiation in C# with Target-Typed NewOne of the key features introduced in C# 9 is target-typed new expressions, a simple yet powerful enhancement that streamlines object instantiation. This feature allows developers to create new objects with less verbosity, making the code more concis...Oct 19, 2023 · 3 min readguillermovalenzuela.hashnode.dev
Simplifying Integration: Understanding the C# Adapter PatternIn the world of software development, integrating disparate components is a common challenge. When these components have incompatible interfaces or behavior, the Adapter Pattern comes to the rescue. In this article, we'll delve into the C# Adapter Pa...Oct 15, 2023 · 3 min readguillermovalenzuela.hashnode.dev
C# Rules of ThumbIn C# there are various rules of thumb and best practices to follow to write clean, maintainable, and efficient code. Here are some general rules of thumb for C# development: Use Meaningful Names: Choose descriptive and meaningful names for variable...Oct 14, 2023 · 3 min readguillermovalenzuela.hashnode.dev
Exploring the C# Builder Pattern: Building Objects with PrecisionWhen it comes to object creation and configuration in C#, developers often find themselves faced with the challenge of managing complex, deeply nested objects with multiple parameters. This is where the Builder Pattern comes to the rescue. The Builde...Oct 14, 2023 · 4 min readguillermovalenzuela.hashnode.dev