Source: Nanshan Instant Messaging Website Front-End There are a few parts that I think are important.
Nanshan Instant Messaging There are several parts of the front end of the site that I find very important:
1. Elegant Text Tips
2. Reasonable page design
3. Appropriate scripting effects
Enter this website, let a person have a very comfortable feeling. And on the basis of comfort has taken the attention of the special effects, and then have intimate tips, I believe it will certainly give visitors a unique impression, let them remember this site. , even if they don't get the information they want.
CSS aspect:
With CSS3 's strong attack, the next page effects will be on the CSS3 side, although browsers that do not support CSS3 will remain for some time, but supporting CSS3 will be the next trend. So now do the site will have to do incremental enhancement of the effect, to their own site plus CSS3, so that viewers before the bright, give them a tall feeling. Now also very fashionable a technology called response Web site, according to different widths show different styles, increase experience, is a good way, but I personally feel is based on the media query in many sets of CSS, realize the cost is very large. Oocss is a noun I've heard a few days ago, and now I'm using it to extract the generic part, but in this way, I think it's very difficult to implement a responsive web site. To learn CSS3 will be very helpful to the development of the future B/s architecture.
JavaScript aspect:
Now the site is not casually a few scripts can be sent away, the responsibility of the script is getting bigger. MVC, MVVM, these fashionable patterns, are now in the script development. The advent of the AMD specification Requirejs is to help us modularize development. The need for a Web site for scripting is growing, though CSS3 will replace some of the functionality of the script.
Unit Test aspects:
Unit test is a good thing, PHP has a phpunit,javascript in the Jasmine. The quality of the software is required for these test points to be guaranteed. I am now in the development of PHP, you can use unit testing place, definitely write one. The advantage of writing unit tests in PHP is to determine in advance whether the function is correct, verify the unknown place, a large number of unit tests can guarantee the quality of the software, convenient for testers is also convenient for themselves. I also write unit tests when developing scripts, Jasmine is a good thing to help me test some small function points to ensure that JS can be accurately passed. Unit Test There is a function can be set to test the scene, but the amount of work is too large, I basically do not have time to do this, many times have to do it manually, so that every time a function to change, knowing that there is no bottom, many times will be good to change the wrong. Sad ah ...