Home > Domino Tips > Developer > Scott Lemieux on Java vs. LotusScript
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

LOTUSSCRIPT

Scott Lemieux on Java vs. LotusScript


Scott Lemieux
04.30.2004
Rating: -3.50- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Scott Lemieux
This is the fourth and final in a series of expert responses to the SearchDomino.com developer discussion forum question: "What are the advantages and disadvantages of writing a Java agent over a LotusScript agent?" We asked SearchDomino.com expert Scott Lemieux for his opinion. View the original question in the forum and let us know what you think!

See what SearchDomino.com application development expert Brian Mahoney, Domino development expert Andre Guirard, and Web development expert Jens Bruntt had to say about Java vs. LotusScript.


Java vs. LotusScript? Hmm, what does it need to do and how much time to I have to write it? The question of what language to code in -- Java or LotusScript -- most often comes down to which language you are most familiar with and the amount of time you have been allocated to write your code. It could also be determined by what the code needs to do, such as interact a great deal with the Notes client UI. Beyond that, most arguments are purely semantic. Both languages are interpreted at runtime, rely on a number of underlying libraries to run and work on all the favorite operating systems of today.

If you go to everyone's favorite search engine, Google, and search on "LotusScript," you'll get approximately 87,800 matches. Try a similar generic search on "Java" and you will get somewhere around 62,700,000 matches. Now you would expect the Java matches to be considerably higher, but over 62 million more seems a like a big gap between these two languages. Although, many of those hits could be trade journal references to the current hot technology language. Regardless, here are some key things we take into consideration when designing an application:

  • Do you need to interact with the Notes UI classes -- NotesUIDocument, NotusUIView, etc.?
  • Are using COM classes to access other software applications like MS Word or Excel?

    These are good cases for LotusScript.

  • Does your application need to communicate with clients other than Notes or a browser, such as a PDA or manufacturing equipment?
  • Are you interfacing with Web services and or XML data?

    These are good cases for Java.

    I know, I know ... you can "do" Web services and work with XML via LotusScript using SOAPConnection and DXL, respectively. You can also make calls into Java libraries using LS2J. Is one path better than the other? It almost always depends on who you ask. If you asked me, I would reply, "It depends!"

    In almost all of our consulting engagements we use LotusScript. Most companies we deal with want the agents and underlying code written in LotusScript so their internal Domino developers can support the application after our portion of the project is complete. That's because most Notes developers are still working exclusively with LotusScript and the Formula language. Java as a standard development language is something many organization using Domino have still not formally adopted.

    We use Java for the development of our fleXML tool for two reasons: Java provides a standardized XML interface (versus DXL, which is Domino only); and, we can more easily take our Java application to other operating systems and server platforms (i.e. non-Domino on non-Windows; e.g. an Apache/Tomcat application running on Solaris). Java also offers all the benefits of a much larger development community -- the people behind those 62 million hits on Google.

    Scott Lemieux is an expert on SearchDomino.com, and president of Stone Pond Consulting, which specializes in delivering complex data integrations using Lotus and non-Lotus technologies.

    Do you have comments on this tip? Let us know.


    Rate this Tip
    To rate tips, you must be a member of SearchDomino.com.
    Register now to start rating these tips. Log in if you are already a member.




    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



    RELATED CONTENT
    Java
    Java code inserts data from Notes documents into a SQL table
    Java code shortens strings in a SQL table
    How to execute a stored procedure in Lotus Notes Domino using Java
    How to return an HTML representation of a Lotus Notes rich-text field
    Shrink Lotus Notes databases with many attachments
    Converting Lotus Notes Domino Web pages to PDF files with a Java agent
    A bevy of Notes/Domino development tips
    Converting Web pages to images using Java
    Creating Microsoft Word documents from Lotus Notes
    FAQ: Java for Lotus Notes and Domino

    LotusScript
    LotusScript agent parses ACL to Microsoft Notepad
    LotusScript finds the first occurrence of a string from the right
    Clear Recent Contacts view and prevent repopulation in Lotus Notes 8.x
    Search Microsoft Active Directory with LotusScript
    Three steps to trap and handle save conflicts with LotusScript
    Troubleshoot agents by displaying LotusScript variables online
    LotusScript sorts lists alphabetically
    LotusScript code rebuilds corrupted busytime.nsf file
    Soft-code item names to facilitate LotusScript management
    LotusScript agent automates selective mail file replication

    Java for Lotus Notes Domino
    Top 10 Lotus Notes/Domino coding and development tips of 2008
    Java code inserts data from Notes documents into a SQL table
    Java code shortens strings in a SQL table
    How to execute a stored procedure in Lotus Notes Domino using Java
    Top 10 Lotus Notes Domino programming and development tips of 2007
    How to return an HTML representation of a Lotus Notes rich-text field
    Shrink Lotus Notes databases with many attachments
    Converting Lotus Notes Domino Web pages to PDF files with a Java agent
    Developing Eclipse plug-ins for Lotus Notes and Domino -- 7 tips in 7 minutes
    A bevy of Notes/Domino development tips

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary

    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



  • Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
    HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts