Paul "Pablo" Croubalian

6 years ago · 7 min. reading time · 0 ·

Blogging
>
Paul blog
>
Is the Responsive Web a Mobile App Killer? Pt 1

Is the Responsive Web a Mobile App Killer? Pt 1

"3 Y FE 8 n

 

= VCE F :

Google thinks the Responsive Web will kill many mobile apps. So do I. To be sure, when Google gets behind something it tends to happen. 

Remember when they said they would photograph every address in the world? 

Did you laugh? 

I know I did. Then Steet View popped up.

It's never a good idea to underestimate Google, or Alphabet, or whatever they want to call themselves. They can call themselves Boogers R Us for all I care. 

I'll still bet on them.  

The boys and girls in Mountain View changed the world. They continue to do so.

From Google's viewpoint, the 7 gazillion mobile apps are keeping people off the web. Google is a web company. No poop they don't like that idea.  

App Ad revenues are not Google revenues.

From our viewpoint, the 2.4 billion mobile devices, the Lord-knows-how-many IoT devices, the smart TVs, the smartwatches, etc cause us fits. 

How can we support all that stuff plus more stuff that we don't even know about yet because it hasn't been invented yet?

The short answer is, "We can't."

If our app is data-intensive how can we keep all that data perfectly up to date?

The short answer is, "We can't."

If we need to make changes to data or software, how do we keep both synchronized and up to date? Remember, we may have thousands, or even tens of thousands, of instances out there.

The short answer is, "We can't."

We need iOs apps, Android Apps, and Windows Phone apps. What happens when a customer who bought our Android version switches to iOS or vice versa?

Are mobile apps really worth the headaches? Maybe. Maybe not. 

Until now, we had no choice.

The Responsive Web It isn't a different web. It's just a system of using advances in common web technologies to make a website look good, and work well, no matter what you use to look at it. 

The fancy term is device-agnostic.

A Short Layman's Guide to Web Tech

First off, don't panic. 

The web is just a bunch of text files sitting on a bunch of servers. Those text files are read by browsers who, in turn, display the site. Firefox is a browser. Chrome is a browser. The jury is still out on Internet Explorer and Edge.

You already know what text files look like. These text files are specific flavors of boring old .txt files. Replace the .txt extension with something else and the browser knows what to do with it. Example, if a file has a htm or html extension, the browser assumes it's HTML code. It shows a web page.

Other technologies have their own extensions, but, they are all just text. 

Nuthin' here to panic about. 

There are a few core technologies at play. Other technologies can also lend a hand, but these are the main ones.

HTML

HTML defines what the site is. It works inside your browser to tell it what your information is and, in a very general way, how it should be shown to the viewer. 

HTML uses tags like < h1 > (spaces added so that it actually shows up here) to tell the browser to display whatever follows as a level one headline. Another tag, < /h1 > tells the browser to stop displaying a level one headline.

There are lots of tags, enough to present your information logically and cleanly. HTML 5 introduces new tags that make the web react. That's cool, but not enough.

What you can't do with HTML is make the site pretty.  HTML by itself is butt-ugly. It just lays out information, but it has no pizzazz, no attitude. The early days of the web were all HTML. It sucked. I know. I built my first site in 1982. YUCH!

CSS

CSS also works in the browser. It stands for Cascading Style Sheets. Most of you already know what a style sheet is. It's "hair and make-up" for a document. Where HTML says "This is a level one headline," CSS says, "Ok, cool, now make it orange, and this high using this font. Add spacing here, and here. Indent it by this much. While you're at it, add a shadow effect. Oh, and animate it in from the left! Etc. Etc Etc."

CSS pretties up the web.

We call these Style Sheets "Cascading" because that's what they do. One can slip right into/onto another. It may add stuff, it may replace stuff. Cascades bring Style Sheets to a whole new level.

It's the latest form of CSS (3) that combines with new HTML tags to make The Responsive Web possible. More on that a little later.

Javascript

Javascript is yet another thing that works in the browser. (FYI: There is no relation between javascript and Java.) Javascript adds interactivity and limited database access to websites. It can also modify CSS on the fly. 

See where we're going with this?

PHP

PHP works at the server level and outputs text.  Originally, back in 1994, PHP stood for Personal Home Page. Since PHP outputs text and HTML is just text, the HTML text was stored in databases. PHP would output it when asked. 

The webpage didn't even exist until you asked for it. That approach was cheap as all get out, but had its drawbacks. Web crawlers can't crawl pages that don't exist.

Its original function has all but disappeared. Now, PHP is the glue between databases and HTML. PHP makes server-side data available to HTML when and as it needs it. A website can have as much access to your data as you want/need it to have.

Now you really must see where we're going with all this stuff!

Relational Databases (ex: MySQL)

We don't need to say very much about databases here. You all know what they are. They're a repository of whatever data you or your business collects and consumes.

In their simplest form, databases are flat tables like a spreadsheet. That's handy, but no great shakes. They become much more powerful when they become relational. That's a fancy-pants way of saying they can "talk" to each other. They can combine themselves, interconnect themselves, refer to each other, pull or push data to each other. 

They can even create more tables or subsets of data on the fly.

To my mind, a website without a database is just a brochure.

Putting it all together: The Responsive Web

Let's start with an extreme example.

Imagine this: Bob opens your website on his Apple Watch. He has a screen resolution of 312X390 pixels (total: 121,680 pixels). Mary opens it on her 8K (UHDTV) smart TV. Mary has a screen resolution of 7680X4620 pixels (total: 33,177,600 pixels). Bob is on his cellular data plan (LTE). Mary is on her WiFi.

The HTML tag that defines an image is < img >. The link to the image itself is in a thing (attribute) called src for "source." So, src="thatPicture.jpg" would show the picture, thatPicture.jpg.

If you show Mary a picture sized for  Bob, it would be so blurry she would have no idea what it was. No worries just make the picture big enough for Mary and let Bob's browser shrunk it to fit his screen. CSS can do that easily.

Problem solved! Right?

Nope.

If you show Bob a picture sized for Mary, he would download 273 times more data than he needs or can use! That might slow him down a tad (More like a ton!), not to mention cleaning out his data plan.

You obviously need two different pictures.  One problem is that src can only point to a single image. 

We already saw that HTML works in the browser.  That's the other problem. A browser can't tell how big an image is until it downloads it. That doesn't help, by then it's too late. Bob would still hate us.

The solution is brilliant in its simplicity. The browser can't tell how big an image is, but we know. We just need to tell the browser how big the image is before it downloads it.

HTML5 introduced the srcset tag. That's less complicated than it sounds. The srcset tag, as its name implies, is a set of src's. Each one tells the browser how wide its related picture is. The browser can then choose the best one for the job.

So here, rather than use src="thatPicture.jpg" we could use srcset="thatPicture320.jpg 320w,  thatPicture7680.jpg 7680w" The browser knows it can choose from pictures 320px wide or 7680px wide. 

The browser already knows how wide the users' screens are. Mary gets the huge image, Bob gets the little one.

Okay, that's one problem solved. Here's another.

Have you ever open a web site on your phone and found the text too small to read? You need to zoom and pan around to see stuff. Sometimes links are so close together that you can't click the one you want. A cursor on a laptop is a lot smaller than a fingertip on a phone screen.

Not the best experience is it?

CSS3 media queries

The latest version of CSS introduced media queries. In a nutshell, media queries apply different layout rules for different device capabilities.

NOTE: You don't need to match every conceivable device. You'd go nuts trying to keep up. You can use ranges. On myTweetPack.com's new responsive layout, we use 3 break points. At less than 601 pixels wide, we figure it's a phone and set the layout for that. Between 601 and 992 we assume it's a phablet or tablet. Over 992 we assume it's a laptop. 
We don't do anything special for smart TVs. We don't use much in the way of images. Smart TVs have the same aspect ratio as a laptop, so we're good. (The fully responsive layout on myTweetPack.com will start rolling out on September 18th, 2017)

Let's use an iPhone6 as an example. Here's what an iPhone6-specific media query might look like.


@media only screen and (min-device-width: 375px) and (max-device-width: 667px)  { 
p {font-size=300%;
max-width=100%;etc;etc;etc;}
}

So what does that gobbledygook mean?

The first line asks for information about the user's device. Specifically, it asks if the screen is between 375 and 667 pixels wide. (In this example the actual width would be one or the other depending on orientation.) If the screen falls in the right range, do the stuff between the { }.

The two middle lines act on the < p > tag, paragraphs. Guess what they do. Go ahead. I'll wait.

Right! The first line, font-size=300%, triples the font size. (duhhh) The second line tells the < p > tag to use the full width available, but no more. No one likes to scroll. The etcs are just placeholders for other layout rules. You can get as detailed as you like with this stuff.

This post is getting too long.

I was going to talk more about how the Responsive Web can replace apps. I wanted to talk about the benefits a company can get from it. 

The Responsive Web can largely replace mobile apps. That isn't really what has me excited. More importantly, it can pull mobility applications from Marketing's world into the realm of Operations and Sales.

That's huge!

With the Responsive Web, a company can send its intranet out on the road. Anything your employees can do in the office, they can do at the clients' office, at home, in their cars, or even sitting on the john. (Ok, that may be too much of a good thing) 

It can do even more. 

Because it's centralized on your servers you have no limits on what you can do. Servers are waaaaay faster than phones. Leave data processing to them.

You can connect your Responsive Site to APIs to add charting and mapping functions, calculate the fastest route between multiple waypoints, pull in weather data, flight arrivals, corporate info, World Bank stats, notifications, traffic alerts, or anything else that might help you. There are APIs for just about everything.

You're only limited by your imagination.

Oh, and don't worry about App Developers. The Responsive Web will probably kill much of the mobile app market. It won't kill Developers' skills. If anything, it will open a vast new market for those people.

Any company who has any type of road-warrior employees needs the Responsive Web. 
They just don't know it yet.

The next post will examine a specific, semi-fictional use case.

Cheers.


VI

 

Blog Poets

About the Author

I'm a ghost but not the kind that's to pottery
wheels. I'm the wnting kind

Toften wonder if Im a tech-savvy writer or a
writing-savvy technologist Maybe I'm both. As
one CMO put it, "Paul makes tech my bitch!
That might be going a hittle too far

myTweetPack.com
The Ultimate Twitter System











""
Comments

Paul "Pablo" Croubalian

6 years ago #22

#30
You hit on a super important point, Jim \ud83d\udc1d Cody. Most people don't understand what the web is. That doesn't stop them from using it. We're used to it. It just works. This post is the start of a series that is not really aimed at the masses. It's aimed more at Operation and Sales folk. The next post, https://www.bebee.com/producer/@paul-croubalian/is-the-responsive-web-a-mobile-app-killer-pt-2, introduces a semi-fictitious company use case for the Responsive Web. The ones after that will explain its implementation from a sales-automation and overall Operations view.

Paul "Pablo" Croubalian

6 years ago #21

#28
True enough, put security is an issue in either path, on-device or web app.

Paul "Pablo" Croubalian

6 years ago #20

#25
Agreed, Flavio \ud83c\uddef\ud83c\uddf5 Souza \ud83d\udc1d, and that is yet another incentive for Google to push the Responsive Web. They can also circumvent Apple altogether by having app developers pull Google ads into their code.

Paul "Pablo" Croubalian

6 years ago #19

#21
Merci, Bernard. I'm curious. Do you use the English or French pronunciation of your name?

Paul "Pablo" Croubalian

6 years ago #18

#22
Thanks for extending the conversation, Flavio \ud83c\uddef\ud83c\uddf5 Souza \ud83d\udc1d. If that's what Google is trying to do, good luck to them. They'll need it. I see it more like they see the market changing and are trying to get ahead of that change. The Responsive Web isn't terribly new. Its adoption has been slower than expected. That's a shame. Google penalizes slower sites which is more of an issue on mobile. Now they push responsiveness. When they start heavily penalizing nonresponsive sites there will be a mad dash to responsiveness. That mad dash will lead to some pretty strange sites. Lately, I've noticed some apps serving Google ads. That's fine for less well-circulated/adopted apps. I really believe that Google recognizes the future of the web lies in mobility. I just thought of something. Could Chrome Apps be set for a comeback? It would seem to be a logical step. Google can build a web-app platform with built-in responsiveness. That's something to keep an eye on.

Paul "Pablo" Croubalian

6 years ago #17

#13
You are very welcome, @Todd Jones. It's fun to know a little bit about what happens in the background. There are 10 kinds of people in the world. Analog and Digital (binary). FYI 10 is 2 in binary.

Paul "Pablo" Croubalian

6 years ago #16

#18
LOL, Anne \ud83d\udc1d Thornley-Brown, MBA, that just might be your aversion to databases talking. With CSS, I can change a few files and have the entire look and feel of a site change. I avoid inline CSS as much as humanly possible ("inlne" refers to CSS rules embedded in the HTML). That way, any change I make to the CSS file(s) populates just about everything. A static site must have every page modified. Way back when, the standard for desktop/laptop screen widths was 640px. Then it went to 800px. Now it's 1280. Many sites are still stuck at 800. That's too small for laptops and too big for phones. There's no need for that. Building the website is just the first step. It must be built with future maintenance and updates in mind. Re the first part of your comment: I think we may have an issue of semantics here. When I say "app" I mean the stuff you get from Google Play or the iStore and download onto your phone. Those are the things whose days are numbered or who will see a massive change. Most are developed as a knee-jerk reflex as in, "Damn! Those apps are everywhere! We need an app." They don't realize they don't need an app they need at least two possibly three and no, they are not easily morphed to a platform. The best thing about the Responsive Web is that it repurposes existing stuff into new operational possibilities. Things that were possible but too costly to implement are now possible likely WITH EXISTING technical abilities. It's just HTML, CSS, javascript, mostly with a little PHP and mySQL thrown in.
Apps aren't going anywhere. They are everywhere from banking machines to check-in automated counters at the airport. Like any other technology, their use will evolve. The main challenge with CSS based HTML sites is that they are very cumbersome when it's time to update them. They look becomes dated very quickly. There are a lot of silly people who figure if your look isn't up to date, neither are your products, services or approaches. Just for fun run your site and some popular sites through http://www.archive.org and compare how they looked 20 years ago, 10 years ago, and 5 years ago. Night and day in most cases. You either have to fork out a whack of money getting someone else to update them or struggle through it yourself and that is very labour intensive. There is nothing one can do about this. Just venting.

Paul "Pablo" Croubalian

6 years ago #14

#10
thanks, . It's a stretch to call this a tutorial, though. Entire books have been written about each supporting technology and their symbiotic joining to form the Responsive Web. Let's just call it food for thought

Paul "Pablo" Croubalian

6 years ago #13

#11
I'll explore a use case in the next installment

Paul "Pablo" Croubalian

6 years ago #12

#12
many people think that an app is a one and done thing. Nope. My guesstimate is that a fully responsive web application can be built in a quarter the time of one version of an app.

Paul "Pablo" Croubalian

6 years ago #11

#13
you are very welcome, Todd Jones. It's fun to know a little bit about what happens in the background
#1
Yes it was loooooooong but enjoyable. We didn't get into apps. I started over the holidays to transform my websites and make them responsive. I wanted all of the bells and whistles but templates with them were way beyond my level of skill and pay grade. Designers are charging a lot to do custom work for you. So I selected an attractive template that I could handle. It's been a whack of work. The easiest way was to get a template and customize it. Slow and steady does the trick. The frustrating part is this will like need to be re-done in another 2 - 3 years. I am going to finally have to follow through on my attention to take some courses. I am completely self-taught.
#9
Oh that is a nice productivity/efficiency 's end....

David B. Grinberg

6 years ago #8

Many thanks for this informative and insightful blogging buzz, Paul. I wasn't even aware of the Responsive Web, much less up-to-speed on some of the other web-related technical issues you pointed out. Thus, the tutorial is most appreciated!

Paul "Pablo" Croubalian

6 years ago #7

#5
To what end indeed, stephan metral \ud83d\udc1d Innovative Brand Ambassador? My bottom line. . . if an app doesn't specifically need functions found ONLY on a handheld device, it probably shouldn't be an on-device App. Frankly, I'm not sure what functions would qualify. The only one I can think of is a graphics intensive thing like a game with fast-paced rendering Things that you would assume qualify like capturing images from the onboard camera or using the device's GPS location, don't qualify. Those are already available to the Responsive Web. Sending and receiving texts require a service, (at least for now). But Google has a Notifications API that I plan to look at next week. Come to think of it, I think Skype's API has texting capability. I'll look into that too (I just love mashing together APIs) To recap, you can use the camera, gyroscope, accelerometer, file system, swipe navigation, and microphone from the device. Consider the applications. Just tracking technicians for dispatching would be a God-send. Imagine if a rush service call comes in. The Web App at the HO pulls the customer's location from the DB, compares it to GPS locations of service technicians, uses Google Maps to calculate who can get there fastest, and texts a Rush dispatch to that technician. Boom. I could probably code that in an afternoon and I'm just a gifted self-taught amateur, not a pro. This article gives more info: http://www.mrc-productivity.com/blog/2016/06/the-mobile-app-comparison-chart-hybrid-vs-native-vs-mobile-web/ and it's over a year old. Nothing that lives stands still. Even trees move with the wind
Remember, responsive was meant to take a website to a smartphone. Now you have apps with no real purpose...to what end? Switch on and off the light of the patio? really? Use the remote or a movement detector + timer...please solar powered....
Paul \ lights up very up-to-date issues that young iinovators of Apps marketplace have failed to consider! A must-read, with a beginning of some answers...
CC hichem chahed read Paul's idea on double size pictures sources and its remedies. worth digging the idea.
Creators..it depends on creators, their initial purpose, design, business canvas...So many occurrences Paul \, i love your article and the fact that you pushed the topic into the light. There are so many startuppers from any age who are in complete conceptual confusion state of mind and cannot handle properly their project. In fact question number one: WebApp or mobile app, but to what end? If a 5 years Old cannot understand a 15-seconds answer and explain it to me back in 10 secs. Don't even start coding anything...LOL. To WHAT END? (SAT method, Simple As That). Shared !

Paul "Pablo" Croubalian

6 years ago #2

#2
I can't argue with that logic, Bob Schlechty. The Responsive Web will change the status quo, but I think its primary effect will be more along the lines of private apps. It has the potential of making the whole world your office

Paul "Pablo" Croubalian

6 years ago #1

Yesterday, Anne \ud83d\udc1d Thornley-Brown, MBA and I had a looooong phone conversation. The Responsive Web came up. That inspired this post series. Anne, this one's for you.

Articles from Paul "Pablo" Croubalian

View blog
3 years ago · 7 min. reading time

Hi all, it's been a while since I've reported on the ups and downs of mid-life dating. This post is ...

6 years ago · 4 min. reading time

They say, "Every cloud has a silver lining." That's obviously false. Cumulus clouds are the big whit ...

5 years ago · 7 min. reading time

I've been somewhat less prolific than usual lately. A second divorce will do that to a guy's muse. · ...

Related professionals

You may be interested in these jobs

  • GREEN STALLION IT SOLUTIONS LTD.

    administrative assistant

    Found in: Talent CA 2 C2 - 1 day ago


    GREEN STALLION IT SOLUTIONS LTD. Richmond Hill, Canada

    Education: Secondary (high) school graduation certificate · Experience: 1 year to less than 2 years · Tasks · Arrange and co-ordinate seminars, conferences, etc. · Record and prepare minutes of meetings, seminars and conferences · Schedule and confirm appointments · Answer teleph ...

  • Pharmacy Careers

    Pharmacy Manager

    Found in: Talent CA C2 - 1 day ago


    Pharmacy Careers Thompson, Canada Full time

    Postal Code: · R8N 0M2 Safeway grocery stores provide an exceptional food shopping experience to consumers from Vancouver, British Columbia to Thunder Bay, Ontario. We are the newest member of Sobeys Inc.'s retail food offering which serves the needs of Canadians with more than ...

  • Valard Group of Companies

    Distribution Journeyman/Apprentice Powerline Technicians

    Found in: Talent CA C2 - 3 days ago


    Valard Group of Companies Greater Sudbury, Canada

    Valard, is Canada's premier utility contractor, as well as head of the Valard Group of Companies AND part of the Quanta Group, the largest electrical power contractor in North America. Valard has full-service capabilities for transmission, distribution, substations, foundations, ...