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: Use Conditional Attribute for Debugging Code
21/01/2025

Advanced C# Tips: Use Conditional Attribute for Debugging Code

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

In C#, it's common to sprinkle your code with debugging information—like console logs that help you track down bugs. However, when you're ready to release your application to the world,…

Read More

07/01/2025

Advanced C# Tips: Optimize Recursive Functions With Tail Recursion

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

Recursive functions are a staple in many programmers' toolkits. They allow us to solve complex problems by having a function call itself with a different set of parameters until a…

Read More

10/12/2024

Advanced C# Tips: Beware of Micro-Optimizing at the Cost of Code Clarity

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

Micro-optimizing refers to making small modifications to code in an attempt to improve performance, often at the expense of making the code harder to read, understand, and maintain. While it's…

Read More

26/11/2024

Advanced C# Tips: Leverage Span for Safe Memory Access

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

Span<T> in C# is an innovative feature that revolutionizes how developers work with contiguous memory regions, like arrays or memory blocks. The Span is introduced in C# 7.2 and it…

Read More

29/10/2024

Advanced C# Tips: Prefer for Loop Over foreach with Arrays

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

In C#, when you want to go through all the items in an array one by one, you can use either a for loop or a foreach loop. Both will…

Read More

15/10/2024

Advanced C# Tips: Use readonly Modifier for Immutable Data

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

The readonly modifier in C# is a keyword applied to fields that should not change after the constructor for an object has completed. Using readonly indicates that the data is…

Read More

10/09/2024

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

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

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

03/09/2024

Advanced C# Tips: Avoid Excessive Inlining of Methods

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

Inlining methods is a technique where the compiler replaces a method call with the actual method body's code. While inlining can speed up your program by eliminating the overhead of…

Read More

27/08/2024

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

By Suleyman Cabir Ataman in Intermediate, Advanced, C#, Software Engineering 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

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