From: Christian W. <cw...@cw...> - 2006-12-08 19:23:45
|
Hello, I am in the mid of writing SparqlEngineDb and wonder if there are any coding standards. While the new code is relatively pretty in my eyes, the old one does not always seem to have a structure. The usual questions come up: Tabs or spaces, indentation size, one-liners with or without braces {} and so on. Is there any consensus? I also saw a lot of private modifies in the sparql code. Is there a reason for this? protected is enough in most cases and allows people to extend the classes. Further, SparqlEngine currently returns >string(4) "true"< (or false) when ASKing something or returning a boolean value. In my opinion, we should use php's typing possibilities. --=20 Regards/MfG, Christian Weiske |