• 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: Guido Neitzer <email@hidden>
  • Date: Sat, 19 Jan 2008 17:21:21 -0700

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.


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

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



_______________________________________________
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: Johan Henselmans <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>)

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