PHP's orthogonality

General discussions related to php

Moderators: macek, egami, gesf

Jay

Postby Jay » Sun Oct 06, 2002 9:49 am

** head explodes ** :wink:

ednark
New php-forum User
New php-forum User
Posts: 18
Joined: Fri Oct 04, 2002 8:09 pm

Postby ednark » Sat Oct 12, 2002 1:55 pm

give us some examples of another language that has a high orthagonality, and one that has a low orthagonality, that might help.

ednark
New php-forum User
New php-forum User
Posts: 18
Joined: Fri Oct 04, 2002 8:09 pm

Postby ednark » Sat Oct 12, 2002 2:08 pm

assuming this is the definition "few fundamental principles that may be combined without unneccessary restrictions"

from a syntactic view of scripting languages:

would perl have a low orthagonality, because it has so many equivelant syntactical ways of expressing the same action? ie more ways to do it than any one person usually knows about

would python have a high orthagonality because of it's enforced white-space based scoping? ie only one way to do it

would any scripting language that isn't compiled into assembly code be considered even basically orthogonal, since such a language is run through an interpreter written in another language, and as such derives it's structures from things completely different than then functionality the coder sees?

would php be considered more orthagonal because it's versions of arrays and hash tables are identical?

ednark
New php-forum User
New php-forum User
Posts: 18
Joined: Fri Oct 04, 2002 8:09 pm

Postby ednark » Sat Oct 12, 2002 2:11 pm

php does is not strongly typed. so from a coders perspective you could assume that there is only one type of varibale, a var variable, and php decided when it should be interpretted as an int or float.

does this make it more orthagonal?

so php has as basic items:

atomic variables
functions
arrays
objects


and objects are just collections of
functions
arrays
atomic variables


since it has so few does this make it more orthagonal?


Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 0 guests