DeveloperBreeze

C# Development Tutorials, Guides & Insights

Unlock 7+ expert-curated c# tutorials, real-world code snippets, and modern dev strategies. From fundamentals to advanced topics, boost your c# skills on DeveloperBreeze.

Avoiding Memory Leaks in C++ Without Smart Pointers

Tutorial April 11, 2025

C++ developers often face memory management headaches, especially when working on legacy systems that don’t use C++11 or newer. Smart pointers like std::unique_ptr and std::shared_ptr are powerful, but what if you’re stuck with raw pointers?

In this tutorial, you'll learn:

Deep Copy in C++: How to Avoid Shallow Copy Pitfalls

Tutorial April 11, 2025

In C++11 and newer, also consider:

  • Move Constructor
  • Move Assignment Operator

Implementing a Domain-Specific Language (DSL) with LLVM and C++

Tutorial February 12, 2025

We’ll implement a recursive-descent parser that constructs an Abstract Syntax Tree (AST) from tokens. Our grammar is defined with standard operator precedence:

expression → term ((‘+’ | ‘-’) term)*
term       → factor ((‘*’ | ‘/’) factor)*
factor     → Number | ‘(’ expression ‘)’

Developing a Real-Time Multiplayer Game with Unity and C#

Tutorial August 14, 2024
csharp

   using UnityEngine;
   using Unity.Netcode;

   public class GameManager : NetworkBehaviour
   {
       public void StartGame()
       {
           // Code to initialize the game
       }

       public void EndGame()
       {
           // Code to handle game over state
       }

       // Example of starting a game when all players are ready
       public void CheckPlayersReady()
       {
           if (NetworkManager.Singleton.ConnectedClients.Count >= 2)
           {
               StartGame();
           }
       }
   }
  • Create a simple UI that displays player statuses, such as health or scores.
  • Use NetworkVariable to synchronize data like health or scores:

Unity Inventory System using Scriptable Objects

Code August 12, 2024
csharp

No preview available for this content.