News for hackers. Stuff that matters.
Re:Hacker News doesn't validate by kwamenum86 on Tuesday January 06, 2009 @09:59PM (#422887)
code that does not validate is more lielly to break with browsers updates.
Re:Hacker News doesn't validate by andrewtj on Tuesday January 06, 2009 @10:16PM (#422912)
In my experience preemptive fixes are akin to procrastination when there's no empirical evidence to necessitate the change.
Re:Hacker News doesn't validate by kwamenum86 on Wednesday January 07, 2009 @01:22PM (#423732)
We have web standards to prevent browser bugs. Ironically sticking to standards 100 percent of the time often causes buggy visual display in some browsers. Standards are supposed to make things easier but the browsers have been pretty slow in complying. That does not mean that standards are not a good idea.

The lack of empirical evidence is due to that non-compliance. The same browser sometimes allows non-compliant code and chokes on valid code. This is a coordination game (just like driving on the right side of the road). If everyone complies (developers, browsers, etc.) things work. If enough don't, everything breaks.

Re:Hacker News doesn't validate by michaelneale on Wednesday January 07, 2009 @12:55AM (#423079)
that's an awesome quote - can I borrow it ??
Re:Hacker News doesn't validate by andrewtj on Wednesday January 07, 2009 @06:34AM (#423311)
sure
Re:Hacker News doesn't validate by run4yourlives on Wednesday January 07, 2009 @01:57AM (#423115)
That assumes that there's extra work in coding to standard. In fact, it's quicker to do so.
Re:Hacker News doesn't validate by tomjen on Wednesday January 07, 2009 @02:46AM (#423156)
Really - adding a doctag is faster than not adding it? That seems incorrect to me.
Re:Hacker News doesn't validate by andreyf on Wednesday January 07, 2009 @11:37AM (#423586)
I think gp is talking about the long-run. That is, getting things to render right on all browsers, on all devices, printed, etc.

Have you ever tried printing a thread? It's bearable, not certainly but pretty.

Re:Hacker News doesn't validate by run4yourlives on Wednesday January 07, 2009 @12:20PM (#423664)
That's like saying you don't indent your code blocks because hitting tab is slower than not hitting tab.

The point being that there is a lot more to development than keystrokes.

But let's user your argument anyway: what's faster:

<div id="content">content</div>

or

<table id="content"><tr><td>content</td></tr></table>

Now, lets say I want to move the table text from left to right alignment. While you're mucking around in your code, I pull up the css file and add a line.

Re:Hacker News doesn't validate by eli on Wednesday January 07, 2009 @12:05AM (#423030)
and code that validates is likely to break with certain current browsers :/
Re:Hacker News doesn't validate by kwamenum86 on Wednesday January 07, 2009 @12:28AM (#423048)
good point- but you can always figure out a way to write valid cross-browser code. it's difficult to tell whether or not the effort is worth it because some "broken" code works well in all browsers and there is no reason not to expect this to continue.
Re:Hacker News doesn't validate by Jem on Wednesday January 07, 2009 @05:37AM (#423272)
Really? My valid code doesn't have any problems in current browsers.
Re:Hacker News doesn't validate by eli on Wednesday January 07, 2009 @10:32AM (#423500)
And the hilariously invalid intranet app I built in 1997 doesn't have any problems in current browsers either. What's your point?

I'm not saying it's impossible to write valid code that works (duh). But having code that validates doesn't exempt you from browser bugs and quirks. And sometimes it makes life quite a bit harder.

Re:Hacker News doesn't validate by Jem on Monday January 12, 2009 @04:40AM (#430332)
> What's your point?

That the problem is with your coding. Invalid or not, if you can't make it work properly that's down to you and bugger all to do with validity.

Re:Hacker News doesn't validate by run4yourlives on Wednesday January 07, 2009 @12:41PM (#423689)
That would be a good argument if it were true, but most of those invalid 1997 apps don't work at all in any browser but IE.

An now, they're a nightmare to upgrade.