Skip to content

Coding and Beyond

A software developer's blog.

  • Home
  • Article Series
    • Architectural Design Patterns
    • Advanced C# Tips
    • C – Bedrock of Software
  • About
  • Contact

Tag Advanced C# Tips

  • Home
  • Advanced C# Tips: Reuse Objects Where Possible
13/08/2024

Advanced C# Tips: Reuse Objects Where Possible

By Suleyman Cabir Ataman in Advanced, Coding, C#, Software Engineering, Intermediate Tag C#, .NET, .NET Core, dotnet, Advanced C# Tips

Reusing objects in C# is a strategy that aligns with the principles of efficient memory management and application performance optimization. This concept is important in environments where memory resources are…

Read More

30/07/2024

Advanced C# Tips: Utilize ArrayPool for Frequent Array Allocations

By Suleyman Cabir Ataman in Coding, C#, Software Engineering, Advanced Tag C#, .NET, .NET Core, dotnet, Advanced C# Tips

ArrayPool<T> in C# is a very useful but a less known feature. It has been around since .NET 2.0 but has never been popular. In order to understand ArrayPool, we…

Read More

23/07/2024

Advanced C# Tips: Consider Leveraging Bitwise Operations for Simple Calculations If Possible

By Suleyman Cabir Ataman in Advanced, Coding, C#, Software Engineering Tag C#, .NET, .NET Core, dotnet, Advanced C# Tips

Bitwise operators in C# are special tools that let you work directly with the individual bits of a number's binary representation. If you are reading this blog post, I assume…

Read More

16/07/2024

Advanced C# Tips: Use Exceptions Wisely

By Suleyman Cabir Ataman in Advanced, Coding, C#, Software Engineering Tag dotnet, Advanced C# Tips, C#, .NET, .NET Core

Exceptions in C# are definitely a great facility but we need to use them wisely. We should leave the least possible probabilities of throwing an exception since exceptions come with…

Read More

09/07/2024

Advanced C# Tips: Prefer Value Types Over Reference Types

By Suleyman Cabir Ataman in Advanced, C#, Software Engineering Tag C#, .NET, .NET Core, dotnet, Advanced C# Tips

In C#, understanding the difference between value types and reference types is a fundamental topic when writing efficient and performant code. The choice between using a value type (like a…

Read More

27/06/2024

Advanced C# Tips: Prefer Structs for Immutable Data

By Suleyman Cabir Ataman in Advanced, Coding, C#, Software Engineering Tag C#, .NET, .NET Core, dotnet, Advanced C# Tips

Before diving into topic, I want to begin with clarifying the terminology. Immutable data refers to data whose state cannot be modified after it has been created. Once an immutable…

Read More

20/06/2024

Advanced C# Tips: Use ‘in’ Parameter Modifier for Large Value Types

By Suleyman Cabir Ataman in Advanced, Coding, C#, Software Engineering Tag C#, .NET, .NET Core, dotnet, Advanced C# Tips

In C#, the in parameter modifier is relatively a recent addition. It added in C# 7.2. The main point of in keyword is to pass a large value type to…

Read More

13/06/2024

Advanced C# Tips: Don’t Use unsafe for Minor Gains

By Suleyman Cabir Ataman in Coding, C#, Advanced, Software Engineering, Programming Languages Tag dotnet, Best Practices, Advanced C# Tips, Performance, Security, .NET, .NET Core, Programming Languages

The title could have also been "Don't use unsafe code at all!" You will come to the same conclusion after reading this post, but still I gave a room for…

Read More

Posts pagination

1 2

Article Series

Architectural Design Patterns

Advanced C# Tips

C - Bedrock of Software

Categories

  • Level
    • Beginner
    • Intermediate
    • Advanced
  • Programming Languages
    • C/C++
    • C#
    • Go
    • Java
    • Python
    • TypeScript
  • Databases
    • NoSQL
  • Cloud Computing
    • Amazon Web Services
    • Azure
    • Containerization
  • Web Development
    • Angular
    • React
    • Node.js
  • Software Engineering
  • Testing

Search

Proudly powered by WordPress | Theme: SpicePress by SpiceThemes