• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
OT : Coding Standards (was New WebObjects 15 Minute Tutorial in Quicktime)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OT : Coding Standards (was New WebObjects 15 Minute Tutorial in Quicktime)


  • Subject: OT : Coding Standards (was New WebObjects 15 Minute Tutorial in Quicktime)
  • From: Owen McKerrow <email@hidden>
  • Date: Mon, 29 Mar 2004 11:49:25 +1000

Hi All,

I just watched the Jonathan's 15 min Intro to WebObjects ( Great work John, keep it up ). However I did notice that he does things a little differently to how I've seen WO taught before. These being :
1) He didn't make a java class of his Entity, he just imported the EOModel
2) He used instances of String's inside the Main.java file to store the values typed into the form and then in the function thats called by the submit button, he makes a new instance of his EOEnterpriseObject entity and fills in the values with takeValueForKey(newTitle, "title"). The bit thats different here is making a new instance of EOEnterpriseObject and not an instance of the Entity itself, and then using takeValueForkey as opposed to setTitle() method that would be a part of the Java class ( if he had made it ).
3) When making a NSArray for the repetition, he makes a method that simply returns EOUtilities.objectsForEntityNamed(), i.e. he doesn't make an array variable in Main, he just returns the results from the DB.


Know I know there isn't much difference between what Im used to and how he has done things and Im sure lots of otherways people build projects, but it does raise the question of what is best practice. As he says on his website the idea of the video is to allow you to look over the shoulder of someone i.e. "watching a pro use WebObjects to build an application". So I was wondering :

1) Jonathan, is this your normal way of doing things or did you change slightly for this simple example ? In particular in regards to not creating the Java class from EOModler, and using takeValueForKey() to set the values in the new instance, and simply returning the array from the DB and not having an instance of it ( with regards to the WORepition)

2) Is this the approach other people take ?

3) What are the benefits of doing things this way ?

On 28/03/2004, at 9:36 AM, Kieran Kelleher wrote:'

This is great for beginners  ........... courtesy of the  Jonathan
'Wolf' Rentzsch at the Red Shed

here is the URL:

  http://rentzsch.com/webobjects/wo5in15


________________________________________________________________
Config = OS X 10.3.2 / Java 1.4.1 / WO 5.2.2 / MySQL 4.0.18 /
Connector-J 3.0.11
Blog: http://webobjects.webhop.org/
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.




- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
People who prefer typing to pointing then seem to prefer acronyms to save typing :-)
-Denis Stanton, On people using Command Line Interfaces
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.



  • Follow-Ups:
    • Re: OT : Coding Standards (was New WebObjects 15 Minute Tutorial in Quicktime)
      • From: Arturo PĂ©rez <email@hidden>
References: 
 >New WebObjects 15 Minute Tutorial in Quicktime (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: HELP: Problem using WebServices Assistant
  • Next by Date: Re: OT : Coding Standards (was New WebObjects 15 Minute Tutorial in Quicktime)
  • Previous by thread: New WebObjects 15 Minute Tutorial in Quicktime
  • Next by thread: Re: OT : Coding Standards (was New WebObjects 15 Minute Tutorial in Quicktime)
  • Index(es):
    • Date
    • Thread