JAVA advanced: 12 most important J2EE best practices-general Linux technology-Linux programming and kernel information. For more information, see below. Best practices
1. Always use the MVC framework.
2. apply automatic unit testing and test
Article 18: Make the interface easy to use correctly, not easy to misuse1, good interface is easy to use correctly, it is not easy to be misused. You should strive to achieve these properties in all of your interfaces.2, the "promote positive use"
12 most important J2EE Best Practices (2)-Linux general technology-Linux programming and kernel information. The following is a detailed description. 6. Always use session Facades when using the EJB component.
Never expose the entity bean directly
Array can be considered as a special Object. Pass by value OR by address varv [, 5]; functionf_t (a) {a [1] 9;} f_t (v ); alert (v [1]); // Display 9, the value has changed v [1] 2; f_t (v. slice (); alert (v [1]); //
Array can be considered as a
Php functions. Functions can be divided into system internal functions and user-defined functions. A function is to write a piece of code or a function that is frequently used in daily life as a function. Call a function as needed. the called
1. Replace define with Const,enum,inline as much as possible. 2. The old compiler may not allow static to get an initial value on its declaration. In addition, the so-called ' in-class ' initial setting may only be for integer constants, and if
1. function parameter passing method: Value passing
(1) An error message about value passing
Let's take a look at the following question:
In void exchg1 (int x, int y)/* definition, the X and Y variables are called the form parameters of the exchg1
From: http://blog.csdn.net/zhuweisky/article/details/415661
It is undeniable that C ++ has been a mainstream development language on the Windows platform for the past decade and even now, and it is fierce. net is bound to open up a new situation,
There are three major differences between reference and pointer:1. The reference must be initialized and the pointer is not required.2. The reference cannot be changed after initialization. the pointer can change the variable.3. There is no
Clause 13: object-oriented resource management
1. To prevent resource leakage, use raiI objects to obtain resources in the constructor and release resources in the destructor.
2. Two commonly used raiI classes: tr1: shared_ptr and auto_ptr. The
I. # include "filename. h"
And # include
Difference# Include "filename. h" indicates that the compiler will start searching for this file from the current working directory. # include indicates that the compiler will start searching for this file
Rebuild notes -- remove the value assigned to the parameter, and remove the value from the rebuild.
This article is in the study of the summary, welcome to reprint but please note the Source:
The following describes the differences between pass by reference and pass by value in C # and the usage of the ref and out keywords. For more information, seeCopy codeThe Code is as follows:/Sort and sum the three integers in ascending order and
18. Good interfaces are easy to use correctly and cannot be misused. You should try to achieve these properties in all your interfaces. "Promoting correct use" includes interface consistency and compatibility with built-in behaviors. The methods to
Parameter transfer mechanism of C/C ++Recently, many people have been recruited from the company, and many C ++ programmers have been interviewed. During the interview, I will ask questions about parameter passing, especially the pointer. Because
The question of passing values by value or by reference in JavaScript is discussed.
Recently I encountered an interesting question: "Is the value in JS passed by value or by reference ?" Before analyzing this problem, we need to know what is call by
I didn't expect to use VB suddenly, so I had to learn it now. I recorded some basic knowledge while reading and taking notes.
1. Data Type1) public variables cannot be declared in the process, but can only be declared in the Declaration section of
4. Plan to use J2EE Security from the very beginning.
Enable WebSphere security. This allows your EJB and URL to at least allow access by all authorized users. Don't ask why-Just follow the instructions.
There were very few customers who planned
Reference variables and PASS Parameters to methods
Variables of the basic type are essentially different from object variables (reference types) in terms of parameter passing of methods. The basic type variables pass values (pass by value), while
This is a summary of efficient C ++ programming, which is very helpful.
I. # differences between # include "filename. h" and # include # Include "filename. h" indicates that the compiler will start searching for this file from the current working
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.