JavaScript – Write less not use less.

Whether it is Angular or knockout or any other client side library, in all my training I always make one statement. “Write less JavaScript. Write less doesn’t mean use less”. Let me explain it a little detail. Unlike other Programming languages, JavaScript is not a compiled language hence it is very important how much code

Read More

What is ViewModel in MVC?

People usually get scared and confused when they hear the word View Model in MVC. View Model is a hidden layer in ASP.NET MVC applications. View Model is not a part of MVC. It’s something brought up by community for maintaining SOC. SOC –Separation of concerns – It means everyone will do only that which

Read More

Why Microsoft has partial classes and Java does not?

In this article we have explained Why Microsoft has partial classes and Java does not have it and how new era of RAD (Rapid application development) and visual programming started. The secret success(it’s not a secret anymore)of Microsoft was GUI (Graphical User interfaces). In case you are an old guy like me you would remember

Read More

Understanding TempData in detail

What is TempData? Tempdata let us maintain data within single request cycle Example: publicActionResult M1() { TempData[“a”] = “Value”; string s = TempData[“a”].ToString(); returnRedirectToAction(“M2”); } publicActionResult M2() { string s = TempData[“a”].ToString(); // Data will be available returnRedirectToAction(“M3”); } publicActionResult M3() { string s = TempData[“a”].ToString(); // Data will be available returnview (“Some View”); //

Read More

Why during interviews people ask about “Coding guidelines”?

Many times during interviews we come across a question “Tell me something about Coding guidelines you have been following”. What people answer for these questions? We put some prefix before naming controls like tx,lbl etc. Example: txtCustomerName. For naming variables we follow some guidelines like PrefixAccessModifierVariableName. Example intPriCustomerNo. Blah, blah, blah etc.   Do you really

Read More

Tabs in the SSAS cube designer

What We will learn? While creating cube using SQL server data tools or Business intelligence development studio we came across many tabs in the designer window. Let’s understand each one of the tab in short. 1. Cube structure a. Shows the current structure of the cube. Shows the available dimensions, Facts and relationships between them

Read More