| Author |
PHP Editor |
|
trini0
MPN Developer Joined: 18-Jul-2001 Posts: 5096
From: FL USA
|
Posted: 2003-05-02 08:04
Dear God.
Give Brandon some room as he doesn't know what he says.
Don't let Kiril hear about what you said...
-----------------
Just playing. Lets wait for Kiril to read this...

|
|
avw
MPN Developer Joined: 07-Nov-2001 Posts: 1300
From: Houten
|
Posted: 2003-05-02 18:27
Brandon,
You are right when you are running your website on an intranet where you, as admin, can dictate all your users that they are allowed to use only one brand of browser and all with the same feature set and of exactly the same version.
But... most of our users and your visitors aren't dictated by you what to use to browse the web, so, you need to make very sure that your html code is looking good in almost all the available browsers. That's where validation comes into reach. When a browser doesn't show your page as well as you tought, who is to blame? You or the browser? When you have written 100% valid code, you can blame the browser, otherwise, the browser is blaming you because he doesn't understand what you might have had in mind when you were coding the page and he tries to be forgiving by doing a hard job to present a page with some of your ideas instead of showing nothing at all.
Actually, a browser should only be allowed to only show 100% valid code instead of 90% crap like most of us is used to write when coding html.
I you have ever programmed in other languages, you know that there is need for proper syntax in your code otherwise, your program is very likely to fail. You and I need to reach that same quality of coding syntax when writing nice websites.
That's why we strive to get myPHPNuke as clean as possible (which it isn't by far in 188!).
Let's hope that Kiril agrees with me so that he doesn't have to spank you
Enjoy life and happy coding! ----------------- Arjan MPN Project Manager
|
|
Kiril
MPN Developer Joined: 10-Nov-2001 Posts: 4181
|
Posted: 2003-05-03 05:08
I wish I had a buck for everytime I have had this argument with one of my friends.
Heck, if IE can display it, who cares what the code looks like. ARGHHHHH!!!
Some of the more popular editiors don't even put a DTD on the document, not to mention the mess they call "HTML".
In short, even something as simple as a DTD change WILL change how your document is processed by the browser. If you don't put one on there, then the browser defaults to standards mode. The DTD is especially important when processing CSS.
Let's say you cook steaks for a living. Assuming you take pride in your work, you wouldn't want to cook a well done steak for 10 minutes. Now that just wouldn't work.
Same goes for HTML, don't just do the minimum and expect it to accepted by everyone ( everyone is this case being browsers). Some people might accept the not so well done steak just because they don't want to complain, others will probably start yelling or even become violent.
In any event, I don't think there is a browser on the market that won't load even the worse written HTML page, like missing , missing DTD, etc..., but that doesn't mean in ANY case that people shouldn't care about validating their code.
In the very near future, people will not have the luxury of writting the crap they so fonding think of as valid HTML. The HTML spec is moving quicking in the direction of supporting only strict DTD's, which means if the document is expected to work with new and upcoming features of XHTML and XML, then the code MUST validate.
I'm not even going to get into cross browser compatibility....
Stepping off the soap box and going back to looking at the crappy HTML code in 188.
Oh, and one more thing. MPN 1.9 and 2.0 will be written as a fully validated XHTML 1.0 Strict Document(s). This means that ANY code submissions to the portal, including themes, MUST meet that requirement as a minimum.
[ This message was edited by: Kiril on 2003-05-03 19:28 ]
|
|
Brandon
Just popping in Joined: 24-Apr-2003 Posts: 10
From: San Antonio, Texas
|
Posted: 2003-05-05 06:08
Thanks for the information guys...
I'm stepping into the world of interactive/database-driven websites from VB/C++ programming, so I do understand the value of well-written code.
I figured it had something to do with compatibility, but I wasn't sure how exactly. I've still got a lot to learn with HTML, XML, and PHP.
Again, thanks for the help!
Brandon
|
|
Brandon
Just popping in Joined: 24-Apr-2003 Posts: 10
From: San Antonio, Texas
|
Posted: 2003-05-07 05:12
Does anyone use bluefish for PHP coding?
|
|
Garret
MPN Developer Joined: 23-Mar-2001 Posts: 1262
From: Colorado, USA
|
Posted: 2003-05-07 12:53
Ahh a linux fellow hu? Yep, we use both bluefish and quanta also.
Garret/Ruffdogs
|
|
trini0
MPN Developer Joined: 18-Jul-2001 Posts: 5096
From: FL USA
|
Posted: 2003-05-07 15:48
I used to use bluefish and quanta, but not anymore. Mainly becase, I can ssh into the server and work directly from there.
99% using ee
and the rest using joe
I really need to take the time to learn vi  ----------------- trini0... mPN2 Test Bed
|
|
Brandon
Just popping in Joined: 24-Apr-2003 Posts: 10
From: San Antonio, Texas
|
Posted: 2003-05-07 19:38
I've been primarily a windows programmer, but I recently started running a website and decided I wanted the stability of Unix, so I went the cheap route and got linux  I've been pleasantly surprised with linux, but I'm still really new to the environment. I have noticed that linux syntax has a lot in common with PHP (i.e. variables that start with $). Just trying to get the hang of a predmoniantly console-based sys admin...kinda tough if you've never played with it before... [ This message was edited by: Brandon on 2003-05-07 19:39 ]
|
|
port66_b
Just popping in Joined: 10-Jul-2004 Posts: 18
|
Posted: 2004-07-21 05:14
download crimson editor. its the best 1 and its free with no nags
|