Skip to main content

Posts

MVC - Introduction

What is MVC? Model-View-Controller (MVC) has been an important architectural pattern in computer science for many years.It was originally named Thing-Model-View-Editor in 1979, it was later simplifi ed to Model-View-Controller.Although originally developed for desktop computing, model–view–controller has been widely adopted as an architecture for World Wide Web applications in major programming languages. Difference between MVC, MVP and MVVM MVC The input is directed at the Controller first, not the view. That input might be coming from a user interacting with a page, but it could also be from simply entering a specific url into a browser. In either case, its a Controller that is interfaced with to kick off some functionality. There is a many-to-one relationship between the Controller and the View. That’s because a single controller may select different views to be rendered based on the operation being executed. Note the one way arrow from Controller to View. This ...
Recent posts

C-Decision Making

What is decision? Decision is certain actions which we take based on certain conditions. If it is raining outside we would not go to play. Similarly in C there are certain conditions known as decision making statements based on which it will perform some actions. Why do we need decision making statement? Many a time we want  a set of instructions to be executed under one condition and an entirely different set of conditions under another conditions and this is why we need decision making statements in C. In C decision control statements can be done using: If statement If-else statement By using Logical operators If Statement: Syntax: if(this condition is true)               execute this lines; The if keyword tells the compiler that if the conditions inside the brackets turns out to be true then the code under, will be executed. One may ask what are the conditions that has to be written inside the brackets and how ...

C - Overview

What is C? It is a programming language developed at AT & T’s Bell Laboratories of USA in 1972. It is designed and written by Dennis Ritchie. C is a general-purpose language which has been closely associated with the UNIX operating system for which it was developed - since the system and most of the programs that run it are written in C. The evolution of C took place in the following way: Why should we use C? 1.C language is a building block for many other currently known languages. 2.There are only 32 keywords in ANSI C and its strength lies in its built-in functions. Several standard functions are available which can be used for developing programs. 3.C language is a structured programming language. This makes user to think of a problem in terms of function modules or blocks. Collection of these modules makes a complete program. This modular structure makes program debugging, testing and maintenance easier. What is ANSI C? 1.ANSI C, ISO...

C# - Decision Making

  <<PreviousPage     NextPage>> Decision Making If Else Statement If Else statement is used for decision making in c# . In the below example we will see how we can use if else statement in C# to great effect.   Nested If Else Statement We can improve upon the above example by adding nest if else statement. Nested if else statement helps to add extra if else block with in an if or else block. Switch Statement In place where we need multiple if else statements to satisfy a criteria we can add switch statement instead of if else statement.  We can create an application which would answer our question and let us know about the Date and Time. This will be a small AI sort of idea which would recognize your command and perform accordingly.  Code -    Console.WriteLine("................Welcome to Mini AI................");            str...