Select to view content in your preferred language

Java Script vs Silverlight vs Flex

3105
22
Jump to solution
10-10-2013 08:15 AM
JayKappy
Frequent Contributor
I am looking to create a few web apps but must also be cognizant of the fact that my users will be using a varying degree of hardware (ie. tablets, phones, PCs etc).  With that being said it pretty much rules out using Silverlight.

But what about Flex and Java Script...I assume this will run fine in a mobile environment? 
Is there an HTML API coming?

If I am concerned with PC and Mobile devices whats my best option?  Is there something on the horizon that I should wait for?

I want to be ready for the changes that are coming, and realize that we are moving towards a mobile platform.  Wanting to make sure that the time and resources invested are going to be able to be utilized in the next few years...looking to get off to a good start and work with a technology that will be around

Thanks....hope to get some good feedback....cheers
22 Replies
JonathanUihlein
Esri Regular Contributor
Although I have created a mobile friendly web page that works just fine on a phone, I continue to here "But we want an app, not a web page".


Is there any reason they would want a native app over a webapp, technically or functionally?

There are several frameworks that can wrap your webapp in a native-esque shell which then lets you deploy your webapp through the various AppStores (iOS, Android, etc).

These are two examples of such Frameworks:
http://www.appcelerator.com/titanium/
http://phonegap.com/
0 Kudos
TracySchloss
Honored Contributor
No good reason to have an app, no.  In general, people just want to be able to say "go download our app", or "we have an app for that".  I haven't been pressed lately, so I stopped pursuing the 'wrapper to make an app' approach.  Mostly I'm holding out for every type of phone so I can properly test on all basic phones on the market.  😄
0 Kudos
JeffPace
MVP Alum
i would/will never write a native app.

1. Licensing
2. Multiple code bases to maintain
3. Testing constraints
4. etc..
0 Kudos
TracySchloss
Honored Contributor
It sounded like a nightmare to me too, which is why I left it as a mobile friendly web page.
0 Kudos
ChristopherBlinn1
Deactivated User
I wish I was in Jeff's shoes.. I have clients that really loved the Flex Viewer and 3 years ago, it was the hottest solution available.  The support and popularity really took off (just look at all of the version updates to the Flex Viewer over the past 24 months compared to any other API or viewer).  Web apps were being pushed left and right.

Now, here I am looking at 15+ applications that I have thousands of man hours invested into running on an API (FLEX) that appears to be losing steam quickly.  I too saw the writing on the wall and Javascript is now engulfing my life.

Save yourself the trouble of future migration and go with Javascript now.
0 Kudos
TracySchloss
Honored Contributor
I have about a dozen very well received FLEX sites that are 4-5 years old now.  There's no way I'm going to be able to rewrite these in Javascript to be as nice.    I can only hope that eventually there will be more JS equivalents to replace the components that were standard in the FLEX libraries.
0 Kudos
JonathanUihlein
Esri Regular Contributor
No good reason to have an app, no.  In general, people just want to be able to say "go download our app", or "we have an app for that".  I haven't been pressed lately, so I stopped pursuing the 'wrapper to make an app' approach.  Mostly I'm holding out for every type of phone so I can properly test on all basic phones on the market.  😄


Thank you for the genuine answer. I figured it was something like that.
I was in the same boat at a previous employer. They wanted a native solution, while most of the devs wanted to stick with our polished webapp.

We didn't have enough time to do native and creating a mediocre hybrid solution just to please upper-management seemed like such a waste of time overall when we had a fully functioning webapp already.

Thanks again for the answer 😃


*edit

I have about a dozen very well received FLEX sites that are 4-5 years old now.  There's no way I'm going to be able to rewrite these in Javascript to be as nice.    I can only hope that eventually there will be more JS equivalents to replace the components that were standard in the FLEX libraries.


I've never had the pleasure of using the FLEX library; is there any particular feature or component you'd miss after migrating entirely to JS? (Pure curiosity at this point).
0 Kudos
ChristopherBlinn1
Deactivated User
There's no way I'm going to be able to rewrite these in Javascript to be as nice.


I said the same thing 6 months ago.

But I have to admit, I was pleasantly surprised with what I could do with CSS3 and HTML5.  Animations, transitions, styles, map tools and components, all of these I have been able to recreate in JS (but I must say, I use jQuery as my framework, and VERY little Dojo).

With enough time and money, anything is possible. :cool:
0 Kudos
TracySchloss
Honored Contributor
Styling was way easier, the code assist was more robust, you could see exactly what properties and methods were available for any object I created, without having to have another window open constantly reviewing the API reference. If I needed to add an event listener, for instance, I could just specify a function name and if it didn't exist already it would offer to set up some stub code for the new empty function.  Since you were developing in an environment where the IDE and the API library were meant to go together, the design environment was much more transparent. 

Writing this is sounds like my main complaint is not the way it functions for the end user.  Maybe I need to search around again for a different IDE. I'm using Aptana because that's how ESRI laid it out in their getting started. Plus it looks somewhat like FLEX in the way the tools at the top are laid out, creating projects etc.   I don't like Notepad ++ because what I'm needing is more of a design environment.  I did recently get DreamWeaver, maybe I should try that again.  I had an older version, but I never got any good at it. 

As far as the HTML 5 comment - if we could ever get there, my life would be easier.  Our default browser is IE 8.  When you're working with an org that has tens of thousands of computers, any upgrade is an ordeal
0 Kudos
MattLane
Frequent Contributor
As far as IDEs, you might try Microsoft's WebMatrix

One of the nice features are the emulators for mobile development. Also has template starter sites.
0 Kudos