"Self-written framework 8": strategically advantageous position, concept first

Source: Internet
Author: User

"Historical records • Emperor Chronicles": "Convenient terrain, the following soldiers in the princes, pedagogical gardening in the high house built Hillhouse Water also. "The word" strategically advantageous position "is used here. It means pouring water from the top of the bottle. A metaphor for a commanding position, not a deterrent. Now refers to the grasp of the whole thing, understand thoroughly. This allusion in Han Gaozulibon to kill hero Han, doctor Tian Ken advised to "His Majesty firmly control the Three Qin (Guanzhong), your Majesty use this male insurance topography, to control, driving imperial princes, such as from the high roof of the water from the bottle down." "In recognition of Han Xin's credit, so, Liu Bang pardoned the Han, but he was reduced to huaiyin hou."

Similarly, the design of the enterprise framework, but also to grasp the full range of things, understand thoroughly. when we design the framework, we consider the following concepts.

1. Flexible Use

It can be used as a whole or just one or several parts of it. A complete framework may require a large number of parts, but for a real-world application, it may require only a subset of the functionality. The framework must have this ability, can be used by the user a la carte, use, to avoid as long as the use of a little bit of functionality, it is necessary to introduce many content.

2. maintain the stability of the core

The framework we have designed is based on the need for stable, highly secure application environments, so its stability is a top priority for frame builders, and the core uses only validated and widely used third-party packages. During the construction process, a 2.0 version of the open source package was reused under a well-praised foundation, which resulted in a serious memory leak in the application process, and finally had to spend a very large amount of work to clean up, which also let us choose third Party package prudent.

3. Low learning cost, easy to get started

The learning cost of the framework must be very low in order to make it easier for users to get started and avoid the learning curve that is too steep and too long due to the difficulty of learning. After many times of practice, we summed up: The basic Java developers after a half-day training, you can fully learn based on the tiny framework for development, after 1 days to two days of practice will become mature hands. Extending the framework or extending it based on the framework expansion interface requires about 3 days of training to be fully mastered, and a week of practice becomes ripe for the hand.

4. Integration of documents

To make a good software, good documentation is essential. And do the software process very scratching is the document, the document is written early, the late changes in the process of the document is not constantly adjusted, the workload is very large, a little attention, will lead to the document and the actual does not correspond; The document is written late, it may be a mere formality. The tiny framework considers this issue profoundly at the beginning of its construction. This problem mainly involves a few software participants: Tiny Framework Extender: Tiny framework is a lot of time is a system, more content needs to be extended later, these extended content of the document how to write, is to consider the issue. Tiny Framework Consumer: the user of the tiny framework, primarily using the tiny framework for business development, he needs components for tiny framework extender extensions during the development process, and they expect to see the latest documentation for these components without having to see a lot of content unrelated to them, while in the development process, Do not want to go to many places to find these documents, and finally in their own development environment can be seen at any time. Tiny Component Library Manager: When the tiny framework Extender adds these extensions to the component library, it is also desirable to have a way to easily present these components to facilitate user selection of the tiny framework. Business systems developed based on the tiny framework: there are many external services in these systems, and services need to be documented, and the tiny framework provides the ability to generate these service documents so that the service and service documents can be consistent. So the architect of the tiny framework has metadata about the documentation described in the various components, so that the document information can be easily consulted and exported, both in the tool and in the management desk.

5. Convenient extension

Tiny framework builders also know that they cannot solve all the problems themselves, so the tiny framework is optional and replaceable in addition to the smallest core. The tiny framework is also fully open to the use of third-party packages, which can be chosen entirely by the user without any restrictions

6. reusability of existing assets

Due to the scenario of enterprise application, tiny framework builders also know that it is impossible for all projects to be zero-based, there must be some projects are re-developed or reconstructed on the existing basis, regardless of the circumstances need to be part or most of the reuse, in order to fully reduce costs, Leverage the enterprise's existing assets.

7. The accumulation of assets

It is only easy to accumulate knowledge, we can really do more with the stronger. Based on the above viewpoints, the tiny framework proposes a concept of constructing the tiny ecological circle. Whether it is a private ecological circle or a common ecosystem, it embodies a kind of crowds thinking, which can be expanded and reused together. Of course, tiny framework is also aware of the slogan is not possible, must have norms and mechanisms to protect, so in the tiny framework, many places are related to norms, metadata and other content, in order to achieve the asset can accumulate, reuse the goal. Due to the scenario of enterprise application, tiny framework builders also know that it is impossible for all projects to be zero-based, there must be some projects are re-developed or reconstructed on the existing basis, regardless of the circumstances need to be part or most of the reuse, in order to fully reduce costs, Leverage the enterprise's existing assets.

Welcome to our framework Biosphere:http://web.j2ee.top. The Code and framework information in this example will be shared in the forum. "Self-write framework" member QQ Group: 228977971, let us work together to understand the mystery of the framework!  

"Self-written framework 8": strategically advantageous position, concept first

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.