Close
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
Read Down
Sign in
Close
Welcome!Log into your account
Forgot your password?
Read Down
Password recovery
Recover your password
Close
Search
Logo
Subscribe
Logo
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
More
    Subscribe
    Home Applications
    • Applications
    • Cloud
    • Development
    • IT Management

    REVIEW: Building for the Cloud with Force.com and Eclipse

    Written by

    Jeff Cogswell
    Published February 3, 2010
    Share
    Facebook
    Twitter
    Linkedin

      eWEEK content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

      About two years ago, Salesforce.com introduced its Force.com offering, through which the software-as-a-service giant invited developers to create cloud-based applications that would run on Salesforce.com’s own infrastructure.
      I must say that when I first heard about Salesforce.com’s efforts to allow development for the cloud through its own Force.com site, I was a bit skeptical about the initiative. However, as I started to use the tools and feel my way around, my doubts gave way to intrigue.

      Labs Gallery: Eclipse Plug-in Taps into Force.com

      Salesforce.com has assembled a somewhat overwhelming array of development tools for the service, enough to ensure that developers of various skill levels and tool persuasions should find a fit path to developing a Force.com application. I found options spanning from filling out form-based applications through a Web interface to writing raw code right from my desktop.
      Among the numerous tools provided along with this service is a powerful plug-in for building Force.com applications right from within the Eclipse IDE (integrated development environment), which I recently put to the test. All told, Force.com is a very promising addition to Salesforce’s line of services and well worth further evaluation, particularly for organizations already using Salesforce applications.
      Force.com and Eclipse
      I focused on the Force.com IDE, an Eclipse plug-in that enables developers to work from their desktops as they develop software for deployment on Force.com servers-an approach that reminded me of the Amazon AWS Toolkit for Eclipse that I reviewed not too long ago. As with that Amazon plug-in and most other Eclipse plug-ins I’ve tested, installation of the Force.com IDE was a snap. The version of the plug-in I tested didn’t yet support the latest Eclipse release, Version 3.5, but since Eclipse lives inside its own isolated directory on my computer, I had no trouble maintaining simultaneous 3.5 and 3.4 installations.
      Development for the Force.com platform is a bit unusual compared with traditional Eclipse development in that almost all aspects of the development actually take place on the Force.com servers. As such, when I created a new Force.com project in Eclipse, I was asked to provide my Force.com credentials, which were freely available through the Force.com developer site. As I worked in Eclipse, my code was compiled not on my local machine, but on the remote Force.com servers. Likewise, when I tested and ran the code, it all took place remotely. Yet, I found the integration rather seamless and got the feeling that the code I was working with could have been running locally.

      Yet Another Language: Apex

      Yet Another Language: Apex
      Development for Force.com requires programmers to use a new language called Apex, which runs on top of the Apex framework. The Apex framework is fundamental to the Salesforce.com servers and is not new to Force.com-it’s been part of Salesforce.com for several years. At first, I was a little concerned when I heard that the development would require the use of a new language. Fortunately, the language has traditional C-style syntax and looks very similar to Java and C#, so I felt quite at home using it.
      However, Apex does differ from C# and Java in certain respects, as conceptually it behaves similar to a database language, such as T-SQL or PL/SQL. Apex includes database constructs such as data select statements, transaction support and triggers. Salesforce has done a beautiful job of integrating data access right into the language, which is something I’ve longed for more than once in my programming career. Take a look at the Apex developer site for more information.
      Because Apex code runs on multitenant servers that are in the cloud, it’s vital that the code doesn’t get out of control, thereby hogging resources and causing other problems on the platform. With that in mind, the Apex language was built to be monitored by what Salesforce calls a “governor.” If you’re familiar with .NET managed code or the Java run-time, think of either of those on steroids. The governor carefully manages and monitors the running code-not just its data aspects, but all aspects, including loops and other control structures, to keep it within isolated boundaries. The documentation refers to Apex as a “virtual, virtual machine,” which seems fitting.
      Other Features
      The Eclipse plug-in is certainly full-featured. One particularly cool feature is for running “anonymous” code right on the remote server, on the fly. Most developers have probably done this kind of thing before in other languages (albeit in a locally run debugger) when the developer inspects an object, calls a member function right in the inspector, and watches the code run right then and there. Similarly, with the “Execute Anonymous” pane that the Force.com plug-in provides for Eclipse, I could execute code on the fly on the server and see the results right in a Results text box.
      The Apex language includes support for unit testing, and the Eclipse plug-in supports this as well. By creating unit tests right in my classes, I could easily test out my classes on the remote server from within Eclipse. Another interesting feature is the Schema Explorer, which allows developers to browse and inspect their database model on the server, graphically, right from within Eclipse.
      The Force.com development site is huge, and the Eclipse plug-in is only one small piece of it. For those who aren’t keen on writing code, the site makes available various designers that can be used to piece together an entire application right on the Website. The resulting application will run on the Force.com cloud as a set of Web pages. There are other design tools available for building Force.com applications that run inside Adobe Flash or Adobe Air run-times.
      What’s more, Force.com applications can be readily integrated with other cloud services providers, including Amazon’s Web Services, Google’s App Engine and Facebook. There are tool kits that work together with Java, as well as .NET. And there are plenty of developer-contributed libraries (such as AJAX support), as well as stand-alone tools such as a data explorer.

      Jeff Cogswell can be reached at [email protected].

      Jeff Cogswell
      Jeff Cogswell
      Jeff Cogswell is the author of Designing Highly Useable Software (http://www.amazon.com/dp/0782143016) among other books and is the owner/operator of CogsMedia Training and Consulting.Currently Jeff is a senior editor with Ziff Davis Enterprise. Prior to joining Ziff, he spent about 15 years as a software engineer, working on Windows and Unix systems, mastering C++, PHP, and ASP.NET development. He has written over a dozen books.

      Get the Free Newsletter!

      Subscribe to Daily Tech Insider for top news, trends & analysis

      Get the Free Newsletter!

      Subscribe to Daily Tech Insider for top news, trends & analysis

      MOST POPULAR ARTICLES

      Artificial Intelligence

      9 Best AI 3D Generators You Need...

      Sam Rinko - June 25, 2024 0
      AI 3D Generators are powerful tools for many different industries. Discover the best AI 3D Generators, and learn which is best for your specific use case.
      Read more
      Cloud

      RingCentral Expands Its Collaboration Platform

      Zeus Kerravala - November 22, 2023 0
      RingCentral adds AI-enabled contact center and hybrid event products to its suite of collaboration services.
      Read more
      Artificial Intelligence

      8 Best AI Data Analytics Software &...

      Aminu Abdullahi - January 18, 2024 0
      Learn the top AI data analytics software to use. Compare AI data analytics solutions & features to make the best choice for your business.
      Read more
      Latest News

      Zeus Kerravala on Networking: Multicloud, 5G, and...

      James Maguire - December 16, 2022 0
      I spoke with Zeus Kerravala, industry analyst at ZK Research, about the rapid changes in enterprise networking, as tech advances and digital transformation prompt...
      Read more
      Video

      Datadog President Amit Agarwal on Trends in...

      James Maguire - November 11, 2022 0
      I spoke with Amit Agarwal, President of Datadog, about infrastructure observability, from current trends to key challenges to the future of this rapidly growing...
      Read more
      Logo

      eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site’s focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

      Facebook
      Linkedin
      RSS
      Twitter
      Youtube

      Advertisers

      Advertise with TechnologyAdvice on eWeek and our other IT-focused platforms.

      Advertise with Us

      Menu

      • About eWeek
      • Subscribe to our Newsletter
      • Latest News

      Our Brands

      • Privacy Policy
      • Terms
      • About
      • Contact
      • Advertise
      • Sitemap
      • California – Do Not Sell My Information

      Property of TechnologyAdvice.
      © 2024 TechnologyAdvice. All Rights Reserved

      Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.