Five required tools for MVC developers

Source: Internet
Author: User
Tags website performance

1. Chirpy Zippy: Chirpy Zippy is a Visual Studio plug-in that can be used together to narrow down and verify JavaScript, style sheets, and dot files. It can also automatically update T4MVC and other T4 templates.

In the past, before deploying JavaScript scripts and CSS files to Web servers, I used to use compression tools for compression and re-deployment. After Chirpy was installed, your scripts and CSS files will be automatically compressed based on their names. For example, suppose you have a file named myscript. to Compress js footfall files, you only need to rename them as myscript. yui. js, it will call the YUI compression program to automatically compress. The compressed file is displayed as a sub-project in Solution Explorer. You can continue to view and debug uncompressed scripts.

2. t4MVC: I have written many blog posts about T4MVC, but it is worth mentioning that it is ASP. A T4 template for the. net mvc application, which simplifies the operations for creating controllers, behaviors, and views, and makes the maintainability of the MVC Code better.

3. MVC Contrib: T4MVC is a small part of the MVC Contrib library. The MVC Contrib library contains ASP. net mvc development tools, I used Grid HTML Helper in a recent private project, but MVC Contrib contains many functions and libraries, you need to discover them one by one in daily development.

4. ASP. NET Genie and image Optimization Framework ASP. NET Sprite and Image Optimization Framework): the best way to improve website performance is to reduce the number of HTTP requests required for rendering a page. One way to reduce the number of requests is to use CSS genie or embedded images. For example, if your website has a toolbar containing 12 32x32 pixel icons, at least 12 HTTP requests will be generated when the page is loaded, that is, each small icon will generate an HTTP request, the CSS genie concatenates all the icons and then uses CSS to define the boundary of each image. This reduces the number of requests to one.

Unfortunately, the process of creating a genie is time-consuming and cumbersome. Basically, you need to merge all the images and then declare the X and Y coordinates of each image in the style sheet, if the process of merging images and generating CSS can be automated, there will be corresponding products as needed, ASP. NET Genie and image Optimization Framework came into being.

5. ELMAH: ELMAH is an excellent MVC application logging tool. If you haven't used it yet, we strongly recommend that you try it, however, it is indeed very powerful. Here is a quick list for reference:
Records almost all unhandled exceptions;
View All logs remotely on the webpage;
View Details of any single log remotely on the webpage;
Even if customErrors mode is disabled, you can view ASP. NET's original yellow dead-end screen due to exceptions;
An email notification is automatically sent when an error occurs;
RSS seeds provide the last 15 error logs;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.