All blog articles by Sagar Pathak

Nothing is stopping your users from entering data that doesn’t make sense to your code. You desperately need quality validation. Today I’d like to show you a way to achieve it on the client side by evaluating some of the existing approaches. But first, you might be asking yourself if the client is really where validation should occur.

Why Do Client Side Validation?

To be clear, back-end validation should always be done, and protections on the database level like unique indexes should also be...

Read complete blog post

To start with, Annotations are an example of declarative programming in action. Rather than write out the procedural code to make something happen everywhere you need it, you write the code once and then declare (through an annotation) where you want that code to be run. You may not have to even write the code: It might be part of the framework the code runs inside of. It's a great way to handle crosscutting concerns (things that are needed in many places in the application but not in every...

Read complete blog post

C405b2ee053afe11c0b3fc4cbcb8ab97
Sagar Pathak

Before start to explain, I Know some of you might have greater experience about this word Proxy. what does this really means?

Let me explain it through simple example, In our school days when class teacher used to take class attendance and if we found some of our friend missing then we still used to hear from back "yes madam" even though the person called is missing in the class. That is nothing but a proxy attendance, It means answering on behalf of someone and you all know if the proxy...

Read complete blog post

C405b2ee053afe11c0b3fc4cbcb8ab97
Sagar Pathak

As we all know "Every program needs a memory and unfortunately which is finite in terms of its availability".....:)

Software must cope with memory usage, and there are two ways to manage it.

  • Manually
  • Automatically

Manual management are more prone to errors especially with exceptions and in asynchronous code. This is why modern managed environments (.NET, Java, Erlang, and many more) implement automatic memory management with garbage collection.

Lets see what is Garbage Collection in C#...

Read complete blog post