Technical System Selection-Java

Source: Internet
Author: User

Some people often argue over several development languages, some say that Java is good, some say that. Net is good, and some say that Php is good. In the end, they often turn into mutual attacks and disband. The competition for development language is essentially a battle of technical systems, and development language is just a tool for building applications in a certain technical system. In fact, there are often a variety of solutions for a problem, and every technical system may be able to achieve it, but "can" and "OK" are two different things, there is a cost-effectiveness issue here. Just like we hit mosquitoes, we can use fly flags or cannon shells to finally kill them. The cannon is extremely powerful, omnipotent, and lethal, but it is really not as easy as a fly. Using the heavyweight Java technology to build a web website is similar to the effect of large-scale attack on mosquitoes. Of course, on the other hand, sometimes there will be a situation where the pony pulls a big car and a thin donkey pulls it hard. For example, if you use Php to develop a bank settlement system, you can certainly do it, speed is refreshing, but a weak language may be full of variables at runtime, and which bank dared to take such risks, they would rather choose a more mature Java technology solution, although the speed is slow, it is easy to use. Each technology system has its own application fields. The result of a technology system wanting to get through is often "sample, everything is loose ".

So what technical system should we choose? The choice of technology system is mainly dependent on the business objectives of an IT company. Conversely, a proper technical system is needed to promote the business objectives. For example, if the company is engaged in system integration of telecommunications projects, it is basically determined that it is based on the J2EE platform technology. If the company is preparing to operate the Web2.0 website, LAMP is the best choice, the language developed in the future is 3 P (Php/Perl/Python. An IT company can achieve its business goals better and faster only by selecting an appropriate technical system. For individuals, the selection of technical systems may determine your career development goals for a long time, for example, whether you are a website or enterprise application in the future, whether you are a product or a project.
The selection and determination of the technical system is generally determined by the CTO or the first rack according to the company's business objectives, and sometimes depends on the requirements of the customer or industry. Of course, if only the system implementation is used as the purpose, the architect can participate in the determination of the implementation technology. Once a technical system is selected, all development activities are limited to this technical scope. As architects, they must have a broad knowledge system, and the basic knowledge of the technical system is one of them.
Below, I will discuss the Java technical system ,. the Net and LAMP technology systems are analyzed one by one, focusing on the technical characteristics and adaptation fields of these technical systems. The technical characteristics are an important factor in the field of adaptation.

1. Sun ONE Architecture
Sun ONE (Sun Open Net Environment) is Sun's defense against Microsoft. the. NET architecture is based on the Java language and is based on a series of open and popular standards, technologies, and protocols, sun ONE has three platforms: J2SE, J2EE, and j23. it covers all fields of application development.
J2SE (Java 2 Platform, Standard Edition)
Java 2 platform Standard Edition, applicable to the Development of desktop system applications.
 J2EE (Java 2 Platform, Enterprise Edition)
Java 2 Platform Enterprise Edition. The J2EE platform simplifies the development, deployment, and management of enterprise solutions. J2EE is mainly used for the development of enterprise-level server applications and distributed network programs.
 Java 2 Platform, Micro Edition)
Micro version of Java 2 platform. Sun defines j2's as "a highly optimized Java Runtime Environment with a wide range of consumer products as its goal ". It is widely used in Embedded consumer products, such as mobile phones, handheld computers, smart cards, set-top boxes, vehicle navigation systems, and other wireless devices.
Most of us are engaged in enterprise application development based on the J2EE platform. The following focuses on the J2EE development platform and development technology.

2. Java Technical Features
2.1 Security
The Java platform has fully considered security issues since its birth. The Java platform provides a Sandbox Model Based on the original security mode. The essence of the Sandbox Model is to trust the local code so that it can fully access important system resources, while the remote code downloaded is not trusted. Therefore, it can only access the limited resources provided in the sandbox. This model provides a very strict environment for untrusted code obtained from the open network. Java introduces the authenticator component, which completes the security check of the file before running the. class file to ensure that the Java bytecode complies with the Java Virtual Machine specifications. The Java platform uses the authenticator to view the syntax and lexical correctness of class files and check the version and API compliance. This ensures that the Java language can be executed without breaking any restrictions. This feature is also available in. Net Technical Systems. Although LAMP does not have such a sound security mechanism, no major security vulnerabilities have been found.
2.2 robustness
Java is a strong static language and must be compiled before running. It requires that the types of variables and objects must be declared before use to ensure that the syntax has no ambiguity. Therefore, the generated code is better in terms of readability, reliability, and predictability, try to remove potential unstable factors in the system before running, greatly preventing errors during running. In addition, the fault tolerance mechanism during the operation ensures that the overall collapse will not be caused by local problems during the system operation. A weak type of Dynamic Language like Php In the LAMP technology system lacks the key elements of enterprise-level applications, which leads to one of the reasons why the development of enterprise-level large-scale systems cannot begin. This feature is also available in the development languages of the. Net technology system.
2.3 cross-platform
Java applications can be transplanted on both Unix and Linux platforms and Windows platforms. The operating system is the most basic supporting environment for any application. It is very important for Java applications to run on Unix/Linux platforms, and almost decides its application field. In this case, most system security problems depend on the security of the operating system. Unix has always been regarded as the safest operating system, mainly because it adheres to an open strategy and can be reviewed and tested by more technical personnel. It has a long history. At the same time, Unix is regarded as a stable and efficient operating system, which is significantly higher than Windows Server in terms of security, stability, and efficiency. Java applications can run on Unix platforms and directly inherit these advantages. This is applicable only for Windows platforms. net is a lot inferior, as for the implementation of open-source Mono. the cross-platform running of Net on Unix/Linux can only be symbolic, and has not gone through large-scale practices.
2.4 object-oriented
JAVA is a thorough object-oriented language. Most of the latest ideas and theories of software engineering are first practiced on the Java platform and development process, this provides good language-level support for analyzing, designing, and programming large systems.
2.5 Other features
The Java language is platform independent. It is the same for every computer. For example, simple types are unchanged: integers are always 32 bits and long integers are always 64 bits. The strange thing is that the trendy programming languages such as C and C ++ are not like this. Since these languages are so free to define, each compiler and development environment is different, which makes program porting a nasty problem. Java program porting is very easy, and does not need to be re-compiled. Compared with traditional languages, Java simplifies the process by removing syntax such as preprocessing, pointer operations, structure, union, and operator overload, it also removes multiple inheritance that is easy to cause confusion in object-oriented systems. Of course, these features have no obvious advantages over the. Net development language C # and PHP in LAMP.

3. fields suitable for Java Technology
The development based on the J2EE platform is suitable for industrial application development, such as finance, insurance, telecommunications, ERP, and e-commerce, and mostly belongs to large and medium-sized business systems.
Why is Java technology applicable to such fields, not. Net or LAMP? I have summarized the following factors:
 1) vendor support
Java technology adapts to the characteristics of business systems in the field: the business logic is complex, requiring the system to have high reliability, security and fault tolerance to ensure transaction success. For such industries, we generally adopt conservative strategies when selecting technical routes, and prefer mature solutions, products, and technology providers, instead of simply selecting a language, a technology, or an application server, they often need a complete set of solutions. Large software service providers, such as IBM, SAP, and ORACLE, sell such a complete set of solutions, from industry consulting to process optimization, from databases to application servers, from the development environment to system deployment, from pre-sales consultation to after-sales service, there are many successful implementation cases in this industry. Most of the mainstream products and external platforms provided by these software service providers are based on the J2EE platform, and there are almost no products based on the. Net technology system, so LAMP does not need to be mentioned.
2) Operating System
From the operating system perspective, Unix was born much earlier than Windows, while Windows Server was later. Most applications in the above business field have been running on Unix. Therefore, based on operational continuity considerations, selecting a Unix/Linux operating system is certainly a safer solution. Which of the following types of enterprises used Windows platforms to overturn their previous systems? I am afraid no enterprise can afford the costs and risks involved, and there is no reason to replace them. Java applications can not only run on Unix/Linux, but also perform well in Unix/Linux. In addition, we also mentioned that the security, stability, and efficiency of Unix/Linux operating systems are significantly higher than those of Windows, making Java applications running on Unix/Linux the best choice.
 3) Technical Features
The security, robustness, stability, and fault tolerance of the Java platform are essential for enterprise-level application development. The object-oriented feature of Java helps to implement system maintainability and reusability design. Its simplicity ensures development efficiency and system robustness. These are C, C ++ and other languages are incomparable.
4) Open-source product support
Most of the latest ideas and theories of software engineering are first practiced on the Java platform and development process. The mature open-source framework based on JAVA also supports development of large-scale systems, such as common MVC frameworks Struts, ORM frameworks Hibernate, and IOC frameworks Spring. It has mature open-source frameworks and tools from the aspects of system analysis, design, coding, and testing, and has been successfully applied to system development practices. Similar products and tools have not yet formed large-scale practices in the. Net and LAMP technical systems.

4. Java-based Web Development

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.