Comments

New Course: Unit Testing for C# Developers

I just published my unit testing course yesterday! There are limited early-bird discounts available until November 1st. Redeem yours if you want to master unit testing. Mosh Hi! My name is Mosh Hamedani. I’m a software engineer with two decades of experience and I’ve taught over three million people how to code or how to […]

Tags: ,
Comments

Developers who don’t write tests!

A lot of companies have been practicing unit testing for years, yet there are many developers who don’t write unit tests. Here are some of the excuses I hear often: We don’t have time to write tests! Unit tests are waste of time. They slow you down and decrease your productivity! I don’t know how […]

Tags: ,
Comments

Layered Architecture in ASP.NET Core Applications

One of the viewers of my YouTube channel asked me an interesting question. He mentioned in a typical layered architecture, he sees ASP.NET MVC building blocks (Controller, View, and Model) as part of the presentation layer. These days, however, a lot of modern applications are built with Angular/React on the client and ASP.NET Core (Web […]

Tags: , , , , ,
Comments

5 Tips for Junior C# Developers to Write Cleaner C# Code

Many students of my C# Basics course submit their code in the discussion area, and when I get a chance, I review their code and give them hints to improve their code. I’ve noticed quite a few common patterns in the code submitted by junior C# developers. In this post, I’m going to explore these […]

Tags: , ,
Comments

Why I don’t like IEntity interfaces

One comment that keeps popping up in regards to my YouTube video about repositories (Repository Pattern, Done Right) is why I don’t like IEntity interfaces. So, let’s see. The case for IEntity is to apply a constraint in the repository interfaces. I need to write another post about why you should avoid generic repositories. But […]

Tags: , , ,
Comments

Repositories or Command / Query Objects?

This is a follow up post to my YouTube video Repository Pattern, Done Right. If you haven’t seen this video, it’s best to watch it first, before continuing reading. There have been many interesting questions in the discussion area and I’ve replied to most (if not all) of them. One that has come up a few […]

Tags: , , , ,
Comments

Critical stuff that every junior C# developer must know

A common question I often get from my students is: Mosh, I just got my first junior level C# job. What advice do you have for me? What are some critical stuff I need to learn? So, whether you’re looking for your first junior C# job, or you just got one, this post will give […]

Tags: , ,
Comments

Top 3 Reads for C# Developers

I’ve had quite a few students of mine contacting me and asking: Mosh, apart from your video courses, what books should I read to become a better developer? If you want to become a kick-ass C# developer, you need to master the fundamentals. By fundamentals, I mean concepts that are always applicable. ASP.NET 5 is NOT one […]

Tags: , ,
Comments

C# 6 features that help you write cleaner code

There have been many improvements to C# 6 that simplify your code. Unlike the features introduced in previous versions of C# (e.g. generics, LINQ, async programming, etc), these features are not revolutionary. But they’ll help you write cleaner and less-cluttered code. In this post, I’ll delve into the details of these new features. Auto-property Initializers […]

Tags: ,
Comments

What text books tell you about inheritance in OOP is wrong

I received an email from one of my students asking for a design advice. He is working on an application used by a sports team manager, where they can create, edit and delete players, teams and coaches. So, the design that my student had in mind is something like this UML diagram: So, a SoccerPlayer is […]

Tags: , ,
Connect with Me
  • Categories
  • Popular Posts

    %d bloggers like this: