Quote:
Originally Posted by RichAtVNS
For instance:
There have been proponents of object oriented programming out their for years and it has not been shown to produce any better code then good functionally broken down code. Both work and are maintainable.
|
That could have been a subject for another thread. For number crunching tasks there is no need to use object oriented programming unless you reuse code. And it may introduce additional overhead that may slow your application.
Quote:
Originally Posted by RichAtVNS
My question is not about supposition! Give me a valid reason, some proof to switch and I will in a heartbeat.
|
With your background in fourier transformations and programming, you know what an int, double and complex datatype is. Computer languages have int and double as inbuilt types. But not all of them have a complex type. So why not make your own complex type and reuse it in all applications that use it? You only write the code once. You make your own complex class or object (an instance of the class 10 is an instance of an int. 10.17 is an instance of a double). Then you can define the most relevant operators on complex numbers, like +, - and multiplication. By using overloading / polymorhism you can operate on complex numbers like real number without knowing the type. Your API check the type and use the correct operator. This is a very simple aspect of OOP. There is much more. In BETA, everything is a pattern, a form of generalized objects. I have not used the BETA compiler, but I think it is in use in some Simula groups. Wasn't "the Beauty and the Beast" programmed in C++? You can use the same technique to overload strings, so you can add (concatenate) strings and other string operations that are naturally overloaded. By parametrizing code, you can define +, -, * etc on whaever you want, vectors, matrices and other pathological objects found in outer space if you prefer. (I assume that the operation is meaningful).
Quote:
Originally Posted by RichAtVNS
If we were using cars with different octane gas I could physically test the milage of a tank on premium vs. regular.
|
A car is a good example. The API (comparable to a GUI) of the car is visible on the instrument panel, but the inner workings is hidden to you (encapsulated). Encapsulation is another important aspect of OOP. The inner workings of the car is hidden to you. You control some functionality of the car from the instrument panel. Writing GUI is done more efficiently and elegantly using OOP. You will not understand it before you master it. The proof is in the pudding.
Quote:
Originally Posted by RichAtVNS
So where is the data or at least a statement from google that they weight pages differently for <div> vs. <tables> or showing a page with its navigation elements at the end of the file ranking higher for that reason alone.
|
That is answered in my above post.
Quote:
Originally Posted by RichAtVNS
I have written over 100 computer languages and at the end it all comes down to interpretation and order.
|
My bolding. What do you mean?
X(HT)ML is markup / tagging.
CSS / XSL(T) is styling.
JavaScript is like PHP a scripting language. Both are becoming more and more like an OOP language.
C, C#, C++, Rational Rose, Phyton, Java, Simula, BETA and Ruby on Rails are programming languages. Many compilers are written i C and C++.
Quote:
Originally Posted by RichAtVNS
You will have a convert immediately if you can show this to me instead of going off and referencing some book preaching coding ethics.
|
The above book was meant to be related to your original post. I still mean it is (they are).