Oneness - True Faith
Oneness - True Faith Forum Index
All Posts (wizanda)
« 1 ... 363 364 365 (366) 367 368 369 ... 558 »
wizanda
New Web Compliance Needed Posted on: 2007/4/3 11:48
Helper
Joined:
2004/3/26 7:04
From Nottingham, UK
Posts: 2818
Since we noticed a massive increase after removing spacing in all coding this process has now turned into a hobby of continuously searching how to refine code even more.
The keys are just like playing on a game anyways up, down, left, right, delete, backspace and the prize though = faster site for all......


Some of the major reason why are this:


1)
// when we add a disclaimer to something//
// it shouldn't be 1kb extra to each file being read//

It can be quick
/* @package miss-piggy
* @subpackage kermitfrog
* @author changes here
* @copyright*/
* @todo

No Spacing though, through all of the information and titles etc...

Then it shows quickly and clearly what anything does, without making the computer read it all again and again for nothing.

//so then these extra explanation are removed and placed where they belong, in one container starting and ending with /*so the computer sees just one break */
Now when on many files we are also talking about the net being a system working in 1's and 0's, why then would we want to make any file larger then it needs to be, for any system to read? (understand when testing on home PC it will make a smaller difference in adding extra spacing, yet online is huge)

The web's programming at present has only been caught on by a few programmers whom have fast sites, yet allot have to much spacing.

The reason being is the output may look spacious, yet then the code isn't!
A computer doesn't need to read like us and the difference when you are writing for somebody and something a computer will have to read in binary needs fixing globally.

So this is why you will now find our site paper weight, as disclaimers are removed to where needed and practical, not In each file adding 1kb x 20 files to display a page + more so imagine why sites go slow when to begin they have to send 1kb extra data for no reason other then painting pretty picture in code and PHP!


Yes PHP!
People seem to think PHP is MySql or something as only MySql needs major spacing, PHP needs to be string theory, that is what is.

So don't make long lists in file make them at the side of it for instructions include the parameters as above, yet so they are also system code to look at.

N B with U
Transfer Print PDF Bookmark Top
Topic
wizanda
Learning PHP code Posted on: 2007/4/2 18:39
Helper
Joined:
2004/3/26 7:04
From Nottingham, UK
Posts: 2818

PHP Operators

This section lists the different operators used in PHP.

Arithmetic Operators

Operator Description Example Result
+ Addition x=2
x+2
4
- Subtraction x=2
5-x
3
* Multiplication x=4
x*5
20
/ Division 15/5
5/2
3
2.5
% Modulus (division remainder) 5%2
10%8
10%2
1
2
0
++ Increment x=5
x++
x=6
-- Decrement x=5
x--
x=4

Assignment Operators

Operator Example Is The Same As
= x=y x=y
+= x+=y x=x+y
-= x-=y x=x-y
*= x*=y x=x*y
/= x/=y x=x/y
%= x%=y x=x%y

Comparison Operators

Operator Description Example
== is equal to 5==8 returns false
!= is not equal 5!=8 returns true
> is greater than 5>8 returns false
< is less than 5<8 returns true
>= is greater than or equal to 5>=8 returns false
<= is less than or equal to 5<=8 returns true

Logical Operators

Operator Description Example
&& and x=6
y=3

(x < 10 && y > 1) returns true

|| or x=6
y=3

(x==5 || y==5) returns false

! not x=6
y=3

!(x==y) returns true


N B with U
Transfer Print PDF Bookmark Top
Topic
wizanda
Re: How to make a module header be in the head of a document using Xoops Posted on: 2007/4/1 1:12
Helper
Joined:
2004/3/26 7:04
From Nottingham, UK
Posts: 2818
ok still not with the added headers already it works as written to begin and doesn't need literal all the way through....just needs all the headers to be appending data....

N B with U
Transfer Print PDF Bookmark Top
Topic
wizanda
Re: How to make a module header be in the head of a document using Xoops Posted on: 2007/4/1 1:00
Helper
Joined:
2004/3/26 7:04
From Nottingham, UK
Posts: 2818
make that almost one sec oops need literal some bits and some not....

N B with U
Transfer Print PDF Bookmark Top
Topic « 1 ... 363 364 365 (366) 367 368 369 ... 558 » Top