Disadvantages of the Force.com platform [closed]
Asked Answered
S

9

90

We're currently looking at using the Force.com platform as our development platform and the sales guys and the force.com website are full of reasons why it's the best platform in the world. What I'm looking for, though, is some real disadvantages to using such a platform.

Suckling answered 3/11, 2009 at 0:7 Comment(3)
This post is very old, but Salesforce is STILL totally dreadful to develop in. Even 8 years later, I still find it astounding how much time and effort must go into getting round its many shortcomings.Indelicacy
@Indelicacy Do you have recent experience with salesforce? Is it better now or still the same? Was any of the 10 points from jeremy ross improved?Kunming
@Kunming yes still working on it, although gradually expanding to other tech. I will answer your question in the comments under Jeremy Ross's 10 points...Indelicacy
O
145

Here are 10 to get you started.

  1. Apex is a proprietary language. Other than the force.com Eclipse plugin, there's little to no tooling available such as refactoring, code analysis, etc.
  2. Apex was modeled on Java 5, which is considered to be lagging behind other languages, and without tooling (see #1), can be quite cumbersome.
  3. Deployment is still fairly manual with lots of gotchas and manual steps. This situation is slowly improving over time, but you'll be disappointed if you're used to having automated deployments.
  4. Apex lacks packages/namespaces. All of your classes, interfaces, etc. live in one folder on the server. This makes code much less organized and class/interface names necessarily long to avoid name clashes and to provide context. This is one of my biggest complaints, and I would not freely choose to build on force.com for this reason alone.
  5. The "force.com IDE", aka force.com eclipse plugin, is incredibly slow. Saving any file, whether it be a class file, text file, etc., usually takes at least 5 seconds and sometimes up to 30 seconds depending on how many objects, data types, class files, etc. are in your org. Saving is also a blocking action, requiring not only compilation, but a full sync of your local project with the server. Orders of magnitude slower than Java or .NET.
  6. The online developer community does not seem very healthy. I've noticed lots of forum posts go unanswered or unsolved. I think this may have something to do with the forum software salesforce.com uses, which seems to suck pretty hard.
  7. The data access DSL in Apex leaves a lot to be desired. It's not even remotely competitive with the likes of (N)Hibernate, JPA, etc.
  8. Developing an app on Apex/VisualForce is an exercise in governor limits engineering. Easily half of programmer time is spent trying to optimize to avoid the numerous governor limits and other gotchas like visualforce view state limits. It could be argued that if you write efficient code to begin with you won't have this problem, which is true to an extent. However there are many times that you have valid reasons to make more than x queries in a session, or loop through more than x records, etc.
  9. The save->compile->run cycle is extremely slow, esp. when it involves zipping and uploading the entire static resource bundle just to do something like test a minor CSS or javascript change.
  10. In general, the pain of a young, fledgling platform without the benefits of it being open source. You have no way to validate and/or fix bugs in the platform. They say to post it to their IdeaExchange. Yeah, good luck with that.

Disclaimers/Disclosures: There are lots of benefits to a hosted platform such as force.com. Force.com does regularly enhance the platform. There are plenty of things about it I like. I make money building on force.com

Oilskin answered 3/11, 2009 at 21:9 Comment(15)
I'd love force.com if they did managed site hosting and I could get my data, not just the extras, or through some API, but a nightly incr. backup of my Oracle dataset. Do the salesforce guys offer this? I've never been able to get a straight answer out of their sales guys, which I always take as a no.Kidderminster
They don't give you such "raw" access to your data. There is a backup service that gives you zipped CSVs of your org on a regular basis. There's also a replication api that allows you to keep your own side by side backup in pseudo real time.Oilskin
@Jeremy out of curiousity... how much time do you spend in the eclipse ide plugin vs just setting things up in the "setup" menu's within a salesforce application?Suckling
I personally spend 90% of my time in either eclipse or a text editor (TextMate, in my case). But that's because someone else usually does a lot of the basic data configuration. The configuration of custom objects and fields is done in salesforce.com, not code, because there is no DDL in the force.com world. There is a metadata api, but I never use it during data design.Oilskin
@JeremyRoss - do you still work on the force.com platform, has it improved since you answered this question?Windcheater
It's improved some, but not near as much as I'd like. There are some decent improvements on the roadmap. Let's hope they get here sooner than later.Oilskin
"10 to get you started"... I'll pass on starting.Tristram
Really ejoied the part "I make money building on force.com" because I feel the same :)Fakery
There are several of these points that are out of date at this point. The developer community is much better these days. Check out salesforce.stackexchange.com. The tooling around development is also getting much better. Try mavensmate.comAnchie
Almost five years later and all points except #6 are still valid. Now we have a Salesforce Stack Exchange to help. Salesforce's developer forums are a lot better now, but try to suggest anything to Salesforce that makes developers' lives easier. Even with hundreds of votes it will sit around ignored. That is what you get with vendor lock-in. That being said, I too make money with this platform so it is not all bad.Dijon
This is quite old, but as far as I see many of these disadvantages are still valid 6 years later. Also, there are various bugs in the platform which I would consider 'critical' but the Salesforce folk just don't take seriously at all. I would consider their response to bug reports to be unprofessional at best.Indelicacy
Syntax of Visualforce is very big mistake in my opinion. They want to replace HTML instead of expand it. Better solution is Syntax of Twig, or Syntax of other Template Language...Riffraff
As requested by @Kunming I will go through the 10 points with updated info: 1 and 2. Apex is still pretty much the same, still proprietary, still based on Java 5, still dreadful. Those points still stand. 3. Deployment has improved with SFDX. 4. Salesforce now supports 2GP (2nd generations packaging). It is pretty complicated but it is an improvement. 5 The Force.com IDE is dead and gone, and good riddance to it. There are plugins available for VS Code and IntelliJ which are vast improvements. 6. Totally true. Instead use Salesforce Stack Exchange. TBC...Indelicacy
Continued... 7 & 8 unchanged. 9 Improved by SFDX. 10 no longer young & fledgeling but the rest is still true. The biggest improvement is SFDX (Salesforce Developer eXperience) which makes your Github repo the source of truth, not the org.Indelicacy
@Indelicacy what do you mean by Salesforce Developer eXperience (SFDX) which makes your Github repo the source of truth Do you mean the trailheadapps dreamhouse sample?Kunming
S
38

I see you've gotten some answers, but I would like to reiterate how much time is wasted getting around the various governor limits on the platform. As much as I like the platform on certain levels, I would very strongly, highly, emphatically recommend against it as a general application development platform. It's great as a super configurable and extensible CRM application if that's what you want. While their marketing is exceptional at pushing the idea of Force.com as a general development platform, it's not even remotely close yet.

The efficiency of having a stable platform and avoiding big performance and stability problems is easily wasted in trying to code around the limits that people refer to. There are so many limits to the platform, it becomes completely maddening. These limits are not high-end limits you'll hit once you have a lot of users, you'll hit them almost right away.

While there are usually techniques to get around them, it's very hard to figure out strategies for avoiding them while you're also trying to develop the business logic of your actual application.

To give you a simple sense of how developer un-friendly the environment is, take the "lack of debugging environment" referred to above. It's worse than that. You can only see up to 20 of the most recent requests to the server in the debug logs. So, as you're developing inside the application you have to create a "New" debug request, select your name, hit "Save", switch back to your app, refresh the page, click back to your debug tab, try to find the request that will house your debug log, hit "find" to search for the text you're looking for. It's like ten clicks to look at a debug output. While it may seem trivial, it's just an example of how little care and consideration has been given to the developer's experience.

Everything about the development platform is a grafted-on afterthought. It's remarkable for what it is, but a total PITA for the most part. If you don't know exactly what you are doing (as in you're certified and have a very intimate understanding of Apex), it will easily take you upwards of 10-20x the amount of time that it would in another environment to do something that seems like it would be ridiculously simple, if you can even succeed at all.

The governor limits are indeed that bad. You have a combination of various limits (database queries, rows returned, "script statements", future calls, callouts, etc.) and you have to know exactly what you are doing to avoid these. For example, if you have a calculated rollup "formula" field on an object and you have a trigger on a child object, it will execute the parent object triggers and count those against your limits. Things like that aren't obvious until you've gone through the painful process of trying and failing.

You'll try one thing to avoid one limit, and hit another in a never ending game of "whack a limit". In the process you'll have to drastically re-architect your entire app and approach, as well as rewrite all of your test code. You must have 75% test code coverage to deploy into production, which is actually very good thing, but combined with all of the other limits, it's very burdensome. You'll actually hit governor limits writing your test code that wouldn't come up in normal user scenarios, but that will prevent you from achieving the coverage.

That is not to mention a whole host of other issues. Packaging isn't what you expect. You can't package up your app and deliver it to users without significant user intervention and configuration on the part of the administrator of the org. The AppExchange is a total joke, and they've even started charging 5K just to get your app listed. Importing with the data loader sucks, especially if you have any triggers. You can't export all of your data in one step that includes your relationships in such a way that it can easily be re-imported into another org in a single step (for example a dev org). You can only refresh a sandbox once a month from production, no exceptions, and you can't include your data in a refresh by default unless you have called your account executive to get that feature unlocked. You can't mass delete data in custom objects. You can't change your package names. Certain things can take numerous days to complete after you have requested them, such as a data backup before you want to deploy an app, with no progress report along the way and not much sense of when exactly the export occurred. Given that there are synchronicity issues of data if there are relationships between the data, there are serious data integrity issues in that there is no such thing as a "transaction" that can export numerous objects in a single step. There are probably some commercial tools to facilitate some of this, but these are not within reach to normal developers who may not have a huge budget.

Everything else the other people said here is true. It can take anywhere from five seconds to a minute sometimes to save a file.

I don't mean to be so negative because the platform is very cool in some ways and they're trying to do things in a multi-tenant environment that no one else is doing. It's a very innovative environment and powerful on some levels (I actually like VisualForce a lot), but give it another year or two. They're partnering with VMware, maybe that will lead to giving developers a bit more of a playpen rather than a jail cell to work in.

Scotism answered 24/4, 2010 at 0:2 Comment(4)
More that 2 years after this answer, what about the platform these days? Has it improved, some of this cumbersome issues are solved or at least aliviated?Axilla
Bump, im also want to know if things are changed during those 2 years.Dundee
I can't comment on the AppExchange, but I found this thread after mashing "salesforce.com sucks" into google in frustration with triggers and governor limits and jumping through hoops to deal with very simple data....just lots of it. Take that as you will ;)Gadwall
@Axilla I'll see your two years and add another three and change. It has made some token improvements but by and large this answer is still correct.Dijon
S
25

Here are a few things I can give you after spending a fair bit of time developing on the platform in the last fortnight or so:

  1. There's no RESTful API. They have a soap based API that you can call, but there is no way of making true restful calls

  2. There's no simple way to take their SObjects and convert them to JSON objects.

  3. The visual force pages are ok until you want to customize them and then it's a whole world of pain.

  4. Visual force pages need to be bound to SObjects otherwise there's no way to get the standard input fields like the datepicker or select list to work.

  5. The eclipse plugin is ok if you want to work by yourself, but if you want to work in a large team with the eclipse plugin forget it. It doesn't handle synchronizing to and from the server, it crashes and it isn't really helpful at all.

  6. THERE IS NO DEBUGGER! If you want to debug, it's literally debugged by system.debug statements. This is probably the biggest problem I've found

  7. Their "MVC" model isn't really MVC. It's a lot closer to ASP.NET Webforms. Your views are tightly coupled to not only the models but the controllers as well.

  8. Storing a large number of documents is not feasible. We need to store over 100gb's of documents and we were quoted some ridiculous figure. We've decided to implement our document storage on amazons S3 infrastructure

  9. Even tho the language is java based, it's not java. You can't import any external packages or libraries. Also, the base libraries that are available are severely limited so we've found ourselves implementing a bunch of stuff externally and then exposing those bits as services that are called by force.com

  10. You can call external SOAP or REST based services but the message body is limited to 100kb's so it's very restrictive in what you can call.

In all honesty, whilst there are potential benefits to developing on something like the force.com platform, for me, you couldn't use the force.com platform for true enterprise level apps. At best you could write some basic crud style applications but once you move into anything remotely complicated I'd be avoiding it like the plague.

Suckling answered 10/12, 2009 at 12:35 Comment(4)
RESTful API is now available for forcePedraza
JSON Serialization and De-Serialization is available for Non SObject.Janitor
How did you integrate your Amazon document storage with Salesforce (assuming that you did)?Butter
There is a debugger now, but it does cost extra. Winter '16 Release NotesHollyhock
T
14

Wow- there's a lot here that I didn't even know were limitations - after working on the platform for a few years.

But just to add some other things...

The reason you don't have a line-by-line debugger is precisely because it's a multi-tenant platform. At least that's what SFDC says - it seems like in this age of thread-rich programming, that isn't much of an excuse, but that's apparently the reason. If you have to write code, you have "System.debug(String)" as your debugger - I remember having more sophisticated server debugging tools in Java 1.2 about 12 years ago.

Another thing I really hate about the system is version control. The Spring framework is not used for what Spring is usually used for - it's really more off a configuration tool in SFDC rather than version control. SFDC provides ZERO version-control.

You can find yourself stuck for days doing something that should seem so ridiculously easy, like, say, scheduling a SFDC report to export to a CSV file and email to a list of recipients... Well, about the easiest way to do that is create a custom object with a custom field, with a workflow rule and a Visualforce email template... and then for code you need to write a Visualforce component that streams the report data to the Visualforce email template as an attachment and you write anonymous APEX code schedule field-update of the custom object... For SFDC developers, this is almost a daily task... trying to put about five different technologies together to do tasks that seem so simple.... And this can cause management headaches and tensions too - Typically, you'd find this out after getting a suggestion to do something that doesn't work in the user-community (like someone already said), and then trying many things that, after you developed them you'd find they just don't work for some odd-ball reason - like "you can't schedule a VisualForce page", or "you can't call getContent from a schedulable context" or some other arcane reason.

There are so many, many maddening little gotcha's on the SFDC platform, that once you know WHY they're there, it makes sense... but they're still very bad limitations that keep you from doing what you need to do. Here's some of mine;

  1. You can't get record owner information "out of the box" on pretty much any kind of record - you have to write a trigger that links the owner on create of the record to the record you're inserting. Why? Short answer because an owner can be either a "person" or a "queue", and the two are drastically different entities... Makes sense, but it can turn a project literally upside down.

  2. Maddening security model. Example: "Manage Public Reports" permission is vastly different from "Create and Customize Reports" and that basically goes for everything on the platform... especially folders of any kind.

  3. As mentioned, support is basically non-existent. If you are an extremely self-sufficient individual, or have a lot of SFDC resources, or have a lot of time and/or a very forgiving manager, or are in charge of a SFDC system that's working fine, you're in pretty good shape. If you are not in any of these positions, you can find yourself in deep trouble.

SFDC is a very seductive business proposition... no equipment footprint, pretty good security, fixed price, no infrastructure, AND you get web-based CRM with batchable, and schedualble processing... But as the other posters said, it is really quite a ramp-up in development learning, and if you go with consulting, I think the lowest price I've seen was $200/hour.

Salesforce tends integrate with other things years after some technologies become common-place - JSON and jquery come to mind... and if you have other common infrastructures that you want to do an integration with, like JIRA, expect to pay a lot extra, and they can be quite buggy.

And as one of the other posters mentioned, you are constantly fighting governor limits that can just drive you nuts... an attachment can NOT be > 5MB. Period. And sometimes < 3MB (if base64 encoded). Ten HTTP callouts in a class. Period. There are dozens of published governor limits, and many that are not which you will undoubtedly find and just want to run out of your office screaming.

I really, REALLY like the platform, but trust me - it can be one really cruel mistress.

But in fairness to SFDC, I'd say this: the biggest problem I find with the platform is not the platform itself, but the gargantuan expectations that almost anyone who sees the platform, but hasn't developed on it has.... and those people tend to be in positions of great authority in business organizations; marketing, sales, management, etc. Huge disconnects occur and heads roll, or are threatened to roll daily - all because there's this great platform out there with weird gotchas and thousands of people struggling daily to get their heads around why things should just work when they just don't and won't.

EDIT:
Just to add to lomaxx's comments about the MVC; In SFDC terminology, this is closely related to what's known as the "viewstate" -- aand it can be really buggy, in that what is on the VF page is not what is in the controller-class for the page. So, you have to go throught weird gyrations to synch whats on the page with what the controller is going to write to SF when you click your "save" button (or make your HTTP callout or whatever).... man, it's annoying.

Tallboy answered 4/2, 2013 at 19:13 Comment(1)
+1 for mentioning version control.Unhallowed
S
7

I think other people have covered the disadvantages in more depth but to me, it doesn't seem to use the MVC paradigm or support much in the way of code reuse at all. To do anything beyond simple applications is an exercise in frustration compared to developing an application using something like ASP.Net MVC.

Furthermore, the tools, the data layer and the frustration of trying to refactor code or rename fields during the development process doesn't help.

I think as a CMS it's pretty cool but as a platform for non CMS applications, it's doesn't make sense to me.

Sekofski answered 8/9, 2010 at 14:44 Comment(0)
S
6

The security model is also very very restrictive... but this isn't the worst part. You can't currently assert whether a user has the ability to perform a particular action.

You can check to see what their role is, but you can't check if that role has permissions to perform the current action.

Even worse is the response from tech support to "try the action and if there's an exception, catch it"

Suckling answered 12/12, 2009 at 10:28 Comment(0)
S
6

Considering Force.com is a "cloud" platform, its ability to act as a client to an external WSDL-defined service is pretty underwhelming. See http://force201.wordpress.com/2010/05/20/when-generate-from-wsdl-fails-hand-coding-web-service-calls/ for what you might end up having to do.

Surplice answered 22/5, 2010 at 17:59 Comment(0)
M
3

To all above, I am curious how the release of VMforce, allowing Java programmer to write code for Force.com, changes the disadvantages above?

http://www.zdnet.com/blog/saas/vmforcecom-redefines-the-paas-landscape/1071

Misunderstanding answered 22/10, 2010 at 18:16 Comment(2)
it will alleviate some of the issues, but you will still be bound to the Force.com database which is terrible and you'll not really get true control over your deployments. It's still early days and this may change going forward, but right now it doesn't look to be an overly compelling alternative.Suckling
VMForce is dead: siliconangle.com/blog/2011/09/01/…Babbittry
R
3

I guess they are trying to address these issues. At dreamforce they mentioned they we're trying to drop the Governor limits to only 4. I'm not sure what the details are. They have a REST API for early access, and they bought heroku which is a ruby development in the cloud. They split out the database, with database.com so you can do all your web development on and your db calls using database.com.

I guess they are trying to make it as agnostic as possible. But right about now these are all announcements and early access so like their Safe Harbor statements don't purchase on what they say, only on what they currently have.

Rucker answered 28/12, 2010 at 18:51 Comment(1)
7 years and they haven't addressed a single thing in the list above.Kantar

© 2022 - 2024 — McMap. All rights reserved.