|
03/24/2009, 10:26 AM
#5
Sure.
Chapter 2 starts with the author discussing the technologies and then jumps right into starting your first project. He mentions a command line app called palm-generate that builds the app and directory structure. He also mentions how to do it via an IDE plugin...so even if the plugins are not ready, they seem to know the menu structure. He also mentions these plugin commands throughout the balance of the chapter.
He details the app/directory structure. Much of it uses convention rather than configuration...although locations can be overridden. Naming conventions are fairly important, however.
He then states that Palm brought in a developer last August who had no WebOS experience...and they asked him/her to build a simple RSS news reader app as a test of their SDK. Apparently, he got it knocked out very quickly...so this author thought that such an application would be a good running tutorial on which to build for the rest of the book...and he jumps right in.
He creates a stage with multiple scenes and shows code in each area. He uses standard styles and also overrides styles to control layout more precisely. He gives an overview of each component of the MVC stack, its role, its lifecycle, and shows some code in each area.
The news sources are hard-wired in code (i..e, not network feeds) at this point, but they will obviously get changed in later chapters as we get into networking. In fact, much of what he does is just a quick tutorial...and he mentions that subsequent chapters will get into more detail on a range of specific topics...like styling. He also references other items that are not yet generally available, like the Palm WebOS style guide.
By the end of the chapter, we have code that is displaying lists of news stories and supports pushing and popping scenes to read the stories.
Of course, that's from memory...so I may have made an error or omission, but that's mostly it. Thus, Chapter 2 appears to be a high-level MVC hello world for the WebOS stack...but it does start to provide meat.
|
|
|