Juan Alberto España GarciainDotnetsafer·18 hours ago5 Bad Practices That Can Make Your C# Code Messy — And How to Avoid ThemVery common but rarely avoided. These bad practices can cause errors in the code and make it difficult to understand. — How do you know if you’re following good practices when programming in C#? And how can you avoid the bad practices that can make your code messy and harder to manage? …Csharp4 min read
Anthony Trad·1 day agoWhy you shouldn’t use MediatR in .NETBending the Clean Architecture Principles — Introduction So you’re writing code using .NET, and you surely follow the Clean Architecture and its layered abstractions. Apparently and even though the concept was introduced long ago, this is getting very trendy now. One of those is the famous MediatR library. Which is typically used to separate your application’s logic…C Sharp Programming4 min read
Vixian Phimmasone·8 hours agoC# Properties In UnityWhat are Properties? Properties are variables that posses additional functionality beyond storing data. Properties can explicitly be written to or read from, can contain conditional statements, and perform function calls. the structure of a property: Public int PropExample { } being the property itself. …Unity Game Development2 min read
Manuel Cabacungan·1 day ago2D Games Framework: ThrustersObjectives: Move the player at an increased rate when the “Left Shift” key is pressed down Reset back to normal speed when the “Left Shift” key is released Open the Player.cs script. In the list of variables that we declare before the Start() method, we will add a few new…Unity2 min read
Nivduyev·16 hours agoC# Card DeckHow to make a deck of cards and draw cards from it. Firstly you need to add lists to your project, You can do that by adding: using System.Collections.Generic; To the top of the page. Now add two lists, the first representing the card’s number and the second representing the…Cards2 min read
Tolgahan Öztürk·5 hours agoKatmanlı Mimariye Giriş-8API (Product Controller) API tarafımızda ki Controller klasörümüz den ProductsController adında bir class tanımlıyoruz.Net Core2 min read
Jack Leavey·22 hours agoLet’s Get Moving — Movement in UnityIn this example, I will be creating a 2D top down shooter style game akin to Galaga or Space Invaders. The first step will be giving the player control of their character. During this time, I will be using placeholder geometric shapes. The player will consist of a cube…Unity3 min read
Jack Leavey·1 day agoEditing your Editor — Improve your efficiency!Unity’s default layout leaves some things to be desired as it does not allow the most seamless transitioning between windows you will be actively using during routine development sessions. While it is possible to work inside this setup, it is not ideal, and it is easy to change it up! …Unity2 min read
Rikam PalkarinBetter Programming·3 days agoCompile-Time Polymorphism in C#Object oriented programming is a rabbit hole where polymorphism is just another thread in the hole, let’s see how deep can it go. — This article will take you on a journey to unravel the mystery of compile time polymorphism . Plus in C# we have just the right material to make it worse, with method overloading and overriding, we also have the concept of method hiding, which makes the whole idea of polymorphism…Programming7 min read
Sami Dinani·2 days agoAggregation vs Composition vs Association C#The difference between aggregation and composition is pretty fuzzy and AFAIK relates to the logical existence of the “child” objects after the container is destroyed. Hence, in the case of aggregation the objects inside the container can still exist after the container object is destroyed, while in the case of…C Sharp Programming2 min read