a new way of thinking about a problem
Posted rsapaper
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了a new way of thinking about a problem相关的知识,希望对你有一定的参考价值。
php Advanced and Object-Oriented Programming
Larry Ullman
The first thing that you must understand about OOP is that it presents not just new syntax but a new way of thinking about a problem. By far the most common mistake beginning OOP programmers make is to inappropriately apply OOP theory. PHP will tell you when you make a syntactical mistake, but you’ll need to learn how to avoid the oretical mistakes as well. To explain...
All programming comes down to taking actions with data: a user enters data in an html form; the PHP code validates it, emails it, and stores it in a database; and so forth. These are simply verbs (actions) and nouns (data). With procedural programming, the focus is on the verbs: do this, then this, then this. In OOP, the focus is on the nouns: with what types of things will the application work? In both approaches, you need to identify both the nouns and the verbs required; the difference is in the focus of the application’s design.
以上是关于a new way of thinking about a problem的主要内容,如果未能解决你的问题,请参考以下文章
一种新型聚类算法(Clustering by fast search and find of density peaksd)
Clustering by fast search and find of desity peaks(基于快速搜索与寻找密度峰值的聚类)