Clean Code 101: Error Handling

Error handling is a balancing act. Too much and unnecessary errors will drive you insane. Too little and you have a terrible user experience. When things go wrong we are responsible for making sure that our code works. Use Exceptions Rather Than Return Codes Exceptions are new in the world…

read more

Clean Code 101: Functions

Computers can do 2 things: store data and do things with data. Functions are what we do and describe actions we take with the data we already have (or want to create). Consider this code: Can you figure out what this function is trying to do? Probably not. This is…

read more

Interfaces Explained Simply

Understanding what interfaces are and why we use them can be a real issue when first starting to code. The real reason we use interfaces is because (like any other programming concept) we are trying to stop duplication. Interfaces are way better at stopping duplication compared to inheritance; hence why…

read more

EF Core “Underneath The Hood”

Getting up and running with EF Core is easy, but it often pays dividends to understand how underlying technologies work. My aim is to provide a solid mental model of what’s going on when you actual access the database. Modeling When we first start programming, rarely do we ever start…

read more

Application DbContext Explained Simply

Arguably the most important part of Entity Framework is the DbContext. It’s basically a giant object you create with methods to get things out of a database. Another important aspect of the Application DbContext is that it configures things like the database address, tables, and event advanced relationships for the…

read more