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.'"
I find that hand-coding works for HTML/CSS, provided of course you include it in a scripting language like PHP.
It's less work than it sounds and the results DO look better - you get a more original look and things can be made to look exactly how you want, instead of being restrained by the wysiwyg software's design limitations.
Do it yourself, because no one else will do it yourself. [beta blockade 10-17 Feb]
Maybe we can use this idea to write programs, too.
The badge I used to put on all my sites...
The CB App. What's your 20?
...and yet they get 455(!) errors. That's not very good. http://validator.w3.org/check?uri=http%3A%2F%2Fnytimes.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0.
46487 466780 252994 376409 96920 39622 205366 244315 622115 512361 668040 63608 259203 955314 811176 652718 166330 23922
Let's look 'objectively' at this:
1. Handcoding takes a lot more effort and needs more 'actual' writers than before. So more techies keep their jobs in a recession.
Score: Hancoding 1: Dreamweaver: 0
2. Hancoding requires extensive knowledge of all CSS and DHTML codes plus javascript/JScript. So only the really good techies get the job, and not some script monkey. Survival of fittest.
Score: Hancoding 2: Dreamweaver: 0
3. Handcoding takes far more time than is necessary in a changing scenario of today's news. Effort not proportional to returns. As a shareholder, i would sue them for wasting money.
Score: Hancoding 2: Dreamweaver: 1
4. Dreamweaver allows preview easily and pretty much automates repeatable tasks. Handcoding requires a Mechanical Turk.
Score: Hancoding 2: Dreamweaver: 2
So its a tie.
I appreciate NYTimes sticking to manual tasks for an electronic page as an end user and a techie.
I hate them for wasting my money as a shareholder.
"Doing what i can, with what i have." ~ Burt Gummer
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.
Stupid comment by Vinh about Dreamweaver.
1. DW lets you code at the source code level if you choose.
2. DW is much faster--in Design View--at creating tables.
3. DW allows for flipping back and forth or split view.
4. DW does not rewrite your code (for the most part).
I use DW every day. I am not even conscious of flipping between the 2 views. Some things are done better in Design View and some in Code View.
CSS support is very good in DW.
Dave Barnes 9 breweries within walking distance of my house
If it's for-profit but free, you're not the customer -- you're the product (e.g., the Slashdot Beta's "audience").
Personally, I have come to really enjoy reading the online NY Times (and I don't even live in the US).
The re-design they did a couple years ago is a pleasure to navigate, to read (I love the fonts) and while the photos are always top notch, I must say the award goes to whoever makes the graphs. They have the most fantastic and unique ways of presenting data - far beyond a boring Excel bar graph. I am really really impressed by the interesting and informative graphs which are often highly interactive, and I would love to know who thinks them up.
At the end of the day, they use templates (I believe he says as much in TFA, IIRC, I read it a week or so ago) and hand tweak the site to make it sure it stays cross-platform pretty. Each story has a similar layout so it can't be hard for them to simply tweak by hand where needed.
translation: my 'wife' got pricked with a needle, instead of being needled with a prick.
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?
The pages would look even better and load even faster if they used Vi or Emacs. Obviously.
"And there be unix which have made themselves unix for the kingdom of heaven's sake." - Matt. 19:12
That's not coding by hand, that's compiling by hand ;-p.
Overhead at an outsourcing facility:
Hand-coding agent: I hate this guy, he's refreshing his browser every minute on the same news. I can't keep up.
Hand-coding supervisor: PrintScreen it!
Hand-conding agent: Brilliant!
For all the pros/cons on using a web site editor package vs writing code in a text editor, there's one issue that's been overlooked - how to manage links in a website with a large degree of depth and complexity.
As much as it may work in principle to build highly optimized pages by hand markup, it must be a nightmare to make any changes to something as tightly constructed as a hardwired web site.
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.
Please refrain from alluding to such explicit language. For goodness sakes, Slashdot is not the Netherlands after 9 PM.
While the purists are going to argue that valid markup defines the quality of the code on a given website the reality of the real world always tends to rear it's ugly head and debunk that fantasy.
/rant >.>
In the real world us web developers have to deal with interoperability on many different levels. We have to make sure the layout looks the same on Internet Explorer, Firefox, Opera, and Safari with Windows XP & Vista, OSX, and Linux using the same code base. Most of this however has a lot to do with how talented your CSS developer is. And unfortunately for you kiddies, any less isn't perfect.
So to spell it out for those that don't know, here's the real difference between WYSIWYG and pure text:
In a WYSIWYG editor you tend to do everything the same way every time you do it. That means that all your links, images, and code snippets come from the same code base and therefore have all the same pitfalls and good points. Unfortunatly the wonderful world of DOM doesn't work that way. HTML, CSS, JavaScript, and objects like Flash, Quicktime, and Java have very specific ways that they interact with each other and the browser and so what you generally find is that the reason you code by hand is not for the specific reason of coding by hand but simply put you really can not build good, quality websites with WYSIWYG editors. At some point you will most assuredly find yourself digging in the HTML.
Finally, on the topic of validating your markup. The Markup validaters that are out there are only good as tools of the trade and shouldn't be used as the end-all be-all certification of quality markup. They are tools that should be used by a web developer to run through and make sure they can be as close to valid as possible but I am willing to bet that out of the top 100 sites on the internet, the front page of all of them will produce Markup validation errors. The reason is simple: The validation rules are so restrictive that there is no point even worrying about them. It would be impossible to make a working website by being totally loyal to the markup rules.
Especially with the validator's stupidity in treating & signs in the href attribute of my a elements as the beginning of an entity which it's not!
I hear they have people who hand-write the news stories: sentence by sentence, word by word. Can you imagine?
Better results? Probably. Faster? No way. Never. Not gonna happen. Maybe they mean faster in the way that it is faster for guys who hand code lines of html all day to hand code lines of html all day because they don't have the first clue of how to use a WYSIWYG editor? If they know code so well, why not use Dreamweaver in pure code mode? The management tools of the suite alone are worth the ?extra? time.
How I wish that was true.
It's the case for almost any *large* dynamic website, but having spent a couple of years doing web development in the design industry, I can tell you that at least in the UK, a large proportion of the small agencies are using Dreamweaver for most things.
Fuck knows why - I'd rather be handed an Illustrator file and turn it into HTML then have the crap that Dreamweaver spits out given to me, and have to try and turn it into something dynamic.
Great, now if only they would hire the best journalists!
Anyone who's read even a modicum of literature would be aware that misspelt is the older/English spelling of the "American" misspelled. Of course, for anyone educated in our school system who lacks the interest or motivation to go beyond the standard curriculum, 100% reliance on the spell-checking function of their browser would lead them to believe that misspelt is mispelled. :-)
:-)
I must say however, that your insistence on lumping everyone in this country into the "ignorant American" stereotype is also pretty annoying and reinforces negative aspects the snobby European stereotype.
Interested in a Flash-based MAME front end? Visit mame.danzbb.com
Emacs has a mode for that.
Information doesn't want to be anthropomorphized anymore.