Do you REALLY know what SOLID principles means? Think again! (#3: Exclusive Truth about Liskov Substitution Principle)

Liskov Substitution Principle

Liskov Substitution Formal definition of Liskov substitution principle is –Let φ(x) be a property provable about objects x of type T. Then φ(y) should also be true for objects y of type S where S is a sub-type of T. Or we can say – If class A is a sub-type of class B, then … Read more

Do you REALLY know what SOLID principles means? (#2: Exclusive Truth about Open Closed Principle)

open closed principle

Open for Extension, Closed for Modification The Open Closed Principle is a popular software design principle that states that classes should be open for extension, but closed for modification. This means that we should be able to add new functionality to a class without modifying the existing code for that class. The reason for this … Read more

Do you REALLY know what SOLID means? (#1: Exclusive Truth about Single Responsibility Principle)

Single Responsibility Principle

Do one thing and do it well!Single Responsibility Principle – This principle states that a class should only have one responsibility. Furthermore, it should only have one reason to change. SRP, like most principles out there, can be over-applied. If we create a new class for incrementing integers, then yeah, that may be a single … Read more

A Simple New Guide To ASP.NET routing – let’s redirect!

redirect

Redirect relates to the routing In ASP.NET. There are two different ways to routing; or changing the current requests endpoint:Rewrite the current URL andRedirect to an external URL.These two tasks are similar but yet different in their execution. Routing in ASP.Net Routing in ASP.NET works by mapping incoming URL requests to specific controller actions. When … Read more

Unlock JS: Powerful REST and SPREAD Magic You Need to Know

three dots

In JavaScript, the rest operator (also called the spread operator) allows us to represent an indefinite number of elements as an array. It’s a helpful tool that can make our code more concise and easier to read. Rest and Spread is quintessential for JS.Here’s an example of how the rest operator works: In this example, … Read more