Jim Roepcke's weblog have browser, will travel (est. 1999)

1Dec/01Off

More on Misusing Dynamic Binding

Brad Cox: Misusing Dynamic Binding When Static Binding Would Do, Part 1

"In this example, the JSP page hard wires a dynamically bound link to the target page in its <a href> command rather than calling a statically bound, type-checkable method of the target page. None of the Web app environments I've seen support the latter option. Pages reference other pages by filename, not as objects, because browsers use HTML, which does it this way."

A while ago Brad Cox was asking questions about WO on the lists. Either he wrote the article above before learning about WebObjects, or he didn't dig very deep... with WebObjects, pages reference other pages as objects, not by filename! It's great!

With WebObjects, hyperlinks and submit buttons typically target the CURRENT page, and are bound (dynamically, mind you, in a declarations file that belongs to the view of the component) to action methods on that (current) page's object instance. The action methods return a new page instance (the page to be shown to the user).

The action method can configure the target page between instanciating it and returning it. ie: nextPage.setSelectedObject(objectChosen()); This is a very cool way to program web apps, because it means you can pass things between pages UNDER THE COVERS, instead of... er, over the covers, ie: in HTTP=URL&Param=eters.

Here's an example action method in a WO page (pages are WOComponents, and the java code of a WOComponent is the controller in the MVC triad):

public WOComponent showDetails() {
    DetailPage nextPage = (DetailPage)pageWithName("DetailPage");
    nextPage.setObjectToShow(selectedObject());
    // maybe you want to tell the next page where it came from
    nextPage.setPreviousPage(this);
    return nextPage;
}

BTW, showDetails, setObjectToShow, selectedObject and setPreviousPage are all method names I made up. pageWithName(String) is authentic.

1Dec/01Off

You must be kidding

Scobleizer: A Tale of Two Tech Industry "Leaders"

"But UserLand is building the damn coolest Web publishing tool I've ever seen (and that's no bullshit, I've been using all the best publishing tools since I discovered PageMaker in 1987 and FrontPage in 1996)."

You know that acronym "LOL", right? Laugh out loud. Well, it's overused. Most of the time when people use it in emails or in IM conversations, I highly doubt they are actually lauging out loud.

Well let me assure you, when I read the quote above, I was LOL. I wasn't quite ROTFLMAO, but close.

FrontPage? OMG. You must be kidding me. _vti_ugh If FrontPage is one of the best publishing tools, then I'm worried about UserLand.

1Dec/01Off

Matrix Revisited

I just finished watching The Matrix Revisited. 15 bucks, I thought that was pretty good for a DVD. :-) I didn't even know what was on it... it said The Matrix on it so that was good enough for me! ;-)

Turns out it's a 2 hour making-of and philosophy-of the Matrix, plus extras. I really enjoyed it. And thankfully, there were no spoilers about the new movies in the 2 hour bit, that I saw. There's a "Go Further" item in the main menu, with a "What's to Come?" selection in it... the reviews on Amazon say it's related to the sequels, so I avoided that. ;-)

The stuff about the Animatrix is super cool. Anyway, Revisited is basically a $15 commercial for the Matrix, the sequels, and the animated shorts, but I don't care.

I'm so jealous of the Wachowski brothers!!! ;-)

1Dec/01Off

New SNAX offered for Mac OS X

MacCentral: New SNAX offered for Mac OS X

The program is designed "to eclipse Apple's Finder in every way: ease of use, features, quality and performance," he said.

And does it ever! I downloaded it and have been playing with it. I've seen other so-called Finder replacements, and nothing I've tried yet comes close to this. It's totally great.

If you consider yourself an OS X power user, you should check out SNAX.

1Dec/01Off

Brad Cox: Misusing Dynamic Binding…

Brad Cox: Misusing Dynamic Binding When Static Binding Would Do, Part 2

"This is not a condemnation of dynamic binding, which can be invaluable when used appropriately. Many problems can only be solved with dynamic binding.

Rather this is a condemnation of those who use it inappropriately for problems that can be solved more straightforwardly, productively, and efficiently with static alternatives."

Brad Cox, the father of Objective-C, which ironically is a superset of the C language that adds dynamic binding, has a lot of good points to make about the benefits of static binding and why the use of dynamic binding needs to be rationalized.

I especially loved the way he trashed the blatant over-use of XML files for configuring just about everything these days. You can't run a servlet or a JSP page or just about anything from the mainstream open-source-java-world without drowning yourself in XML-ized config files.

1Dec/01Off

Editing forum messages

Uh boy. Here we go!

Slashdot: When Should a Website Edit Its Users?

"Can a weblog edit users comments without opening itself up to liability in case of a slander suit? I run a political weblog and have a policy similar to slashdots in terms of the comments posted belonging to their owners." (continued...)

There's a lot of interesting information in that thread already, including references to the DMCA.

So far my favourite post in the thread is this one.

Roepcke Computing Solutions

Jim Roepcke specializes in development and mentoring for iPhone and Mac OS X / Cocoa, WebObjects, and Python.

Contact Jim for more information.

Archive Calendar

December 2001
S M T W T F S
« Nov   Jan »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Blogroll

Saved Searches

Willing to Fail

Jim Roepcke is Willing to Fail

WebObjects book

I co-authored this book

Badges

Proud Member of the Association for Computing Machinery

Listed on BlogShares

Blog Directory - Blogged

Recent tweets

Meta