Wat vind jij netter gecoded

Gestart doorRik13 reacties42 weergaven

14 berichten · pagina 1 van 1

Rik

Lid · Topicstarter

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Code 1

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR] [COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]) {[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];
}[/COLOR]    
?>


Code 2

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$iets[/COLOR][COLOR= #007700]){[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];
}[/COLOR]
?>


Code 3

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$iets[/COLOR][COLOR= #007700]) {[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700]; }[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700]; }[/COLOR]
?>


Code 4

[COLOR= #0000BB]<?php[/COLOR] 
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$iets[/COLOR][COLOR= #007700])[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];[/COLOR]
?>


Code 5

[COLOR= #0000BB]<?php[/COLOR] 
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$iets[/COLOR][COLOR= #007700])
{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];
}[/COLOR]    
?>


Ikzelf vind script 1/2 het fijnste lezen, en die gebruik ik dan ook het meeste ^^
Je moet natuurlijk bij alle scripts ook eventjes doordenken hoe het eruit zou zien bij moeilijkere scripts!
0
Berichten
5.209
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Optie 1 smile
0
Rik

Lid · Topicstarter

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Ben ik niet de enige pompom
0
Berichten
4.451
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik ook optie 1!
0
Tim

Lid

Berichten
712
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
5 5 5 5 5 5 5

optie 5 dus.
0
Berichten
1.160
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Quote:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$iets[/COLOR][COLOR= #007700])
{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];
}[/COLOR]    
?>


Met spatie achter if gebruik ik.
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Als ik moet kiezen ga ik voor 5, liefst voor deze:
[COLOR= #0000BB]<?php[/COLOR] 
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$iets[/COLOR][COLOR= #007700])
{[/COLOR]

    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];

}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]

    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];

}[/COLOR]    
?>


Vind het net wat overzichtelijker met wat entertjes. emo
0
Berichten
6.201
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Lennard schreef:
Als ik moet kiezen ga ik voor 5, liefst voor deze:
[COLOR= #0000BB]<?php[/COLOR] 
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$iets[/COLOR][COLOR= #007700])
{[/COLOR]

    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];

}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]

    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];

}[/COLOR]    
?>


Vind het net wat overzichtelijker met wat entertjes. emo
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik hou het bij deze

[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$iets_anders[/COLOR][COLOR= #007700]){[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];
}[/COLOR]
?>


maarja, het is wat je zelf wilt

classes doe ik trouwens wel soms zoals Lennard en Kjeld
0
Berichten
592
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Code 5 vind ik het makkelijkst af te lezen, maar of het ook netjes staat... smile
0
Miel

Lid

Berichten
4.462
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb gekozen voor optie 5 omdat deze het beste bij mij past, hij opent een nieuwe omgeving voor me, de ifs, elseifs en elses worden geneutraliseert en worden één, en rust.emoemoemo
0
Bas

Lid

Berichten
1.081
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
optie 1
0
Berichten
2.396
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ordian schreef:
Quote:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$iets[/COLOR][COLOR= #007700])
{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];
}[/COLOR]    
?>


Met spatie achter if gebruik ik.

Ik ook
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$iets[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$iets_anders[/COLOR][COLOR= #007700]) {[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]iets[/COLOR][COLOR= #007700];
}[/COLOR]
?>
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren