When to Use JavaScript

Now that developers have all these great choices of languages in which to build applications in Domino, the big questions are "What language do I use, when do I use it, and what for?" These are not easy questions to answer. Here are some guidelines that will help you in answering those questions when it comes to JavaScript and LotusScript.

JavaScript Versus LotusScript

When to use what language is a question of expertise. It's when to know how to apply the right technique for the appropriate program. Table 16.1 serves as a guideline to help you discern which language is most likely right for the job.

Table 16.1. JavaScript Versus LotusScript

What Language What For When Used
JavaScript Notes and Web development Notes and interactive apps for the Web
@Formulas Notes development Notes, Notes agents, and agents for the Web
LotusScript Notes development Notes, Notes agents, and agents for the Web

Another way to look at this would be to use the following criteria.

Use JavaScript if you are

Use LotusScript if you are

There really isn't any rule of thumb, per se, other than your own good judgment. Often developers find themselves mixing languages in an application, tapping into the strengths of each for the best possible outcomes more often than you think.

Категории