Discover object oriented database software, include the articles, news, trends, analysis and practical advice about object oriented database software on alibabacloud.com
On structured and object-oriented methods
2. Structured Software Development Method
Structured Software development is a kind of traditional software development method in the early stage. Its basic idea is to break down and Abstract So
the result set and closing the connection is not the same as filling in the resources // releasing the result set
Mysqli_free_result ($res);
// function to close a previously opened database connection
Mysqli_close ($conn); Object-oriented approach sqltool.class.php PHPclasssqltool{Private $conn; Private $host= "localhost"; Private $user= ' Roo
The maintainability and reusability of softwareRobert C.martin, a well-known software guru, believes that a low-maintainability (maintainability) software design is typically caused by the following 4 reasons:
Too stiff (rigidity)
Too fragile (fragility)
Low reuse rate (immobility)
High viscosity (Viscosity)
The software engineering and
Introduction to Design Patterns
Each pattern describes a problem that recurs around us, and the core of the solution to the problem.--Christopher Alexander
The design pattern describes a general solution to some common problems in the software design process. The object-oriented design pattern describes the common organization relationships between objects in t
In my previous article "Component/Service Oriented Software System Development Thinking", I will collectively refer to the Software modules including BinaryLevel and Source Code Level as Component. This classification method is not very consistent with the traditional general definition of Component. This article is to explain why I want to classify it. -In the t
techniques. This abstract process is top-down, it is very in line with human thinking habits, that is, to abstract the most important aspects of the problem into a simple framework without considering the details of solving the problem, and to concentrate on how to solve the main contradictions, then, in the process of solving the problem, the details of the problem are divided into a small problem, and then the detailed problem is solved. A software
The process-oriented analysis method is a bit like solving mathematical problems, which must be followed sequentially, if one step is wrong, then all re-start after the overthrow.Object-oriented analysis method is like painting a picture, the problem is divided into the object is the class, the first painting the characters, then painting the scenery, finally the
Auto Load ClassMany developers write object-oriented applications, creating a PHP source file for each class definition. A big annoyance is having to write a long list of included files at the beginning of each script (one file per class).
In a software development system, it is not possible to write all classes in a PHP file, and when you need to invoke a class
nicedrawing ($x) {
Supose This is a method of the class Board.
$x->draw ();
}
$obj =new Circle (3,187);
$obj 2=new Rectangle (4,5);
$board->nicedrawing ($obj); Would call the draw method of Circle.
$board->nicedrawing ($obj 2); Would call the draw method of Rectangle.
?>
Object-oriented programming for PHP
The Pure object theory thinks that PHP is not a true
reuse. This is the basis of software engineering. Using these concepts is the key to future success in website design.
Advanced object-oriented technology in PHP
After reviewing the basic concepts of object-oriented, I will introduce some more advanced technologies.
Seri
encapulation ): The following describes how to combine data and methods. method and data: two important features of encapsulation: 1. place the required data and methods in the same scope. 2. pay attention to the accessibility of data and methods. traditional procedural programming languages, such as C language, include a lot of data and functions. Each function can access part of the data, for small Programs , data and functions can work well. However, as program functions increase, p
The software development process has not changed much over the years. The main problems that need to be faced during the software development process are: the long development cycle makes it difficult to ensure the correctness of the program, difficult to maintain and so on have not been well solved, despite the emergence of object-
software requirements from the starting point of the underlying implementation program.
This analysis method is actually not applicable to object-oriented programming languages such as Java, because if you use C language instead and encapsulate two C functions, it will be much easier to implement than Java, logic is also clear.
I think the essence of
software engineering. Using these concepts is the key to future success in website design.
Advanced object-oriented technology in PHP
After reviewing the basic concepts of object-oriented, I will introduce some more advanced technologies.
Serializing
PHP does not support pe
The comparison between the structured method and the object-oriented method A well-known software crisis erupted in the middle of the last century. In order to overcome this crisis, the term "software Engineering" was presented at the two renowned NATO conferences held in 1968and1969 years , And in the future continue
OOP: Object-oriented programming, a reference to object-oriented, you might think of classes, interfaces. One of the characteristics, we may come to the mouth: inheritance, encapsulation, polymorphism, then exactly what kind of object (class) is the true meaning of the
new method for updating data. Therefore, there are three types of interactions between users and data: initialization, update, and report results-this is the interface. In short, when we adopt the OOP method, we first consider the user's point of view-to describe the data required by the object and to describe the operations required for user-to-data interaction. After describing the interface, you need to determine how to implement the interface and
Object-oriented is a software technology from software design, it is a mature thought, and all things are objects, so this kind of thought universal. In software design, object-oriented
. Of course this is not the case now ). Fortunately, PHP supports polymorphism.
Function niceDrawing ($ x ){
// Supose this is a method of the class Board.
$ X-> draw ();
}
$ Obj = new Circle (3,187 );
$ Obj2 = new Rectangle (4, 5 );
$ Board-> niceDrawing ($ obj); // will call the draw method of Circle.
$ Board-> niceDrawing ($ obj2); // will call the draw method of Rectangle.
?>
PHP object-oriented pr
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.