Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Book Review: Sams Teach Yourself HTML5 Mobile Application Development

samzenpus posted more than 2 years ago | from the read-all-about-it dept.

Books 44

Michael J. Ross writes "The last few years have seen the emergence of several significant advances in web technologies, including HTML5 and CSS3 — all impacting the development of traditional and mobile-centric web sites. In turn, various technical book publishers have released titles addressing one or more of these technologies. While one book may focus on HTML5 and the new JavaScript APIs, another might include extensive coverage of CSS3, with little mention of JavaScript. A recent title, Sams Teach Yourself HTML5 Mobile Application Development in 24 Hours, focuses on some of the more commonly employed elements introduced with HTML5, and how they can be used for creating mobile sites and applications." Read below for the rest of Michael's review.This book was authored by Jennifer Kyrnin, who has plenty of experience in using as well as teaching web design techniques, and who curates the Web Design / HTML section of The book was put out by Sams Publishing (an imprint of Pearson Education) on 25 November 2011, under the ISBN 978-0672334405. On the publisher's page, visitors will find the book's description and table of contents, and some sample content in a PDF document, including the first chapter, "Improving Mobile Web Application Development with HTML5." The page appears to not list any reported errata. This book is available in both print and electronic formats (EPUB and PDF), but prospective buyers should be warned that the e-book is less than seven dollars cheaper than the print version ($25.59 versus $31.99), despite the huge disparity in production and distribution costs. The author's web site offers additional information, primarily in the form of a newsletter devoted to HTML5. The preface claims that this second web site has the example source code from the book, as well as ways to ask questions and report errata; but if so, they are well hidden, as of this writing.

Spanning 496 pages in total, the book's material is organized into two dozen chapters, as is usual with any of the books in the "Sams Teach Yourself X in 24 Hours" series. Readers may well wonder if this artificial constraint causes the various authors to structure their books in a way that does not always make sense. In the case of this title, there does appear to be some forced splitting of material between two chapters, namely, "Building a Mobile Web Application" and "Converting Web Apps to Mobile." Conversely, three topics that may deserve their own chapters are lumped together, in "WebSockets, Web Workers, and Files." Moreover, it is arguably unrealistic to expect that the typical reader will be able — or would even attempt — to read and comprehend a technical book of such length and subject matter in only 24 hours — to say nothing of the time required to type in the sample code (in order to test it and reinforce the information learned). This "teach yourself in 24 hours" format borders on "brain surgery in three easy steps." Lastly, it leads to silly phrasing such as: "a result of reading the hour" (page xvii).

The chapters and appendices are grouped into four parts, the first of which is titled "Building Web Pages and Applications with the Open Web Standard." The structure of the first chapter is replicated in all of the other chapters: The author briefly lists what the reader will learn, and then begins explicating the concepts, illustrated with example code wherever appropriate. Each chapter concludes with a summary (which is of no value), several FAQs (whose material should instead be folded into the main chapter content), and a workshop section comprising quiz questions and exercises for the reader to tackle. Part I's eight chapters introduce HTML5, web applications, the W3C Open Web Standard, the new HTML5 elements and their attributes, CSS3 (with justifiably limited coverage), mobile browser detection, JavaScript, and jQuery. Then the author presents the basics of how to build mobile web apps, both from scratch and from using a non-mobile web site as a starting point.

Part II, "Learning the HTML5 Essentials," goes into greater detail of numerous basic aspects of HTML5: the new HTML5 sectioning, heading, and semantic elements; the semantic repurposing of some HTML 4 elements; the new canvas element (with limited coverage of this extensive topic); new typography support; audio and video elements; new form capabilities; HTML editable content, spell checking, and other user interactivity; microformats, microdata, and RDFa; in-page drag and drop; and new functionality for linking (the <a>, <area>, and <link> elements). Readers should note that the discussion in the ninth chapter on the new sectioning elements starts off rather confusingly, but soon improves, making it well worth reading.

The third part of the book, "HTML5 for Mobile and Web Applications," begins with an introduction to web apps, as well as the HTML5 application programming interfaces (APIs) and data sets upon which they may rely. The author then discusses specific APIs that can be of great use in web apps — specifically, the WebSockets, Web Workers, and File APIs, which allow one to make asynchronous connections between the app and a remote host, perform scripted background processing, and access local files. The remaining chapters show how to: make a web app usable even when it is disconnected from the Internet; save data on the client side (using local storage, session storage, Web SQL, and IndexedDB); control the browser history; geolocate the client; and convert an HTML5 application into a native mobile app, with detailed information on using PhoneGap. Aside from the index, the book concludes with three appendices that cover: answers to the end-of-chapter quizzes; a list of the HTML5 elements and their more commonly-employed attributes; and a list of other books and web sites that address HTML5 and mobile design and development.

The average programming book — particularly one of this size, and in a first edition — will contain some errata, and this one is no exception: "shortcut style" should read "shorthand style" (page 37); "Specific[,] Measurable" (87); "complimentary" should read "complementary" (93); the "By the Way" section on page 131 is missing a close parenthesis; "html5elmeents" (136); "will [be] eventually" (184); "a straight line [] they" (184); "makes build[ing] forms" (223); "method[s] exist" (362); "the page [it] is on" (383); and "()creates" (390).

There are some other parts of the text where either the author or the editorial team may have been careless — for instance, the figcaption and figure tags repeated on pages 16 and 18. Fortunately, such cases are few and far between. The HTML, CSS, and JavaScript code is generally of decent quality, except much of the HTML markup is not indented properly. In the JavaScript code, most if not all of the string concatenation is jammed together, making the elements difficult to distinguish (e.g., page 72). Also, some of the HTML does not utilize the more streamlined attributes of HTML5, such as <script type="text/javascript"> (e.g., page 20), or is not well formed, such as </li> tags missing (e.g., pages 236 and 250).

The author occasionally uses terminology that would be comprehensible only to someone who already has the knowledge that the narrative presents for the first time, without providing at least a quick explanation, e.g.: the !"!" JavaScript operator (page 55); the terms "rollover" and "user agent" (page 69 for both); and "the manifest comes up 404 or 410" (page 342). Some of the advice may be true, but is rather outdated, such as the admonitions in the first chapter to not use frames, nor to use tables or spacer images for layout. Those principles were validated and disseminated many years ago. Some statements could easily be misinterpreted by beginners, e.g., "As long as your HTML file is in the same folder as your style sheet file, it will load your styles when your page is loaded" (page 36). Other statements are not explained in detail or substantiated, and consequently the reader will probably not understand the reasoning behind it, e.g., "using the min- and max- extensions is more effective" (page 61), and "a separate mobile domain [] makes your mobile site easier to find" (page 10). Readers may disagree completely with some of the claims, e.g., "XHTML [is] very difficult to write" (page 2).

There are only two discernible problems with the production of the book: In some of the HTML code, curly quotes are used (e.g., page 303). Secondly and more importantly, the san-serif font used to indicate keywords looks much too similar to the serif font of the regular text, causing the keywords to blend into the surrounding material.

Yet the main problem with the narrative is the somewhat erratic manner in which the author skips from one topic to the next, often providing just a few paragraphs or even sentences for each topic — giving the impression that critical information may have been neglected as a result of the less-than-methodical organization of the material. Most of those topics are discussed again, in varying levels of detail, in later chapters. This is not optimal, because technical readers generally hope to find full coverage of any given topic in one place; hence, it can be frustrating if the information is scattered throughout a book. This is especially true if the reader has already read the book in full, and is now returning to it in order to utilize it as a reference source. For instance, in many cases, attributes are presented, but without detailed explanation or examples. Fortunately, the worst of it seems to be confined to Part I of the book, which contains most of the introductory material. Most if not all of the key concepts appear to be addressed to at least some extent. Lastly, some of the information that should have been presented right up front, is not, e.g., the definitions of HTML5 on pages xiv, 1, and 52.

Unlike most programming books nowadays, this one has few instances of phrasing that would baffle the reader for long, and there are no goofy attempts at humor. For most of the topics, the information provided is the minimum to achieve the bulk of the desired results. The advantage to this is that the narrative is generally concise and quick to read, and the author is able to cover a lot of ground without having to package such a broad topic in a (more expensive) tome. Some of the narrative is quite good, such as the explanations of the various browser exceptions involved in the HTML5 drag-and-drop functionality.

Despite the aforementioned blemishes, this book is definitely worth a look, because it is currently one of the most complete tutorials for learning how to use HTML5 for creating mobile apps and web sites.

Michael J. Ross is a freelance web developer and writer.

You can purchase Sams Teach Yourself HTML5 Mobile Application Development in 24 Hours from Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

Sorry! There are no comments related to the filter you selected.

fristy piss (-1)

Anonymous Coward | more than 2 years ago | (#38668470)

frosty post

Curious (0)

Anonymous Coward | more than 2 years ago | (#38668492)

Realistically is there any chance to learn how to do x in y hours from these kind of books?

Re:Curious (2)

PortHaven (242123) | more than 2 years ago | (#38668522)

No, but often they can be very good books. Back in the late 90's I used Sam's Teach yourself HTML in 24 hours. Did half the book over a 2 week period.

It helped land me my first computing job.

Re:Curious (1)

Anonymous Coward | more than 2 years ago | (#38670280)

yeah but that was then, and this is now. the web has moved on since then.

that's the reason why html5 is failing to gain much traction - no matter how good the reasons for turning the clock back to those glory days of "this website is best viewed with[insert favorite browser here]" the consumers are just not interested. and the devs are not that keen either.

have a look at how the html5 mobile gaming company Moblyng are doing... hint - they've shut down in the last week after spending 10 million dollars of other peoples cash.

Re:Curious (1)

justforgetme (1814588) | more than 2 years ago | (#38671376)

... html5 mobile gaming company Moblyng are doing... hint - they've shut down in the last week after spending 10 million dollars of other peoples cash.

In their defense, investors should have been expecting that. Those guys are lying to the Mob, why would they think they were earnest with them?

Re:Curious (1)

PortHaven (242123) | more than 2 years ago | (#38685670)

Are you being critical of the book, or HTML5.

I think the discussion at hand is on the value of the book. Which I believe to be good.

HTML5, poses many issues. As does HTML. Most of the issues referred to are the same that has plagued HTML.

Ironically, HTML5, thanks to Steve Jobs, has probably killed the best alternative. Which was the Flash engine.

The honest truth is that anyone who looked at the Flash engine, ActionScript3, Flex framework, etc. Would probably find it very impressive.

I've argued that Adobe erred on the their path. They should have open sourced it a long time ago. And pushed for ActionScript to be supported natively akin to JavaScript. (I think most will say that JavaScript has many flaws. JQuery is powerful and useful, but just the syntax alone shows how many hoops and hurdles have been jumped through to make it happen.)

Re:Curious (3, Informative)

Crudely_Indecent (739699) | more than 2 years ago | (#38668560)

Who has 24 consecutive hours, or the stamina to spend them on one topic?

I own several of the 24 hour books, and I can safely say that they're not going to make you an expert in 24 hours - but you'll definitely have enough knowledge to get yourself into trouble :)

The best I've been able to do is in 4 hour chunks, followed by a 1-2 hour break. Any more than that and my eyes start to cross. Each hour/chapter can (generally) be done in an hour - although most should be given more than an hour of attention for the sake of deeper understanding.

I don't own this particular book, so I can't attest to the 24-hour-ness of it's content.

Re:Curious (3, Interesting)

almitydave (2452422) | more than 2 years ago | (#38668806)

The only book of this series I ever had was "Teach yourself DirectX 7 in 24 Hours" and they quite explicitly stated in the book (I think on the cover even) that it's not intended to teach you the subject matter in 24 consecutive hours from start to finish, but in 24 lessons of approximately one hour.

I only got partway through that particular book, but I learned enough from the few chapters I read completely, with selective reading of others, to go from zero knowledge about DirectX programming to writing a 3D gravity simulator with textures, dynamic lighting, etc. I found it an effective introduction to the topic, but as others have indicated, it was a starting point, not a comprehensive guide.

Re:Curious (1)

Quiet_Desperation (858215) | more than 2 years ago | (#38671562)

The trouble is where you learn the most, though. :)

I really don't think Sam's means 24 consecutive hours.

Re:Curious (1)

Hognoxious (631665) | more than 2 years ago | (#38672308)

you'll definitely have enough knowledge to get yourself into trouble

That'd be a good theme for a series of books.

"The dilettante's guide to VBA"
"Muddle through with MySQL"
"Get dangerous with C++"

Re:Curious (1)

TheSpoom (715771) | more than 2 years ago | (#38673876)

The idea is that each chapter should take about an hour, not that you'll read all of them consecutively.

Re:Curious (4, Insightful)

hedwards (940851) | more than 2 years ago | (#38668686)

Yes, as long as you're expecting an incredibly shallow and incredibly narrow knowledge of the subject. In 24 hours you could probably learn enough German to go to a bakery and order some hard rolls, but you wouldn't be able to learn enough to conduct business beyond what you'd been taught to say and you certainly wouldn't have a deep knowledge of any of it.

Re:Curious (3, Funny)

theNAM666 (179776) | more than 2 years ago | (#38671018)

Wirklich? Ich habe Deutsch studiert seit über 20 Jahren vorher, und lebte in Deutschland über zwei Jahren. Aber ohne weiteres, ich habe kein Ahnung, was die korrekte Syntax für "hard" Brötchen ist. Veilleicht, koentte man "Pointers" uben, das heißt, ein Zeigefinger benutzen!

Re:Curious (1)

TigerTime (626140) | more than 2 years ago | (#38668716)

I think if you break it up into 2 hour segments you can sorta learn it OVER 24 hours. But that doesn't include "lab" time. Go off and apply the knowledge through trial and error until you full understand it, and then come back for another 2 hours.

2 hrs of learning/reading + 6 hrs of application = real knowledge.

Re:Curious (2)

kcitren (72383) | more than 2 years ago | (#38668854)

24 hours == 8 weeks of a 3x per week course. That's a reasonable amount of time to learn something.

24 Hour book format (2)

clintp (5169) | more than 2 years ago | (#38675330)

24 hours == 8 weeks of a 3x per week course. That's a reasonable amount of time to learn something.

I'll blow my moderation on this post to say: I wrote the "Perl in 24 Hours" books and this is exactly how it started out. I'm not sure how the other 24 Hours authors did things, but this is how I did it. I taught perl in night classes in the late 90's as part of a retraining effort for programmers that used COBOL or something else.

Classes were two nights per week with about 3 hours of effective class time, over a span of 3 weeks (18 hours). The book's chapters, exercises, and examples were right out of the instructional material (that I wrote). About 30+ minutes of lecturing, whiteboarding, and walking through the examples; the remainder of the hour was lab time to do the problems given. (I always did "open lab" during the lectures too, but time was set aside for those that needed to pay close attention.)

The remaining time in the class were "applications" of what was learned in the earlier sections -- writing useful programs to perform a task. The tasks changed as time went by based on interests of the class, industry needs, etc.. and how bright the students were in that bunch. Each edition of the book (there are 3) has a different set of 6 chapters at the end following this same trend.

To write the book was relatively easy: just lift the lesson plan right into the book. Hour by hour, chapter by chapter. The pacing was right, the material distribution was right, everything worked out.

It sold a ton of copies and is still paying enough royalties to take my wife out for a nice dinner every month. :)

Not meant for absolute beginers. (0)

Anonymous Coward | more than 2 years ago | (#38669096)

These types of books assume you already are fluent in a different form of the subject matter. You are simply learning a new way of doing things you already know. Like those books that teach C++ in two weeks, all you are learning is new syntax. It's assumed you already have a broad understanding of general programming concepts and practices.

Re:Not meant for absolute beginers. (1)

Assmasher (456699) | more than 2 years ago | (#38672480)

That being said, there's still value in these types of books for some.

I first started taking software seriously (having dabbled throughout childhood) when I bought a copy of [] and Turbo C++ (in 1991?) before a really long deployment to the Pacific. Now, it took me more than three days to really *get* pointers, LOL, but that little digest of a book was a wonderful start for me. 20 years later, I am a very senior software engineer and a CTO.

Love that book! Still have it in my dev library.

Re:Curious (1)

Quiet_Desperation (858215) | more than 2 years ago | (#38671548)

It's just a gimmick. Don't sweat it.

Learn X in X hours/days (3, Insightful)

IANAAC (692242) | more than 2 years ago | (#38668684)

"This "teach yourself in 24 hours" format borders on "brain surgery in three easy steps."

I suppose it's no worse than any foreign language book/CD that claims you will speak another language in 10 days, 30 days, whatever.

Most rational people will pick up the book and use it for what it's meant: a starting point.

Re:Learn X in X hours/days (0)

Anonymous Coward | more than 2 years ago | (#38668738)

Indeed. Books like this also waste your time, because if they are targeted toward people who just need to know the new concepts and the language syntax, but they simultaneously waste tons of time going over stuff you probably already know. If I know C++ and I need to learn Java I don't need a whole chapter on control structures, just the syntax, an IF statement is pretty much the same thing in every language.

This guy has a good idea of what you should get out of new languages:

Re:Learn X in X hours/days (1)

Synerg1y (2169962) | more than 2 years ago | (#38668850)

If all you need is syntax (like mwha), why not exclusively use google?

Your question is ez to answer via [] .

The art comes in putting in the right search terms (where previous language knowledge makes this possible) and eventually you just kind of pick it up and w time you get better and better as you solve various scenarios and cases in the new programming language.

Still, at least at work, I like to have a book handy just in case I need to grasp a concept or something dumb like HQL, that you just kind of learn the rules to prior to use and google examples are very inflexible and limited due to that language's structure. SQL, any flavor of c, any flavor of vb, most other open source, have EVERYTHING documented on their parent websites as well as abundant examples and use cases floating around on places like codinghorror.

Re:Learn X in X hours/days (0)

Anonymous Coward | more than 2 years ago | (#38670320)

an IF statement is pretty much the same thing in every language.

funny you should say that, because if you've actually tried to put anything together in html5 you would know that a float, for example, can be very different depending upon the browser you've using. it's the main reason anyone who's tried to get anything serious working has jumped ship. html5 is a complete joke.

Re:Learn X in X hours/days (2)

HamburglerJones (1539661) | more than 2 years ago | (#38668750)

Brain surgery in three easy steps: 1) Cut open head 2) ??? 3) Profit!

Re:Learn X in X hours/days (2)

theskipper (461997) | more than 2 years ago | (#38668922)

Based on your username, that wasn't a joke, was it?

Re:Learn X in X hours/days (1)

HamburglerJones (1539661) | more than 2 years ago | (#38741116)

Mayor McCheese's demise was well-deserved. He ruled McDonaldland with an iron fist.

Re:Learn X in X hours/days (1)

Billhead (842510) | more than 2 years ago | (#38668892)

As others have pointed out, there are 24 one hour chapters, it's not meant to teach you in a 24 hour period.

Re:Learn X in X hours/days (2)

syousef (465911) | more than 2 years ago | (#38669012)

As others have pointed out, there are 24 one hour chapters, it's not meant to teach you in a 24 hour period.

That's what coffee is for!!!

Re:Learn X in X hours/days (1)

IANAAC (692242) | more than 2 years ago | (#38669136)

As others have pointed out, there are 24 one hour chapters, it's not meant to teach you in a 24 hour period.

Understood. It's still accelerated, and my point still stands that any sane person would look at any of these types of books as a starting point, not the end-all-be-all of knowledge.

Re:Learn X in X hours/days (1)

theshowmecanuck (703852) | more than 2 years ago | (#38669806)

Yeah, if IIRC I read somewhere that most people cannot take in more than 50 or 60 minutes worth of new information at one sitting without a 5 or 10 minute break or preferably longer on any given subject. If you do, the stuff that comes after progressively 'sticks less'. You get some of it but not as much as if you had a break. And not as much if you took a break to the next day. Works for me. Plus in order to really learn it, you need to take that one hour's reading and apply it by writing some of the code you just read about.

Re:Learn X in X hours/days (1)

Tr3vin (1220548) | more than 2 years ago | (#38669622)

"This "teach yourself in 24 hours" format borders on "brain surgery in three easy steps."

I think you helped me come up with a blurb for these books:

"As easy and fun as a lobotomy!"

Re:Learn X in X hours/days (0)

Anonymous Coward | more than 2 years ago | (#38670342)

try getting anything that is reasonably complex working across all browsers in html5.

to be honest a lobotomy is a lot more fun and far cheaper!!!!

first post (-1)

Anonymous Coward | more than 2 years ago | (#38668724)

Recruitment, but sux0r stAtus, *BSD

The !"!" JavaScript operator (1)

multipartmixed (163409) | more than 2 years ago | (#38670038)

Huh? What the hell does THAT do?

Re:The !"!" JavaScript operator (0)

Anonymous Coward | more than 2 years ago | (#38670380)

I believe the review needs to be errata'd to "!", which would be the 'not' signifier.

Re:The !"!" JavaScript operator (1)

FilthCatcher (531259) | more than 2 years ago | (#38670616)

it's fairly simple... NOT!

Re:The !"!" JavaScript operator (1)

theNAM666 (179776) | more than 2 years ago | (#38671022)

Bang Bang, and hit the ground.

Re:The !"!" JavaScript operator (0)

Anonymous Coward | more than 2 years ago | (#38672574)

I believe it's a retarded way in a slightly dumb language to typecast something to a boolean,

var x = "hello"
var y = !!x;
alert(typeof(y)); // Boolean

DHCP 6 (1)

unixisc (2429386) | more than 2 years ago | (#38672114)

If /. is doing book reviews, are there any on DHCP 6?

Re:DHCP 6 (1)

stoolpigeon (454276) | more than 2 years ago | (#38673540)

there will be if you write one - these are submissions, just like all the rest.

good (0)

Anonymous Coward | more than 2 years ago | (#38672896)

I bought this book as a quick reference for a class I was taking for grad school, it's not bad.

Apply Murphy's IT project delivery law (1)

Pirulo (621010) | more than 2 years ago | (#38673044)

Take the unit you measured the estimate to the next unit. (hours to days)
then multiply by Pi,
24 days * 3.16 = ~ 76 days

That's also why your "it's a 5 minute task" takes 15 hours.

Re:Apply Murphy's IT project delivery law (0)

Anonymous Coward | more than 2 years ago | (#38674536)

Or, with the more commonly used value of pi, 75 days.

10k rule (0)

Anonymous Coward | more than 2 years ago | (#38674270)

It takes 10,000 hours to become an expert in something. So a teach yourself programming in 24 hours means learning some of the basics. An intro course. Or it assumes you already have a couple thousand hours behind you (for teach yourself language X). But to really learn a language inside and out - to program in it idiomatically - one needs more than 24 one hour lessons, unless it's very similar to languages you already know. If all you know are the C family of languages, and you want to learn Lisp, you're not going to become a proficient Lisp hacker in just 24 hours. Not that I'd expect a Lisp book to have that kind of marketing BS, but you get the point.

Check for New Comments
Slashdot Login

Need an Account?

Forgot your password?