Summary of the 2014 Project (ii) Beware of excessive design do not complicate the use of sledgehammer for display technology.

Source: Internet
Author: User

 The last project of 14 undoubtedly reaped huge gains, many of the things that I have mastered have been tested, and the problems exposed to me have taught me more, especially the misunderstanding of excessive design , in order to show the technology what is complex with what , Now think about it, it's cool back. This kind of experience, the novice like me estimates very easy to commit.

Schema of the Start

At the beginning of the design, in order to unify the so-called external interface, to solve the coupling problem, to prevent the action layer and service layer many-to-many complex relationship, using façade (appearance mode) to the corresponding module of the multiple service to do the next light package, imagine the hierarchical relationship is the left, To the left to the right, how to look at the right side of the more pleasing, so add the façade layer.

But in fact, the current project relationship is like this

Completely not so complicated, why add facade layer, this is I suddenly want to ask myself, it has this necessary, and this project also no need to expand, no need to consider the complexity of the expansion of the business, kill Chicken Yan with sledgehammer.

Design too many layers, make a Hello world, all have to come five or six files, the project will not go on.

In fact, the idea of agile development is the answer, simple, the simplest solution is the best solution, enough on the line, in a refactoring to improve the level of architecture.

According to this idea, I put the bottom frame selection also changed, a start with hibernate, too inflexible, change mybatis, configuration also a lot of, and finally all do not use, directly with their previous write a copy of the persistent framework of hibernate durable, using the Convention better than the configuration, Full 0 configuration, even annotations are not required, and meet current requirements.

The database is also not Oracle, previously because Oracle used much, used to do everything with Oracle, in fact, it is not necessary, Oracle is too heavy, MySQL is much smaller, enough to meet the demand.

This also reminds me of the students including me on the resume, the project described so many tall on the technology, is a simple thing, have to show their technical level, what complex with what, a ask instead of what do not know, this is loaded x Ah, I began to have this idea, learn what, a brain to use up, Instead, they strayed astray.

To do the technology, or to seek truth from the good.

Reference

http://blog.csdn.net/jakelong/article/details/18793043

Summary of the 2014 Project (ii) Beware of excessive design do not complicate the use of sledgehammer for display technology.

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.