Slashdot Mirror


NYTimes.com Hand-Codes HTML & CSS

eldavojohn writes "The design director of NYTimes.com, Khoi Vinh, recently answered readers' questions in the Times's occasional feature 'Ask the Times.' He was asked how the Web site looks so consistently nice and polished no matter which browser or resolution is used to access it. His answer begins: 'It's our preference to use a text editor, like HomeSite, TextPad or TextMate, to "hand code" everything, rather than to use a wysiwyg (what you see is what you get) HTML and CSS authoring program, like Dreamweaver. We just find it yields better and faster results.'"

15 of 496 comments (clear)

  1. W3C by FST · · Score: 4, Informative
    --
    46487 466780 252994 376409 96920 39622 205366 244315 622115 512361 668040 63608 259203 955314 811176 652718 166330 23922
    1. Re:W3C by Bogtha · · Score: 4, Informative

      Also, they use <br/> in HTML 4 and it is telling them that they shouldn't do that because some web browsers will think it's wrong.

      No, it's not telling them that some browsers will think it's wrong, it's telling them it is wrong. Validators don't check to make sure browsers can understand your document, they check if you have made any syntax errors. Writing <br/> in an HTML document is wrong, regardless of any particular browser's handling of it.

      --
      Bogtha Bogtha Bogtha
    2. Re:W3C by Bogtha · · Score: 4, Informative

      fix whiney warnings that have no real world effect?

      I knew somebody would pop up with this misconception. Did you know that the web has already been through this — not once but twice — and proven you wrong?

      Netscape 2 was quite aggressive when it came to guessing when ampersands were mistakenly unencoded. Cue lots of people not bothering to do things correctly, and saying things exactly like you are — "What's the point? It makes no difference!"

      Then Netscape 3 came out. It wasn't as aggressive as Netscape 2. All those people who cut corners had to rush to fix all of their pages. All the people who did it correctly the first time around didn't have to do any extra work.

      Now Netscape 3 still guessed a little bit — if you left off the semicolon, it would pick up on it and guess correctly. So lots of the dumb people from the previous example didn't learn their lesson, and skipped the semicolon.

      Can you guess what happened? Yep, that's right, Netscape 4 came out and broke all their pages again. And all the people who did things correctly laughed at them.

      Sure, if you don't bother to do things right, today's major browsers will probably guess that you're an idiot and work around your bugs. But there's certainly no guarantee that tomorrow's browsers will do so. When you can do things correctly right now for no effort, why on earth would you risk incurring extra work in the future? Is it really so difficult to type &amp; instead of &?

      --
      Bogtha Bogtha Bogtha
    3. Re:W3C by Bogtha · · Score: 4, Informative

      <br /> is XHTML standard and <br> is the regular HTML 4 standard. Both are correct

      No, one is correct for XHTML and incorrect for HTML, and one is incorrect for XHTML and correct for HTML. The NYTimes use HTML. That means the XHTML syntax is incorrect.

      --
      Bogtha Bogtha Bogtha
    4. Re:W3C by Rhapsody+Scarlet · · Score: 2, Informative

      What is the correct value of the alt attribute for the CAPTCHA image in a "free registration required" form?

      If all else fails, you could just specify alt="", which will satisfy the validator. Not every image needs alternate text.

    5. Re:W3C by Bogtha · · Score: 3, Informative

      while XHTML syntax is not strictly speaking correct HTML it is still valid HTML.

      This is simply not true. It's incorrect and invalid.

      What you may be thinking of is Appendix C of the XHTML 1.0 specification. It lays out a series of guidelines that minimise incompatibility with legacy user-agents. This means that it is relatively safe to transmit XHTML 1.0 documents following these guidelines as text/html. What it does not mean is that those XHTML 1.0 documents magically become valid HTML documents. They are not.

      --
      Bogtha Bogtha Bogtha
    6. Re:W3C by beav007 · · Score: 3, Informative

      Be that as it may, Bogtha is correct. We aren't talking about what works here, we are talking about what the standard says. The standard for XHTML says to use a slash, the standard for HTML 4 says not to. That is the discussion, and really, the end of it.

    7. Re:W3C by Bogtha · · Score: 4, Informative

      It may or may not be improper American English, but "misspelt" is certainly correct English. Consult the OED if you don't believe me.

      This is far from the first time I've had an ignorant American attempt to "correct" my proper English into your regional dialect. It's pretty annoying and reinforces negative aspects of your national stereotype.

      --
      Bogtha Bogtha Bogtha
  2. How much work does that involve? by menace3society · · Score: 2, Informative

    How much work does that actually involve? I don't read their online edition, but I imagine that they have all their articles in a database and put its contents into an HTML wrapper. That involves coding the wrapper once, and maybe a couple of conversions in the article text to make it HTML-friendly. You can do this when the article is converted into the database, or you can do it on the fly in your scripts, but the point is it shouldn't be that difficult to do.

  3. Doesn't everyone? by consumer · · Score: 3, Informative

    He doesn't mean that they hand-code every page -- he says very clearly that they use a CMS with templates. All he said is that they don't use a GUI tool to create the templates. This is true of just about any significant site. What is the imagined news here?

  4. Re:Dreamweaver is a mediocre tool by Animats · · Score: 2, Informative

    CSS support is very good in DW.

    Actually, no, it's not. At least through Dreamweaver 8, CSS is sort of a bolted-on afterthought. The Dreamweaver "Properties" pane and the CSS system do not play well together. Dreamweaver has a useful GUI for table-based layout, but falls down on DIV-based layout. (This isn't entirely Dreamweaver's fault. DIV-based "float" and "clear" just weren't a well chosen set of primitives. It's trying to solve a 2D problem with a 1D mechanism.)

    Dreamweaver 3 was easier to use.

  5. Re:Valid Markup != Good Code by Bogtha · · Score: 3, Informative

    An & sign in a link to a URL isn't a syntax error

    Yes, it is. Don't just take my word for it, take a look at what the HTML specification has to say on the matter.

    treating it as such would nullify all GET parameters after the first one.

    You are confusing a URI with the representation of that URI within an HTML document. Just because it appears as &amp; in the document, it doesn't mean that's what you end up with after it has been parsed.

    --
    Bogtha Bogtha Bogtha
  6. Re:Another opportunity to post... by yotto · · Score: 2, Informative
  7. Re:Works for me too by mweather · · Score: 2, Informative

    Not really, unless you're using tables for layouts. CSS layouts don't look right.

  8. Re:Yes and, err, no? by Bob+The+Cowboy · · Score: 2, Informative

    Management tools? What, ftp? Why the hell would you run some bloated WebDev environment entirely in code mode?

    Dude. Let me help you.

    This will be KDE-specific, but I'm sure you could use Gnome programs for the same thing. For that matter, you could also setup SSHFS, or NFS.

    Open Kate.
    Click File, Open.
    In the file selector, type: fish://user@someserver/some/path/and/file.html
    Edit.
    Save.

    Marvel as your file is magically updated, without any bizarre management tools. With the benefit of being secure.

    For extra credit, you can even figure out how to commonly accessed remote directories in the left-hand sidebar.

    Bill