SIMPLE AND EASY MVC LIFE CYCLE EXPLANATION AND ITS BETTER PRACTICES:
The MVC stands for “Model-View-Controller” and describes
a architectural design pattern for web applications development. It is a
kind of implementation pattern for a multi-tier application and uses
basically the well-known three-tier-architecture in software design. Note:MVC is not specific to .NET. MVC architectural pattens is used with java,ruby on rails android framework ...I mean this pattern can be used with any most of the frameworks and .net provides you out of box templates for creating MVC Applications ASP.NET MVC is implementing that kind of application design for
ASP.NET web development. When creating an ASP.NET MVC application the
communication between server and client will be state-less again like other server technologies, there
is no session state saved in the servers responses. Fact is that asp.net web-form is such a architectural pattern which gives you option of session maintenance on server side because of which application performance results in degrade. Although it is possible to create web applications following the MVC
design pattern on your own or using the “classic” ASP.NET web
application template, ASP.NET MVC is the very strict way to enforce
following the MVC design pattern in your implementation. With ASP.NET
MVC 3 and its new view rendering engine Razor I’ll have a closer look at
MVC. Follow me on my first steps with ASP.NET MVC.
ASP.NET MVC 5 is the latest version of the
popular ASP.NET MVC technology that enables you to build dynamic
websites using the Model-View-Controller technology.
The ASP.NET MVC 5 Framework is the latest update to
Microsoft’s popular ASP.NET web platform. It provides an extensible,
high-quality programming model that allows you to build dynamic,
data-driven websites, focusing on a cleaner architecture and test-driven
development.
ASP.NET MVC 5 contains a number of improvements over previous
versions, including some new features like
Improved user experiences
Native
support for JavaScript libraries to build mufti-platform CSS and HTML5
enabled sites
This article focuses on basic and core functionality of MVC.
In this article, we will be taking an overview of some of the exciting fundamental features
LifeCycle
Attribute Routing
controller best practices
ASP.NET MVC In-Depth: The Life of an ASP.NET MVC Request
The purpose of this ARTICLE is to describe each step in the life of an ASP.NET MVC request from cradle to grave. If I don’t understand the page request life cycle, It is hard to understand MVC.
There are five main steps that happen when you make a request from an ASP.NET MVC website:
Step 1 – The RouteTable is Created
This first step happens only once when an ASP.NET application first starts. The RouteTable maps URLs to handlers.When application starts at first time, it registers one or more patterns to the Route Table to inform the routing system what to do with any requests that match these patterns An application has only one Route Table and this is configured in RouteConfig.cs of App_Start Folder and setup in the Global.asax file of the application as show below:-
After this The UrlRoutingModule intercepts every request and creates and executes the right handler which is MVCHandler.I think it is better to understand functionality of Asp.net Handler first if you feel confused about word handler.
or as developers point of view the difference between them is : one implements IHttpModule interface another implements IHttpHandler interface.
Module participates in the request processing of every request Handler is responsible for handling the request and producing the response for specific content types.
Step 2 – The MvcHandler Executes
It is the responsibility of MvcHandler class for generating the response for the ongoing request being processed. The MvcHandler class receives information about the ongoing request from the RequestContext passed to its constructor, in the implementation of the GetHttpHandler() method in the MvcRouteHandler class. The MvcHandler class implements following 3 interfaces : IHttpAsyncHandler IHttpHandler IRequiresSessionState.
MvcHandler’s ProcessRequest method’s first step would be get an instance of the Controller and the IControllerFactory using the ProcessRequestInit
method.
MvcHandler uses the Controller factory instance and tries to get a IController instance. If successful, the Execute method is called.
The controller determines which controller method to execute, builds a list of parameters, and executes the method.The IControllerFactory could be the default controller factory or a custom factory initiailized (set) during the Application_Start event, as shown below:
All controllers inherit from the Controller base class, which in turn inherits from the ControllerBase which implements the IController interface. When the MvcHandler calls the Execute method in ProcessRequest using the IController instance, it executes the Execute method in ControllerBase, which calls ExecuteCore which is implemented in Controller as in ControllerBase its an abstract method. ExecuteCore finds the appropriate action method and proceeds. Just for the kicks here is an extract for this method from the reflector.
Typically, a controller method calls RenderView() to render content back to the browser. The Controller.RenderView() method delegates its work to a particular ViewEngine DEPENDS which engine is configured.
Controller’s best practices
Delete the exiting all classes/controllers
Keep you Controller very think just for what is meant..No extra functionality definition in controller class .i mean Controller should be only responsible for:
Validating Input
Calling Model to prepare the view
Return the view or redirect to another action
Prefer to use ViewModel per view and Strongly ViewModel rather than ViewData.
Choosing view engine should be done with care. Default view engine is ASPX and if your application is just migration of ASP.NET Web-form then you can keep it as aspx view engine otherwise make sure you choose better one . there are lots of 3rd party views like spark.. which is more preferable because of its rich future in terms of markup control.
Use IOC (Dependency injection) to adhere best practice like loosely coupled system and easy Test driven development practice.
Decorate your Action Methods with Proper AcceptVerbs Attribute.ASP.NET MVC is much more vulnerable comparing to Web Forms. Make sure the action methods that modifies the data only accepts HttpVerbs.Post. Better is use HttpVerbs.Post for all data modification actions and HttpVerbs.Get for data reading actions
Decoratemost frequently used Action Methos with OutputCache attribute [AcceptVerbs(HttpVerbs.Get), OutputCache(CacheProfile = "EmployeeChart")] public ActionResult EmployeeChart(string empId Salary salary, int? page) { }
If you have been working around
Microsoft domain then you probably have been using Visual Studio. A really great
development environment for all Microsoft platforms like .NET, Windows, Mobile, Silver light, SharePoint etc .I personally don't feel like there is any competitor for this beautiful IDE. I simple love it. Well , i know other dark
side of VS is that it is paid. So, obviously we need to find something free
which can help us in development and productivity. An Integrated Development Environment is a
tool to assist the programmer in building applications or writing scripts. An IDE includes at least:
A graphical user interface.
It allows you to select files, set options, launch tasks.
A source code editor.
A compiler.
A link editor.
An integrated make tool. He sends commands to the compiler and link
editor with the source or object files as parameters.
A debugging tool.
The IDE can be dedicated to a programming language or be multi-languages. if
you are looking for free IDE here you see the list: which i have collected and
personally experienced most of them
NetBeans.
Java, PHP, C++ applications. Features a syntax checker, access to source
files appears only when needed and frees the screen otherwise. Maven
integrated for project management. It is well-suited for web apps.
Support for Git, CVS, SVN.
For Windows/Mac/Linux.
IntelliJ IDEA.
The Community Edition is free. It is distinguished by its default gray
background, allows to make applications in Java et HTML 5 for the
desktop or for Android in the CE version, and other languages in the pro
version. Good debugger, refactoring support.
For Windows/Mac/Linux.
Eclipse.
Written in Java, IDE to integrate same programming tools to a lot of
languages. You can add your own tools.
It is a difficult to understand and unappreciated software. Most
complain in particular to unstable plugins, the slowness, and difficulty
to access components. Its qualities are its support to SVN and CVS, the
wide range of languages supported.
Aptana Studio.
For Web Applications with HTML 5, PHP, Ruby. Deployment wizard and Git
support.
For Windows.
Light Table.
A sophisticated editor (based on CodeMirror) that integrates a HTML
renderer (Node-Webkit) and a sort of internal server. It is intended for
dynamic languages such as ClojureScript, JavaScript, Python, and can be
completed by plugins for other languages. It allows the evaluation of
code and connecting to a virtual user to test the code and modify it
while running.
The integration of the browser allows you to view the results of changes
without reloading the page which is ideal for a Node.js project.
KDevelop.
An IDE dedicated to C++ applications for the KDE environment.
For Linux.
CodeLite is an open source, free, cross platform IDE for the C/C++
programming languages which runs best on all major Platforms ( OSX, Windows
and Linux )
You can Download CodeLite
for the following OSs:
FreeBSD - altough we don't provide an installer for the FreeBSD
platform, you can get it from
here
Anjuta DevStudio
is a versatile software development studio featuring a number of advanced
programming facilities including project management, application wizard,
interactive debugger, source editor, version control, GUI designer, profiler and
many more tools. It focuses on providing simple and usable user interface, yet
powerful for efficient development.
It supports the following programming languages:
C
C++
Java
Javascript
Python
Vala
Codelobster PHP Edition streamlines and simplifies the PHP
development process. You don't need to keep in mind the names of functions,
arguments, tags or their attributes -- we've implemented all these for you with
autocomplete features for PHP, HTML, JavaScript and even CSS. And you can
always get necessary help information by pressing F1 or using the special Help
control.
An internal free PHP Debugger allows you to validate your code locally. It
automatically detects your current server settings and configures corresponding
files in order to let you use the debugger.
Nowadays most sites are developed using various CMS's and frameworks. For their
usage we propose our more advanced
Professional
version.
C-Free
is a professional C/C++ integrated development environment (IDE) that
support multi-compilers. Use of this software, user can edit, build, run
and debug programs freely.
With C/C++ source parser included, although C-Free is a lightweight
C/C++ development tool, it has powerful features to let you make use of
it in your project. Now support other compilers besides
MinGW as following:
MinGW 2.95/3.x/4.x/5.0
Cygwin
Borland C++ Compiler
Microsoft C++ Compiler
Intel C++ Compiler
Lcc-Win32
Open Watcom C/C++
Digital Mars C/C++
Ch Interpreter
more compilers will be supported in the
future version. (more...)
Quincy is freeware open-source. It is
a simple programming environment for C/C++ on Windows. It contains an editor, a
compiler, a debugger, and graphics and GUI toolkits.
Because of it's simple interface, Quincy is ideal for learning C or C++
programming.
With integrated support for FLTK and the FLUID GUI builder,
Quincy is also a rapid application development (RAD) tool for Windows GUI
programs.
If you are a
C or C++ Programmer, and looking for a great IDE (Integrated Development
Environment) for running, testing and building some fine codes, with great ease,
then you are at the right place. IDE's have evolved over time and now we have
many of them with features like syntax highlighting, code completion, debugging
support etc.
So here we have 8 Amazing and Free Integrated Development Environment
Softwares, best suited for C and C++ programmers.
BloodShed Dev-C++:Blood shed Dev-C++ is a fully featured IDE for C/C++ programming languages.
It uses Mingw port of GCC (GNU Compiler Collection) as it's compiler.
Dev-C++ can also be used in combination with Cygwin or any other GCC based
compiler.Support Multi-compilers
Code Blocks is a free C++ IDE built to meet the most demanding needs of its
users. It is designed to be very extensible and fully configurable with a
consistent look, feel and operation across platforms.
Suzuki Fiero was the first 150cc 4-Stroke bike launched in India. The
Bike was the best 150c bikes of that time. Even when the CBZ powered
with an 156cc, it can produce an output power of only 12.8bhp.
Even today it stands as a classic bike in the hearts of Indians.
After fiero , Suzuki lost its market in India and have not delivered any bike vechicle except some minor scooter versions. Now, after 15 years , suzuki has really come up with great bike known as " GIXXY" .Overall, the Gixxer is quite an impressive bike . With the Gixxer,
Suzuki appears to have taken cues from the competition, and consolidatedthem
all together into one impressive package.(image stolen from suzuki international web)
SETUP RPM INDICATOR
Suzuki is very know international player for their rock solid
engines and gearboxes. The Gixxer 155 proudly carries down this lineage.
Everything about the engine and the gearbox of the Suzuki Gixxer 155 is
slick and smooth and stormy. The 5 speed gear box has a very cocky and precise
feel to it. Go for one test drive and see how engine performs.you will see how quick it will reach 100 kmph in fourth gear at 8k RPM
in 15.45 seconds. It will do a comfortable 100 kmph in 5th gear at 70500
RPM. The best feature
of this engine though is the fact that how incredibly refined it is.
Even at its limit there are absolutely no vibrations.
The best part about this
new Suzuki is the way it handles. The chassis, which Suzuki says has
been designed keeping in mind the design pattern of the Hayabusaand the
GSX-R1000, is just AWESOME.
Agree, Bajaj /TVS and Yamaha loyalists may proclaim that the 150cc Pulsar,Apache and FZ has already good enough market
to put a smile on face, but the Gixxer is neat,lighter, and has a
marginally higher power output which definitely shows very bright tomorrow for GIXXER
Suzuki’s all-new 155cc motor (GIXXER)– that incorporates the company’s new-found
Suzuki Eco Performance (SEP) technology – which is mated to a five-speed
gearbox. With 14.3bhp and 14Nm on tap, the Suzuki has the highest power
and torque figures as far as the higher end of the 150cc motorcycling
spectrum in India is concerned. The new engine features all sorts of new
techno-wizardry to reduce mechanical loss, and maximize combustion,
like an inverted triangle piston skirt, among other MotoGP-inspired
bits. The result, is that the motor is extremely smooth in its method of
power delivery.just buy it i promise it is one more antique piece from suzuki which will live for decades
Hope this will help you in choosing right bike.
MY HONEST FEEDBACK AND OBSERVATION ABOUT GIXXER155 ABOUT COMPLETING 6000 KM.
1)Build quality and paint work is awesome from the suzuki except on some back portions
2)Its very much fun to handle.Give this bike to 6 years old kid,i am sure he will ride it with ease
3)Smooth engine along with great pulling ability
4)Almost VOID vibrations even at higher RPMS. I Have enjoyed highest speed of 114 .Cocky gixxer builds up speed very easily and deceptively. Within no time, I am
cruising at 80-90 kmph with void vibrations at all. It's only beyond 100
kmph that I feel minor vibrations in the foot pegs.
5)TWIN EXHAUST ARE Beautiful but The exhaust pipe chrome metal cover is loosely fitted
6)You can easily through away any bike upto 200cc from any other makers like pulsar,Yamaha TVs.. braking is very good no rear locks even under hard braking, MR F tyres provides excellent grip levels on this bike
Suzuki Motorcycles India Limited unveiled their new flagship commuter
bike, Suzuki Gixxer in Mumbai on January 27, 2014. The company made it
official and the bike was on display at the Delhi Auto Expo in February,
2014. It was unveiled by Suzuki's brand ambassador Salman Khan. It
is expected to be launched in a few days and will compete with the likes
of Honda CB Trigger, Hero Xtreme and the Yamaha FZ/FZS. The company
said that this 150cc bike will give an exceptional riding experience and
has best fuel economy in the class.
Click here to know more about Suzuki Gixxer. Quick Facts about Yamaha FZS Version 2.0 Fi
149cc, air-cooled, 4-stroke, BLUE CORE, SOHC, single-cylinder, fuel injected
Maximum power of 12.9 BHP @ 8000 rpm
12.8 NM of maximum torque at 6000 rpm
Equipped with a 267mm front disc and 130mm rear drum brake
The suspension setup is telescopic forks at front and swing arm monoshock at rear
The kerb weight of the bike is 132 kgs and the fuel tank capacity is 12 litres
Yamaha FZS Version 2.0 Fi is available in four shades: Moon Walk White, Astral Blue, Molten Orange and Cyber Green
Compare TOP Bikes
Design and Style
Suzuki Gixxer has got a sporty resemblance due to its stylish and
eye-catching design, engine in black, a single seat, black rear view
mirrors on a nicely positioned handlebar, comfy footrests, a well
sculpted fuel tank, a stylish silencer, kick as well as electric start,
turn indicators at front and rear, halogen headlamp at front, bright
tail light, rear grab rail, 17-inch cast alloy wheels with wide tubeless
tires. The bike has a light and stiff frame with the engine having a
SEP (Suzuki Eco Performance) technology to provide a strong acceleration
and good torque.
Instrument Panel
The Suzuki Gixxer features a fully digital instrument console that
comprises of a fuel gauge, speedometer, tachometer and dual trip meters
along with low fuel and low battery indicators. The amber colored light
is used in LCD which gives it a futuristic look and provides better
illumination.
Dimensions and Fuel Tank Capacity
The dimension figures of Gixxer include a length of 2050mm, width of
785mm and height of 1030mm along with a kerb weight of 135Kgs. It also
features a sturdy fuel tank with a capacity of 12-litres which gives you
a decent range.
Engine and Gearbox
Suzuki Gixxer is powered by a 154.9cc, 4-stroke, single cylinder,
air-cooled, two-valve, SOHC, carburettor-fed petrol engine that
generates an impressive power of 13.94 bhp at 8000 rpm and a peak torque
of 14 Nm at 6000 rpm. The engine is mated to a 5-speed transmission and
a multi-plate clutch which works in a 1-down and 4-up shift pattern. It
has a bore into stroke ratio of 56.0 mm and 62.9 mm respectively.
Brakes and Suspension
The motorcycle has got 240 mm disc brakes at its front and 130 mm
drum brakes at the rear end which works efficiently and smoothly. The
suspension duties are handled by telescopic forks at the front while
swing-arm with mono-shock absorbers are placed at the rear.
Ride and Handling
It is a great fun to ride this amazing motorcycle. The wheelbase of
1330mm and ground clearance of 160 mm protects the bike from damages.
The six-spoke alloys are standard to this commuter with a 100/80-17 inch
tubeless tyre at the front and a 140/60-17 inch tubeless tyre at the
rear. The bike is stable around edges and can easily pave through city
traffic.
Shades and Expected Price
The Suzuki Gixxer is dipped in five attractive shades which are Pearl
Mirage White, Metallic Triton Blue, Glass Sparkle Black, Candy Antares
Red and Metallic Oort Gray. The expected ex-showroom, Delhi price of
Suzuki Gixxer is INR 73000, which may vary.
Suzuki Gixxer SF lauched:
the premium looking Suzuki Gixxer SF is a fully faired 155cc motorcycle which
has aerodynamic full sport fairing. Suzuki Gixxer SF has been developed in the
same wind-tunnel where the legendary Hayabusa, GSX-R and MotoGP machines are
developed. The fairing has been designed to give maximum wind protection to the
rider, reducing turbulence and drag, thereby delivering great aerodynamic
efficiency.
Every feature of the new Gixxer SF is designed to give a sporty and premium
look - from its futuristic-looking aluminum exhaust end cover, new clear lens
indicators and pinstripe on the wheels gives it a sharp, edgy look, guaranteed
to appeal to all motorcycle lovers!
The ultra-light weight and punchy engine under the sleek fairing of the
Gixxer SF has been powered with cutting edge SEP technology which enables the
Gixxer SF to deliver great power without compromising fuel economy.
Coupled with a five-speed gearbox provides exceptional running performance
with a broad low-end torque and dynamic mid-range power for strong acceleration
which gives riders a thrilling and superb ride!
Hope this will help you in choosing right bike.
Honda Activa 125 DLX vs Vespa S vs Suzuki Swish vs Mahindra Rodeo RZ
FINALLY SUZUKI STRIKES HARD.. images stollen from suzuki. thanks to suzuki
Things to Consider Before Buying a Two Wheeler
Brand
There are number of two wheeler manufacturers in India
such as Honda, Suzuki,TVS,Hero and Mahindra. Honda and TVS are two most
trust able brands in Indian market, The brand value also help in
re-sell of bike.
Budget
Very important factor to be consider, You can buy a good two wheeler
within a budget of Rs.60,000. Ready for little more to pay for new
launched bikes with extra features and colors.
Weight
Women should really need to take care of this point, now a day’s
there are low weight bikes are available but its extremely important to check the weight of the two wheelers so you can ride comfortably.
Storage
Helmet is now getting compulsory, So one should check the storge for
the same and so many girls stuffs too. Also it should have enough space
for Sunday shopping items.
Mileage
A good two wheeler should give you a mileage of 35 to 40 kms per
litre, Do not get confused with Highway mileage consider the city
traffic and small roads.
Height
I find this another important factor after weight, Most of the girls
are at shorter side and two wheeler should not be too high else it will
uncomfortable for you.
Auto Start
Kick-starting a two wheeler is not easy for every woman, through its
very simple but Check for Auto Start and battery durability.
Durablility
Check out the review of the bike, it doesn’t make sense to make a
hasty decision and settle for something that simply looks good and
offers more mileage.
Style & Colour
New Style and Colour are the fist choice of girls,Pink, while,black
and blue are the very popular colors, cute but should be durable.
Service Center
The location of your service center should be near by your area,
during any emergencies you should not land up traveling long distances
for repairs and services.
Low Maintenance
Servicing and Maintenance of two wheeler is very important, It makes
traveling very convenient because of low running and maintenance costs
mean you can get many miles of drive.
Availability of Spare Parts
All the newly launched two wheelers company does not have their spare
parts easily available in the market, Consider this points in your list
for future.
Resell Value
Resell price is totally depends upon the Brand, Year and current condition of bike, A branded bike could give you better deal as compare to other two wheelers.
Latest Motorcycles News
NEW SUZUKI GSX-S1000 RANGE HEADLINES COLOGNE SHOW
Suzuki pulled the wraps off its new GSX-S1000 and GSX-S1000F models at
the opening of this year's International Motorcycle Show in Cologne,
Germany, as the Japanese manufacturer unveiled several new models and
updates that will form part of its 2015 model range. GSX-S1000 ABS
The product concept behind Suzuki's new super-naked was to provide the
spirit of GSX-R in a naked streetbike chassis. Designed for nimble and
agile handling, the GSX-S1000 features an all-new frame and utilises
engine design and characteristics from the iconic GSX-R1000 K5, famed
for its low-down torque and mid-range power.
With knowhow from
MotoGP development, the GSX-S1000 benefits from a traction control
system boasting three-modes as well as the option to switch the system
off completely. ABS is also available, with the bike expected in
dealership showrooms in late spring next year. GSX-S1000F ABS
Also unveiled as part of Suzuki's new GSX-S range, the F variant
features all of the benefits afforded to its naked sibling, including an
all-new frame, traction control and ABS, but wrapped it in a newly
designed fairing.
Designed with the same concept in mind, the
GSX-S1000F shares the ergonomics and riding position of the naked
version, with both aimed at providing a sporty ride on the road, but
leaving customers with the choice of added weather protection or sheer
naked aggression. It too, is expected in late spring. Address 110
The new Address 110 is expected to arrive in early spring next year,
and brings with it exceptional fuel economy and value. Boasting 139MPG*
and a 5.2 litre fuel tank, the Address 110 is set to become the
commuting scooter of choice.
Practical touches include
under-seat storage in excess of 20 litres that will comfortably take a
full face helmet and riding gear, and rear handbrake for use when
parked. The Address benefits from a new fuel injection system and
reduced overall weight, which comes from sporty, redesigned bodywork and
cast aluminium, hollow-core wheels. V-Strom 650XT ABS
Based on the already popular V-Strom 650, which has been the top
selling dual-purpose machine in the 650-800cc class in the last decade,
the V-Strom 650XT comes with more adventure as standard.
The new
V-Strom 650XT takes design cues from the DR Big, the first dual-purpose
machine to feature the now standard 'beak' design synonymous with
models in the adventure sector. A new beak blends smoothly into the
existing front bodywork, with air ducts that channel airflow to the
radiator.
Newly designed, lightweight, wire-spoked aluminium
wheels aid in the adventure-styling of the new V-Strom 650XT, and shock
absorption performance is increased on unpaved roads. Its arrival is
anticipated as early as December this year. Bandit 1250S ABS
Bandit is back for 2015, with the iconic machine on sale in the UK
early next year. With the original Bandit models developing a cult
following, the latest incarnation uses the newest version of Suzuki's
1255cc inline four-cylinder engine and gets a styling update to bring it
into 2015.
After repeated wind tunnel testing, the redesigned
fairings, with new radiator shrouds, offer improved aerodynamics, with
venting just below the headlights, as well as better wind and weather
protection for both rider and pillion. Inazuma 250F
The A2-licence friendly and ideal commuter, comes clad with a newly
designed fairing for 2015, with the Inazuma 250F unveiled at Intermot.
Adding extra wind protection to the popular city-wise machine, which
boasts an impressive 85MPG figure, cost conscious commuters can now
travel even further in comfort. The new faired Inazuma will be on sale
in early 2015, alongside the existing naked machine.
GSX-R1000 ABS
The iconic GSX-R1000, which took the win at the prestigious 24 hours of
Le Mans earlier this year in the hands of the Suzuki Endurance Racing
Team, now comes with ABS as standard for 2015.
As the Japanese
brand celebrates its return to the blue-ribband class of motorcycle
racing next year, the GSX-R1000 will also be available in the replica
colours of Suzuki's new MotoGP racer, the GSX-RR.
*Data
resulting from tests made by Suzuki in compliance with WMTC. These tests
were conducted by a single pilot with no additional optional equipment.
Fuel consumption may vary depending on your riding style, how you
maintain your vehicle, weather, road conditions, tyre pressure, the
presence of accessories, the load, the weight of the crew and many other
parameters