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 dotnet

  • Home
  • Advanced C# Tips:Prefer Lazy Initialization for Rarely Used Objects
10/09/2024

Advanced C# Tips:Prefer Lazy Initialization for Rarely Used Objects

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

Lazy loading and eager loading are two contrasting approaches in managing how and when data is loaded into memory in programming, particularly relevant in the context of databases, data processing,…

Read More

27/08/2024

Advanced C# Tips: Using Array Segments Instead of Copying Arrays

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

Even though it is not a very popular C# tool, the ArraySegment<T> is quite old and it was introduced in .NET Framework 2.0, which was released in 2005. It is…

Read More

13/08/2024

Advanced C# Tips: Reuse Objects Where Possible

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

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 Advanced, Coding, C#, Software Engineering Tag .NET Core, dotnet, Advanced C# Tips, C#, .NET

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 C#, Software Engineering, Advanced, Coding 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 C#, .NET, .NET Core, dotnet, Advanced C# Tips

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 C#, Software Engineering, Advanced 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 Software Engineering, Advanced, Coding, C# Tag .NET, .NET Core, dotnet, Advanced C# Tips, C#

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 Software Engineering, Advanced, Coding, C# 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

Posts pagination

1 2 3

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