webOS Nation Forums >  webOS apps and software >  webOS development > palm-generate naming conventions
palm-generate naming conventions

  Reply
 
LinkBack Thread Tools Display Modes
Old 07/09/2009, 09:47 PM   #1 (permalink)
Member
 
Join Date: Jul 2009
Posts: 33
Likes Received: 7
Thanks: 3
Thanked 12 Times in 8 Posts
Default palm-generate naming conventions

I've got the webos roughcuts book.

Section 3.4 Lists refers to the scenes as camelCase-scene.html and camelCase-assistant.js

They even do so when asking you to create a new scene with
Code:

Code:
palm-generate -t new_scene -p "name=storyList" .
however, the files generated from that end up being story-list-scene.html and story-list-assistant.js

Which is the convention?
Perhaps it was updated in a newer version of the SDK? (Not sure if mine is the most recent or not).

thanks
-k
sevensoft is offline   Reply With Quote
Old 07/10/2009, 06:00 AM   #2 (permalink)
Member
 
Join Date: Oct 2002
Posts: 77
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I have the same issue. I changed everything to lower case and then changed the examples. But I would like to know the answer as well.

There also seems to be an error in the example 3.4.1.2. The paths should be:
"source": "app\/assistants\/stage-assistant.js" not
"source": "app\/controllers\/stage-assistant.js"
NADLER is offline   Reply With Quote
Old 07/10/2009, 10:59 AM   #3 (permalink)
Member
 
Join Date: May 2009
Posts: 1
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default same thing

yea after reading the comments at the bottom of the rough cuts book, it seems that the naming conventions have changed, and the book hasn't been updated to reflect that. Also as long as your using the sdk's generate you shouldn't need to worry about the sources, as it updates that for you.
macadada is offline   Reply With Quote
Old 07/10/2009, 11:08 AM   #4 (permalink)
Member
 
Join Date: Jun 2009
Location: Paris
Posts: 29
Likes Received: 0
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Still, how should you refer to your scenes, sceneView (what you typed to generate) or scene-view (the actual name) ?
jessyjones is offline   Reply With Quote
Old 07/10/2009, 09:45 PM   #5 (permalink)
Member
 
Join Date: Jul 2009
Posts: 33
Likes Received: 7
Thanks: 3
Thanked 12 Times in 8 Posts
Default

Quote:
Originally Posted by macadada View Post
yea after reading the comments at the bottom of the rough cuts book, it seems that the naming conventions have changed, and the book hasn't been updated to reflect that. Also as long as your using the sdk's generate you shouldn't need to worry about the sources, as it updates that for you.
Thanks.. Figured as much. I'll have to go take a look at the comments.
sevensoft is offline   Reply With Quote
Old 07/10/2009, 09:48 PM   #6 (permalink)
Member
 
Join Date: Jul 2009
Posts: 33
Likes Received: 7
Thanks: 3
Thanked 12 Times in 8 Posts
Default

Quote:
Originally Posted by NADLER View Post
I have the same issue. I changed everything to lower case and then changed the examples. But I would like to know the answer as well.

There also seems to be an error in the example 3.4.1.2. The paths should be:
"source": "app\/assistants\/stage-assistant.js" not
"source": "app\/controllers\/stage-assistant.js"
Noticed the same thing as well.. took me a minute when my page didn't load after I had copy/pasted the updates to the sources.json.

Guess thats what we get for playing around with and SDK that is so rapidly changing.. loving it!
sevensoft is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0