Java IoT Authors: Liz McMillan, Yeshim Deniz, Elizabeth White, Pat Romanski, William Schmarzo

Related Topics: Machine Learning , Agile Computing

Machine Learning : Article

Beyond HTTP

Will browsers ever deliver applications instead of documents?

What we need is a Web browser that doesn't just serve up documents, but serves up applications."

Early in 2006 I was given a design brief: a UK-based shipping company wanted to replace its shipment tracking system with a Web-based solution.

Its existing system consisted of this: each widget grower had a contract with the widget producer; this contract was tracked via an Excel spreadsheet; every Friday the shipping company would e-mail the latest copy of the spreadsheet to the widget grower, which would fill out the details of the latest shipment and the details of each and every container in that shipment. This would then be passed back to the shipper, which would then forward it to the widget producer, which in turn would fill out the production usage, quality control results, and the dates and times of when each container load had been used. They would forward it back to the shipper and the cycle would continue. Add in the two separate ports and warehouses in the U.K. and about 16 contracts with different widget growers in countries as far away as Brazil and South Korea, and you start to see that keeping track of the latest version of each spreadsheet, where it is, and what is happening to it was beginning to become something of a mission unto itself.

This is where I came in. The simplest Web-based solution to this would be an online document store in which the widget growers, shippers, and producers could just log in, check out a spreadsheet, edit it, and check it back in. Instead we landed on the Web 2.0 solution: a truly online spreadsheet, tailored exactly to the task at hand, with permissions set on data fields (so that a widget grower couldn't cheekily amend the widget producer's own quality-control results, for example). The whole thing would be in real-time and delivered through Internet Explorer.

This is the sort of real-world application development leveraging the Internet that goes unnoticed by the photo-sharing, music-downloading, blogging masses. In the same way that the largest fraction of software developed and deployed in the world is internal business software, not games and file-sharing clients. As such I had an advantage; this wasn't to be some Microsoft Office Excel killer, it was a tailored, targeted, bespoke application that would look a bit like a spreadsheet but behave exactly like a widget-growing, shipping and production tracking application.

After several months of meetings, prototypes, and endless hours of debugging, the final product was rolled out this summer. The client is happy; their clients are happy; it works exactly as designed; it can export to Excel; you can copy and paste in and out; and it works on IE6, IE7, and Firefox 1.5. I collected my paycheck and they've been using it without any problems ever since.

It does, however, contain over 2,000 lines of JavaScript, and the "spreadsheet view" is an HTML table, with HTML embedded links and images to power said JavaScript. The rows are inserted via the DOM and to edit a cell in a particular row the script has to copy the data from the table row into a faked-up hidden "edit row" containing text boxes using CSS that's hacked to pieces and swapped with the original row. The Save button at the top left of the application cycles through every table row on the page, checking against a bunch of custom attributes slapped into each TR tag to decide if the row needs deleting, updating, or inserting to the database. It builds XMLHttpRequest objects and loads them with a custom CSV-style mashup of data to be sent to the server, which in turn sends a similar mashup back, so that the data on the screen can be kept in sync with the data in the database...on the other side of the planet.

I find myself in a bizarre position. The fact that I'm an expert in this kind of thing and have the technical know-how and aptitude to design and pull off such a complex beast on time and as designed means that I got paid quite well for the six months it took to develop, and I'll continue to get paid as and when upgrades are needed. If any old John Doe could have opened up Visual Studio and slapped it together then I probably wouldn't find myself getting paid quite so much for my services. But the thing is it really could be that easy, or at least, close to it.

Instead of a dedicated platform for developing Web-based applications we have HTML, the DOM, JavaScript and the funderful XMLHttpRequest object. Instead of declaring a pair of <DATAGRID> tags in HTML, I frankly had to hack the %$#@ out of a <TABLE>, normally a static read-only piece of a static read-only document. Compare the Visual Studio .NET Windows Datagrid with its Web-based counterpart. There's no comparison: a confident user of the former wouldn't immediately be able to even recognize the latter.

Finally we get to the rub: The document-based Web as we know it is not a platform for developing complex applications; sure it's possible and there are plenty of bright people working at places like Google who are doing it as we speak and creating frameworks to make it easier. But is this really the way forward? A tree-based object model accessed by an interpreted scripting engine tacked onto a specification designed for static read-only documents?

Now would be a really good time in history to stop, step back, and look at what we have and what could be done better. What we need is a Web browser that doesn't just server up documents, but serves up applications: full screen native GUI, network-transparent and, most important, fast, lightweight, real-time applications. Ideally we'd want to start over, build a whole new spec running on an entirely new platform and set of protocols.

It's unlikely to be that easy. Java promised us Internet-based apps, but spectacularly failed to deliver anything other than mobile phone shoot-Œem-ups. Flash is only just beginning to be taken seriously, and may yet mature into something business can use to track its widgets. Let's take a moment to dream about what we could have.

First, it would be easy to write for with a choice of languages ­ the current request-response framework of the Web can be catered to by PHP, CGI, and ASP to name just three. Write your app in one and you get to access the posts, gets, and cookies natively. So it should expand on that and have a native client object alongside the server object so an author can simply call:

client.Document.Forms["someForm"].txtSomeInput.value = "hello from the server"

And have the asynchronous action happen without any extra effort. And the reverse should be true: the script in the browser should be able to asynchronously call server functions like this:

function btnMyButtonOnClick()
     server.doSomethingWithTheDB( gsFavouriteColor ); doSomethingElse(); }

Again, the legwork would be done for you; a newbie programmer would be able to create something like this in no time, but true enlightenment wouldn't be needed. Custom objects and classes should also be transparently handled across the network, but we don't want to belabor the author with XML and SOAP, it should "just happen."

Second, it should have state, and that state should begin by initializing the application's main source file on the server when the client first connects. The application would maintain state between calls, allowing the use of global variables and custom classes that persist. Calling an async function from the client would begin a thread on the server app, but the advanced programmer could, if he wished, have power over this too and create a call stack, for example, to force events to occur in the order they were sent from the client (not necessarily the order they arrived). Finally, unlike the current Web methodology, there should be a clear disconnect event sent when the user closes the window or a connection stay-alive ping times out.

Thirdly, each user of the app would get his own instance on the server, but these instances would be able to access the Master Application that contains them all, and all its public functions and classes. A chat application, for example, would be able to access the channel list with just a call to application.fetchChannelList(). And to pull up the details of another connected user with application.getUserDetailStruct( intUserID ).

Finally, the author wouldn't be forced into using the current HTML DOM and its small inflexible set of user input controls. There should be a much wider range of inputs, controls, panels, and widgets and has a native grid-based layout system. I keep mentioning the MS Datagrid over and over but imagine being able to create a small spreadsheet object in just a few lines of code and let the user add, insert, remove, and edit rows and columns in the comfort of his own native GUI. This object wouldn't need serializing and sending to the server as far as the author is concerned, pressing submit would give the server a mirrored copy of the control, with full access to its innards.

Such a thing is possible, and we need it sooner rather than later. It would seem simplest to treat the project in two halves. The first half of the challenge is to integrate the new user controls ­ where possible ­ within the existing Web framework. The WHATWG Web Forms 2 and HTML 5 spec are already headed down this road, with such simple but badly needed inclusions as date and time inputs with in-built validation. The second half needs a paradigm shift, a move away from the top-heavy and stateless HTTP protocol to a true lightweight binary client/server relationship between the user and the application.

The thing is a lot of the inherent problems in such an approach have already been solved: Connectivity and synchronicity over a slow or unreliable connection? ID's Quake addressed this 10 years ago and so too has almost every FPS since. Cross-platform compatibility and interaction? Any number of file-sharing and chat applications will yield the answer to that one. All it takes is the will to step away from the Web browser and start something new. As a final thought it might be worth noting that for 20 years now the X Windows system has allowed the development of applications that can transparently display their GUI on one computer while doing the actual processing on a server somewhere else...probably the other side of the planet. Sound familiar?

More Stories By Ric Hardacre

Ric Hardacre discovered the Web in the mid '90s when he really should have been at lectures and not in the University computer lab. He's since worked as a Web solutions developer, systems architect, and wireless and satellite network specialist. His current day job is as an MCP C# Developer in the UK.

Comments (7)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.

@ThingsExpo Stories
DXWordEXPO New York 2018, colocated with CloudEXPO New York 2018 will be held November 11-13, 2018, in New York City and will bring together Cloud Computing, FinTech and Blockchain, Digital Transformation, Big Data, Internet of Things, DevOps, AI, Machine Learning and WebRTC to one location.
DXWorldEXPO LLC announced today that ICOHOLDER named "Media Sponsor" of Miami Blockchain Event by FinTechEXPO. ICOHOLDER give you detailed information and help the community to invest in the trusty projects. Miami Blockchain Event by FinTechEXPO has opened its Call for Papers. The two-day event will present 20 top Blockchain experts. All speaking inquiries which covers the following information can be submitted by email to [email protected] Miami Blockchain Event by FinTechEXPO also offers s...
DXWorldEXPO | CloudEXPO are the world's most influential, independent events where Cloud Computing was coined and where technology buyers and vendors meet to experience and discuss the big picture of Digital Transformation and all of the strategies, tactics, and tools they need to realize their goals. Sponsors of DXWorldEXPO | CloudEXPO benefit from unmatched branding, profile building and lead generation opportunities.
Dion Hinchcliffe is an internationally recognized digital expert, bestselling book author, frequent keynote speaker, analyst, futurist, and transformation expert based in Washington, DC. He is currently Chief Strategy Officer at the industry-leading digital strategy and online community solutions firm, 7Summits.
Digital Transformation and Disruption, Amazon Style - What You Can Learn. Chris Kocher is a co-founder of Grey Heron, a management and strategic marketing consulting firm. He has 25+ years in both strategic and hands-on operating experience helping executives and investors build revenues and shareholder value. He has consulted with over 130 companies on innovating with new business models, product strategies and monetization. Chris has held management positions at HP and Symantec in addition to ...
Cloud-enabled transformation has evolved from cost saving measure to business innovation strategy -- one that combines the cloud with cognitive capabilities to drive market disruption. Learn how you can achieve the insight and agility you need to gain a competitive advantage. Industry-acclaimed CTO and cloud expert, Shankar Kalyana presents. Only the most exceptional IBMers are appointed with the rare distinction of IBM Fellow, the highest technical honor in the company. Shankar has also receive...
Enterprises have taken advantage of IoT to achieve important revenue and cost advantages. What is less apparent is how incumbent enterprises operating at scale have, following success with IoT, built analytic, operations management and software development capabilities - ranging from autonomous vehicles to manageable robotics installations. They have embraced these capabilities as if they were Silicon Valley startups.
Poor data quality and analytics drive down business value. In fact, Gartner estimated that the average financial impact of poor data quality on organizations is $9.7 million per year. But bad data is much more than a cost center. By eroding trust in information, analytics and the business decisions based on these, it is a serious impediment to digital transformation.
The standardization of container runtimes and images has sparked the creation of an almost overwhelming number of new open source projects that build on and otherwise work with these specifications. Of course, there's Kubernetes, which orchestrates and manages collections of containers. It was one of the first and best-known examples of projects that make containers truly useful for production use. However, more recently, the container ecosystem has truly exploded. A service mesh like Istio addr...
Predicting the future has never been more challenging - not because of the lack of data but because of the flood of ungoverned and risk laden information. Microsoft states that 2.5 exabytes of data are created every day. Expectations and reliance on data are being pushed to the limits, as demands around hybrid options continue to grow.
Business professionals no longer wonder if they'll migrate to the cloud; it's now a matter of when. The cloud environment has proved to be a major force in transitioning to an agile business model that enables quick decisions and fast implementation that solidify customer relationships. And when the cloud is combined with the power of cognitive computing, it drives innovation and transformation that achieves astounding competitive advantage.
Digital Transformation: Preparing Cloud & IoT Security for the Age of Artificial Intelligence. As automation and artificial intelligence (AI) power solution development and delivery, many businesses need to build backend cloud capabilities. Well-poised organizations, marketing smart devices with AI and BlockChain capabilities prepare to refine compliance and regulatory capabilities in 2018. Volumes of health, financial, technical and privacy data, along with tightening compliance requirements by...
As IoT continues to increase momentum, so does the associated risk. Secure Device Lifecycle Management (DLM) is ranked as one of the most important technology areas of IoT. Driving this trend is the realization that secure support for IoT devices provides companies the ability to deliver high-quality, reliable, secure offerings faster, create new revenue streams, and reduce support costs, all while building a competitive advantage in their markets. In this session, we will use customer use cases...
The best way to leverage your Cloud Expo presence as a sponsor and exhibitor is to plan your news announcements around our events. The press covering Cloud Expo and @ThingsExpo will have access to these releases and will amplify your news announcements. More than two dozen Cloud companies either set deals at our shows or have announced their mergers and acquisitions at Cloud Expo. Product announcements during our show provide your company with the most reach through our targeted audiences.
DevOpsSummit New York 2018, colocated with CloudEXPO | DXWorldEXPO New York 2018 will be held November 11-13, 2018, in New York City. Digital Transformation (DX) is a major focus with the introduction of DXWorldEXPO within the program. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive over the long term. A total of 88% of Fortune 500 companies from a generation ago are now out of bus...
With 10 simultaneous tracks, keynotes, general sessions and targeted breakout classes, @CloudEXPO and DXWorldEXPO are two of the most important technology events of the year. Since its launch over eight years ago, @CloudEXPO and DXWorldEXPO have presented a rock star faculty as well as showcased hundreds of sponsors and exhibitors! In this blog post, we provide 7 tips on how, as part of our world-class faculty, you can deliver one of the most popular sessions at our events. But before reading...
The IoT Will Grow: In what might be the most obvious prediction of the decade, the IoT will continue to expand next year, with more and more devices coming online every single day. What isn’t so obvious about this prediction: where that growth will occur. The retail, healthcare, and industrial/supply chain industries will likely see the greatest growth. Forrester Research has predicted the IoT will become “the backbone” of customer value as it continues to grow. It is no surprise that retail is ...
Andrew Keys is Co-Founder of ConsenSys Enterprise. He comes to ConsenSys Enterprise with capital markets, technology and entrepreneurial experience. Previously, he worked for UBS investment bank in equities analysis. Later, he was responsible for the creation and distribution of life settlement products to hedge funds and investment banks. After, he co-founded a revenue cycle management company where he learned about Bitcoin and eventually Ethereal. Andrew's role at ConsenSys Enterprise is a mul...
DXWorldEXPO LLC announced today that "Miami Blockchain Event by FinTechEXPO" has announced that its Call for Papers is now open. The two-day event will present 20 top Blockchain experts. All speaking inquiries which covers the following information can be submitted by email to [email protected] Financial enterprises in New York City, London, Singapore, and other world financial capitals are embracing a new generation of smart, automated FinTech that eliminates many cumbersome, slow, and expe...
Cloud Expo | DXWorld Expo have announced the conference tracks for Cloud Expo 2018. Cloud Expo will be held June 5-7, 2018, at the Javits Center in New York City, and November 6-8, 2018, at the Santa Clara Convention Center, Santa Clara, CA. Digital Transformation (DX) is a major focus with the introduction of DX Expo within the program. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive ov...