Title: Tech Times
Email not displaying correctly? View it in your browser.

Issue 218: December 2, 2008  Tips, Tricks, News and Reviews for Web Coders

Introduction

Andrew TetlawWelcome to another edition of the SitePoint Tech Times. In this edition: the 2008 SPF Community Awards, the SitePoint Podcast, and Dreamweaver CS4.

It's once again time for the SitePoint Forum Community Awards. The SPF Community Awards represent recognition of the significant contributions of forum members in a variety of categories. Voting for the 2008 awards is now open, and you could win yourself one of four SitePoint kits just for submitting your vote.

The SitePoint Podcast is now up and running. You can listen to it on sitepoint.com or subscribe via RSS, or iTunes. As this is early days for the podcast, the guys would really appreciate some feedback.

Is Dreamweaver CS4 the right tool for you? In this edition, Kevin puts the new Dreamweaver through its paces and discovers that it depends if you're a designer or a developer.

Top

EXPAND YOUR BUSINESS WITH W3 MARKUP

w3markup.com

Complete more projects each week! Here's how, we provide:

  • Pixel-precise hand-coded Valid CSS & HTML
  • Theme or "skin" implementation into popular software like: WordPress, ExpressionEngine, Drupal, Joomla, MovableType, Blogger, CubeCart, X-Cart, Shopify, even HTML Email templates
  • Search engine friendly semantic coding
  • 100% cross-browser, cross-platform browser compatibility
  • Money back guarantee and 100% non-disclosure

Get started here and save 20% for a limited time

Summary

Dreamweaver CS4: A Powerful Tool for an Imperfect World

by Kevin Yank

With the just-released Dreamweaver CS4, Adobe has conceded that web design has moved on. No longer are designers content to limit themselves to what can be built with WYSIWYG tools; instead, Dreamweaver CS4 shifts focus to providing powerful tools for code-savvy front-end designers like you and me! With the WebKit rendering engine at its core, Dreamweaver CS4 embraces best practice in every aspect of client-side design. If only it went as far on the server side.

Up to and including Dreamweaver CS3, the program was clearly conceived to protect web designers from all the scary code that goes into building a site. It let you generate HTML markup using toolbar buttons and property inspectors instead of tags and attributes. It let you style that markup using wizards and panels instead of CSS rules and properties. The Code View was there if you needed it, but the program did its best to make sure you didn’t.

In recent years, this had become a losing battle as more and more designers needed to take control of their code. It didn’t just matter what the finished product looked like; designers had started to care about what the code looked like too. Dreamweaver’s helpful attempts to hide code behind simple tools became a hindrance more than a help.

Clearly, Adobe has been paying attention. Although the WYSIWYG Design View is still there, as are the panels and wizards, Dreamweaver CS4 adds support for a whole new way of working—one that is largely code-oriented.

Screenshot: the Related Files Bar

Open an HTML (or PHP, ColdFusion, JSP, ASP, ASP.NET) file in Dreamweaver CS4, and the new Related Files bar instantly displays every other code file in your site that is used to display that page in a browser (or assemble it on the server). Switch on the Live Preview, and instead of the dumb WYSIWYG view of your page, you’ll see the fully-rendered page with all server-side and _javascript_-powered features intact.

Screenshot: Live View

Powered by the open source WebKit engine at the heart of browsers like Safari and Google Chrome, the Live Preview is not merely a preview, but a code navigation tool: double-click any element on the page, and the code panel will jump to the HTML code responsible for generating it. If that code is contained in another file, that file is automatically selected in the Related Files bar so that you can edit it without leaving the main file (or its Live Preview) behind!

Screenshot: select any element, click the crosshairs and get the code
related to that item

It gets better: Alt-click (⌘⌥-click on the Mac) any element in the Live Preview, and up pops the Code Navigator with a breakdown of the CSS rules that contribute to the element’s appearance! Click any of these to jump straight to the relevant line of code, where you can make adjustments and watch the Live Preview update instantly.

Read on for my thoughts on why Dreamweaver CS4 may or may not be for you…

Top

Web Hosting Buzz

  • Over 6 years in Web Hosting Business.
  • Providing professional web hosting solutions to over 50,000 web masters.
  • Affordability, great uptime and customer satisfaction come as standard.
  • In house staff of over 150 people.
  • Hosting available in New Jersey, Atlanta, Seattle and Houston based data centers.

Purchase your Budget Web Hosting or professional Reseller Web Hosting plan today. You may call us at 1 800 252 1887 or email our Sales Department should you have any pre-sales inquiries.

How the Other Half Lives

With its emphasis on hardcore front-end coding, Dreamweaver CS4 deserves the attention of an entire generation of web designers who thought they had outgrown it. For the first time in many years, Dreamweaver is once again a tool for developers on the leading edge—not those left behind.

That isn’t to say Dreamweaver CS4 is perfect. As it embraces and empowers the current generation of front-end coders, leading-edge server side developers are left in the dust. Near as I can tell, this is due to a fundamental assumption in the application: that the URL structure of your site corresponds to its file structure.

In a simpler time, every distinct page design on your site was represented by an HTML file—or a server-side script file that generated HTML. If you wanted to view that page in a browser, you typed the file’s name in the URL. If you wanted to edit the page, you opened the file in Dreamweaver.

I don’t know about you, but I haven’t built a site that way in a few years. These days, sites are built using powerful server-side frameworks, which dynamically translate URLs into actions to be taken, data to be queried, or—in some cases—HTML view templates to be displayed. In such systems, the names of the files responsible for generating HTML pages usually have little in common with the URLs used to request them. For example, the URL path /article/12/page/3 might map to a template file named /templates/article.tpl.

Out of the box, Dreamweaver cannot deal with this kind of codebase. If you open (say) a PHP script that actually handles browser requests, Dreamweaver’s Related Files bar will not be able to find any of the HTML, CSS, or _javascript_ code that make up the pages of your site. If you open up an HTML template, Dreamweaver’s Live View will not be able to figure out the right URL to request to get a page that uses that template.

Watch that First Step…

Dreamweaver has always been a tool for an imperfect world. In previous versions, it aimed to support developers stuck in the old way of doing things who shied away from the code that went into the sites they built.

With CS4, Dreamweaver has taken one step out of the ocean and onto the dry land of modern web development. It recognizes that today’s leading developers care about code, and want tools that help them write it, not hide it from them. If you have the luxury of working on static sites, preparing initial mockups for later integration with server-side code, or if you too have only taken the first step into modern web development, Dreamweaver CS4 could be the perfect tool for you. Sadly, I’ll have to wait for Adobe to plant both feet firmly in the now.

It’s a shame, really. Dreamweaver CS4’s front-end coding tools are so powerful that I wish every web developer could use them! I can honestly say that it has been nearly ten years since I would have considered using Dreamweaver myself, but I really want to use Dreamweaver CS4.

Perhaps this gap is something that could be bridged with a slick Dreamweaver extension. Call it the Live URL Mapper. With it, developers could configure the URLs that Live Preview used to request HTML template files, and the static resources (image, CSS and _javascript_ files) they referenced. Whether this is possible depends on how extensible Dreamweaver CS4’s Live Preview mechanism is under to hood.

If not, developers using today’s cutting edge server-side frameworks will have to wait for Dreamweaver CS5. With such a strong set of client-side tools, it only makes sense for Adobe to turn its focus to the world of modern server-side frameworks. If Adobe does anywhere near as good a job there as it has supporting modern front-end development, it will turn a lot of heads—including mine.

Plan on trying Dreamweaver CS4? Leave a comment on the blog post to let me know!

kev _javascript_ & CSS Blog: Stylish Scripting
by Kevin Yank

Dreamweaver CS4: A Powerful Tool for an Imperfect World

Top

Create and Deploy Rich Internet Applications on the Desktop with Adobe® AIR™ software.

The Adobe(R) AIR(TM) runtime lets Ajax developers use proven web technologies to build rich Internet applications that deploy to the desktop and run across operating systems. Build applications that are more responsive, engaging, and valuable for users.

Download the Adobe AIR SDK to start building applications today.

See you next week!

Andrew Tetlaw
[EMAIL PROTECTED]
SitePoint Technical Editor

Top

Latest Release

The Ultimate HTML Reference

Book

Tell me more..

Free Book Samples

Simply _javascript_
Simply Rails 2
Build Your Own Database Driven Website Using PHP & MySQL, 3rd Ed.
The PHP Anthology, 2nd Ed.

New Technical Articles

Section 508: Uncle Sam's Guide To Web Accessibility

Rob BallouIf you've ever worked on a US federal government web site, you've probably encountered Section 508 law for web accessibility. In this article, Rob wades through the jargon to deliver the tips you need to ensure the sites you build are compliant.

Full Story...

 Techy Forum Threads

 More Techy Blog Entries

News & Trends

Poll: Flash or Silverlight?
4 comments
Bad News for Microsoft: Windows, IE Net Usage Dip Lower
7 comments
Google's Operating System Arrives - But Not From Google
5 comments
Famous Rails Screencast Gets an Update
4 comments
15 Awesome Gifts for the Geek in Your Life
14 comments

Podcast

SitePoint Podcast #3: A Richer Web?
3 comments

Web Tech

Win SitePoint Books At Web-blast '08
2 comments
Quick and Easy Graphing with the Google Chart API
7 comments
W3C Markup Validation Service adds experimental HTML5 support
4 comments

Web Design

Adding the SitePoint References to Coda

Help Your Friends Out

People you care about can benefit from the wealth of information on new and maturing technologies available on the Internet. Help them learn how to do it by forwarding them this issue of the Tech Times!

Send this to a friend
You are subscribed as : [EMAIL PROTECTED]

Unsubscribe [EMAIL PROTECTED] from this list.

Manage your subscriptions.

View the newsletter archives.

Mailing Address:
48 Cambridge St, Collingwood, VIC, 3066 AU
Phone: +61 3 9090 8200
© Copyright 2008 SitePoint. All rights reserved.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MIS.Suresh" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/missuresh?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to