• 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
Re: Writing a beginners tutorial, some D2W questions on Webassistant and ERAtachment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing a beginners tutorial, some D2W questions on Webassistant and ERAtachment


  • Subject: Re: Writing a beginners tutorial, some D2W questions on Webassistant and ERAtachment
  • From: Johan Henselmans <email@hidden>
  • Date: Sun, 20 Jan 2008 08:52:20 +0100


On 20 jan 2008, at 01:21, Guido Neitzer wrote:

On 19.01.2008, at 15:11, Johan Henselmans wrote:

I planned it to only use it for the backend application to add products and product categories, and uploading pictures of the products. That's it. just give a feel of DirectToWeb. Explain the rule system, and how to customize a part. The other stuff would be normal WebObjects stuff. Sorry if my phrasing was not precise. The fulfillment and the statistics would make use of the other tools.

In my opinion you should definitely tell the readers that they need a very thorough understanding of how WebObjects works to use D2W without too much frustration. I use it a lot and often enough it still drives me nuts.

We are talking about a tutorial getting a beginner up to steam, undersand the user interface, let him/her see what kind of tools there are, and have a proper working structure to enhance in the end. We'll leave it as an exercise to the WODocumentation people to enhance that for the intermediate level developer...




Keep that in mind: you show a beginner something and you have to tell him: it will drive you nuts if you haven't worked with WO for a while to understand how to read source, how to read components, even how to get the BugTracker example even starting!

If you can get it right with your tutorial, I'm pleased. But please don't do it like one of my old computer science professors showing some simple stuff to the audience and then telling them "the rest is left as an exercise to you" - and his example NEVER EVER helped with even understanding the problem ...

How is he going to change that? Very simple, the Direct2Web tutorial says. You are too inexperienced. First learn all the intricacies. Then, fire up the rule editor. Then add a rule: it is very simple, just add
{
rules = (
{
author = 100;
class = "com.webobjects.directtoweb.Rule";
lhs = {
class = "com.webobjects.eocontrol.EOKeyValueQualifier";
key = task;
selectorName = isEqualTo;
value = list;
};
rhs = {
class = "com.webobjects.directtoweb.Assignment";
keyPath = isEntityEditable;
value = true;
};
}
);
}


See: it's that simple.

What you are quoting is the machines representation of the rule. Not a humans. If you write that in a tutorial I personally fly to [Where the heck are you from?] and throw cotton balls at you until you screem! ;-)

[100] task = 'list' => isEntityEditable = true


That for me is the whole point about using some kind of assistant. This is what you get if you just copy and paste from the Rule Modeler. Of course I could have copied it from user.d2wmodel.txt.


You can take the train, to Amsterdam. I will wait for you on the station. After we have passed through the red light district and the drug dealer, we'll see if you'll still be able to throw cotton balls ;-)

(of course we could also take the normal route)

is easy enough to write and to understand.




I totally agree that D2W is a wonderful technology, but I know how hard it is to get past the simple stuff. And today, web developers have to provide more than just simple forms.

cug

--
Real-World WebObjects class at the Big Nerd Ranch
March 2008, Frankfurt, Germany
http://www.bignerdranch.com/classes/webobjects.shtml




Regards,

Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6273852


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Writing a beginners tutorial, some D2W questions on Webassistant and ERAtachment
      • From: Lachlan Deck <email@hidden>
References: 
 >Writing a beginners tutorial, some D2W questions on Webassistant and ERAtachment (From: Johan Henselmans <email@hidden>)
 >Re: Writing a beginners tutorial, some D2W questions on Webassistant and ERAtachment (From: Guido Neitzer <email@hidden>)
 >Re: Writing a beginners tutorial, some D2W questions on Webassistant and ERAtachment (From: Johan Henselmans <email@hidden>)
 >Re: Writing a beginners tutorial, some D2W questions on Webassistant and ERAtachment (From: Guido Neitzer <email@hidden>)

  • Prev by Date: Re: Packaging WebObjects application like JavaEOGenerator...
  • Next by Date: Re: Packaging WebObjects application like JavaEOGenerator...
  • Previous by thread: Re: Writing a beginners tutorial, some D2W questions on Webassistant and ERAtachment
  • Next by thread: Re: Writing a beginners tutorial, some D2W questions on Webassistant and ERAtachment
  • Index(es):
    • Date
    • Thread