Oneness - True Faith
Oneness - True Faith Forum Index
All Posts (wizanda)
« 1 ... 358 359 360 (361) 362 363 364 ... 554 »
wizanda
Web Development Help Posted on: 2007/4/5 16:41
Helper
Joined:
2004/3/26 7:04
From Nottingham, UK
Posts: 2803
Here is always trying new things and originally part of Xoops.......... it is almost a fork now, as so many changes have happened, now just to find some more peoples who know more then me, which isn't hard as I guess and am lucky very lucky mmmmm....yet still if you would like to help within open source, stay and feel welcome to use the many features this site has to get points across...

Anyways me just mumbling on as just changed the MySql on posting and so need to see how it responds now....

N B with U
Transfer Print PDF Bookmark Top
Topic
wizanda
Re: Common PHP + Coding Errors Posted on: 2007/4/4 19:31
Helper
Joined:
2004/3/26 7:04
From Nottingham, UK
Posts: 2803
Not that me is moaning, yet here are some more keep fixing.....

'( //' Explanations don't need to be inside open brackets it makes it close and open the process.

And........a more..oh yeh

Why add a second line to an explanation of

/*---------*/ or

****************************************

Etc yet they take up extra room and reading if not broken first by /* */ around all

Tricky bit is remembering all these even though spending all day doing so, it's a bit time consuming and so switch off for most of it...

Lots of spaces makes hard reading for me and computer, people say they don't understand me as I am too cryptic; yet so is computer code and I find that easier to read then most people, at least it doesn't deliberately try and waste time, oh that is what this is about people hurrying up and learning to think as computer would.
We would get far less emotional blackmail then etc as it's illogical to begin with.

N B with U
Transfer Print PDF Bookmark Top
Topic
wizanda
Re: Common PHP + Coding Errors Posted on: 2007/4/4 15:30
Helper
Joined:
2004/3/26 7:04
From Nottingham, UK
Posts: 2803
Another really bad one is this:


' ;' to leave a space before closing each line and seems to cause massive server drag, if running through a whole file.
Allot of these will be fixed in the Wizanda-Xoops, which is being cleaned by our staff right now to solve these errors.



Big Disclaimers also make a file size larger by 1kb in some cases so overall reading larger.........

N B with U
Transfer Print PDF Bookmark Top
Topic
wizanda
Common PHP + Coding Errors Posted on: 2007/4/4 14:58
Helper
Joined:
2004/3/26 7:04
From Nottingham, UK
Posts: 2803
Know this is sort of repeating what I was saying the other day, yet considering still having to work on everyone's code before even think of releasing any of it as an improved version, here is what is being fixed and slowing it down:

' . ' that is a space of a url in-between PHP code so for instance:
$this . $url . module .

That needs no space, and when in a url you are repeatedly sending that to be processed and so making it have to question that space isn't right.


'( '
' )' That is a space in-between items, if it is a PHP item in question it should not need spacing, MySql does and I can understand some people having continued the same flow of writing carried on from MySql, yet in PHP that is being read as part of the item; so no spaces.

Again especially in includes and url's as you are making a browser look for a space??


') {' A space and line between items, we are not painting PHP we are writing string code, so lines and closes go together, items close around them self's not 3 lines down.


One that really winds me up as it is just pure ??

'array (
item => expliantion
longer name for item =>explaintaion inline yet again lots of space'
Why do we need to make any processor read that? If we are reading it, where does you eye meet the page also? For me personally I look at what it starts as and then what it equals, so it is making more work, not less for all of us in the attempts to make lists readable (different software, different line spacing)



' ' blank spaces x2 (weaverslave can search spaces so removing any) everywhere in code, explanation are again alight as long as started and finished with one break /*i.e.*/ never
//break here
// and here
// plus here for an explanation they are coding breaks and for quick use, yet leave extra breaks read by the processor per line, so instead just /* start and finish*/ like that and you can have a large summary taking one process.


Will add few more in a bit, yet they main ones cleaning...

N B with U
Transfer Print PDF Bookmark Top
Topic « 1 ... 358 359 360 (361) 362 363 364 ... 554 » Top