csergent08

Moving Away from .NET Kind of

Blog Post created by csergent08 Champion on Jan 6, 2015

Snow! We finally had our first snowfall in Central Illinois. It wasn't bad, but it is slick out. So you have to take it slow. That's exactly how I feel about when I decide what to program in. As I have stated in a previous post, I mainly program in .NET, but lately I have been programming in HTML5 with the Esri JS API. In .NET my frustration is having my application behavior in two places instead of one. With a .NET application whether I use EsriLeaflet or the Esri JS API I would have to use a JavaScript file for map interaction and a Visual Basic code file for database interaction.

 

But lately I started working with FeatureLayers. Using this type of layer was new to me, so I did not know the  the extent or limitations of one. What I liked about it was, I could update the database without any VB code. This is nice. So I thought, I wonder if I could get away from .NET completely. If we were to just need the default widget editor, then I could build an application without using .NET. Even better, with the new DataAdapterFeatureLayer(which is in beta), I could display data from a database that has no spatial information using a location provider like the Locator task. However, that's where it ends. The new DataAdapterFeature layer doesn't allow you add, edit or delete data, just view it. So, I would still need .NET for that. And there is the possibility of needing a proxy page. You can use PHP, Java, or .NET for a proxy.  If this leaves you wondering, do I need a proxy page, you can check out information about proxy pages see if you need one based the information provided.

 

With the information I looked up, I have made a determination on if I can move away from .NET; sometimes. If I don't need a proxy page and I just want to view, edit, or update spatial data, and sometimes queries(buffering is an example where you may need a proxy as well). I don't need .NET. The attachment editor is the exemption to this rule as you need a proxy to upload attachments. It also appears to be that I can view non-spatial data without .NET. Anything else will be a .NET application. And now I can easily make a determination if I need to build a .NET application.

 

Feel free to comment how I could get more away from .NET more if you like, I would be very interested in hearing what you have to say.

 

Okay, there is no code today, but if you are interested in the current project, I have two more that will be custom GIS apps, one geared for web browsers and one geared for mobile devices using my organizations web services, so they will differ from the current project I am working on. Feel free to follow one or all three as I build them side by side by side. Follow the GIS mobile app, the GIS web app or the project I started with. Or you can download them and run them on your machine. The mobile and web app will require you to have the .NET Framework installed on your machine but other than that, you can run the applications right away as you follow along.

Outcomes