topics that matter; ideas worth sharing

share a tip, submit a link, add something new

Code Generators Done Right

July 9, 2002, 12:00 AM —  ITworld — 

Sometimes, the easiest way to win is not to play, or at least not to
hard code. Or not do the hard parts of coding. Or something like that.
Hey, I write technical columns for a reason.

Anyway, plenty of Web application development environments have tried to
put happy faces on JavaScript. Code generators -- call them what you
like, but they're code generators -- usually allow you to do your design
work in a graphical interface that looks something like Microsoft Word
or another document generation utility. They're good to an extent, but
the text editors invariably come out at some point during the
development process. Some of us do *everything* in a text editor,
thereby cutting straight to the chase.

Code generators that admit what they are and don't try to conceal their
true purpose are the best kind. A code generator, JavaScript or
otherwise, should announce the kind of code it's going to put out, then
guide you through the options you can build into that code. The menu
builder utility on javascript.internet.com is a perfect example. It
generates a code module that causes your browser to render a menu,
complete with a series of headers, options, and linked commands. You put
in the labels you want, specify the links for each, and give some advice
about style and behavior. Then you turn the utility loose, and you get a
stretch of JavaScript to paste into your pages.

It'll work well with your text editor!

» posted by ITworld staff

ITworld

I like it!
Post a comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
Resources
White Paper

Symantec Backup Exec 12 and Backup Exec System Recovery 8 deliver industry leading Windows data protection and system recovery. Download this whitepaper to find out the top reasons to upgrade and how to get continuous data protection and complete system recovery.

Webcast

Data and system loss — from a hard drive failure, malicious attack, natural disaster, or simple human error — can happen anytime. Don’t leave your business vulnerable. Make sure you have a secure recovery strategy in place. Symantec's latest backup and system recovery technology can efficiently restore critical applications, individual emails and documents and even restore your entire system in minutes in the event of a loss.

White Paper

Businesses face a growing challenge to ensure that the IT environment is properly protected. Backup Exec 12 integrates with other applications in the Symantec family of products, to complement your current data protection strategy, keep your data securely backed up and make it recoverable when you need it most.

Free stuff
Featured Sponsor

Get a broad understanding of important regulations and how you can make sure your site is in adherence.





Learn how VeriSign SGC-enabled SSL Certificates can help improve site security and customer confidence in the free white paper, "How to Offer the Strongest SSL Encryption." In this paper you will learn the differences between weak and strong encryption and what they mean for your site's performance.

Get VeriSign's free white paper: "The Latest Advancements in SSL Technology" and learn about the benefits of strong SSL encryption, Extended Validation (EV) SSL and security trust marks and what these SSL offerings can do for your site.

Now with Extended Validation (EV) SSL available from VeriSign, you can show your customers that they can trust your site. Learn about EV SSL benefits in this free VeriSign white paper.

More Resources