talk about working with wood

found a hive the size of a basketball behind my house

formatting link

Reply to
Abandonn'e Bambini
Loading thread data ...

SPAM, don't bother checking it out.

Reply to
Richard A.

Hey d*****ad, if you want to support the kids go out and get a job instead of panhandling here......

Reply to
myxpykalix

IF( MESSAGE ID CONTAINS "WEBTV" ) THEN DEPOSIT IN TRASH ELSE READ ENDIF

Reply to
Larry Blanchard

Oh, so that's how you do it... Go begging on usenet. Okay, I'd love a new bandsaw, Santa!

Re: talk about working with wood Group: rec.woodworking Date: Sun, Jul 25, 2004, 9:59pm (EDT-1) From: snipped-for-privacy@nospamcox.net (Richard=A0A.) Abandonn'e Bambini wrote: found a hive the size of a basketball behind my house

formatting link
SPAM, don't bother checking it out.

Reply to
Tom Dooley

You still using GBASIC (or XBase)? Get with the new languages, man. For example, try some Java with a pure Object Oriented approach. Just look at how much easier to read and understand this "modern" code is....

public interface IMessageStrategy {

public void processMessage( Message msg ) throws MessagingException; }

public class ReadableMessageStategy implements IMessageStrategy {

private IMessageReader _reader;

public ReadableMessageStrategy( IMessageReader reader ) { _reader = reader; }

public void processMessage( Message msg ) throws MessagingException { _reader.read( msg ); } }

public class UndesirableMessageStrategy implements IMessageStrategy {

private ITrash _trash;

public UndesirableMessageStrategy ( ITrash trash ) { _trash = trash; }

public void processMessage( Message msg ) throws MessagingException { _trash.throwAway( msg ); } }

public class NewsGroupSystem {

protected static List UNDESIRABLE_TEXT; static { UNDESIRABLE_TEXT = new ArrayList(); UNDESIRABLE_TEXT.add( "WEBTV" ); }

private ITrash _trash = new OSTrash(); private IMessageReader _reader = new NewsGroupReader();

protected IMessageStategy getProcessingStrategy( Message msg ){ if ( msg.getID().containsAnyTextFrom( UNDESIRABLE_TEXT ) { return new UndesirableMessageStrategy( _trash ); } else { return new ReadableMessageStrategy( _reader ); } }

public void handleMessage( Message msg ) { try { getProcessingStrategy( msg ).processMessage( msg ); } catch ( MessagingException e ) { AlertUser( e.getMessage() ); } } }

/rick.

Reply to
RickS

Looks like LBasic, actually ;)

You know, people ask me why I stopped being a code-monkey. Thanks for reminding me.

Dave "Scary thing is, your example may very well run" Hinz

Reply to
Dave Hinz

Dave Hinz wrote in news: snipped-for-privacy@uni-berlin.de:

So how to I implement the 'JOAT exception' case? ;-)

Patriarch

Reply to
patriarch

Reply to
bridger

In Applescript:

tell app "YourNewsreader" repeat with i from one to count of unread messages if field "NNTP-Posting-Host" contains "webtv.com" and field "From" does not contain "Jakofalltrades" then kill message 1 end repeat end tell

djb

Reply to
Dave Balderstone

Actually, that was made up, but IIRC, it bears a strong resemblance to Ratfor.

I love it! I'm still chuckling :-).

Reply to
Larry Blanchard
[snip] catch ( MessagingException e ) {

Real men code in assembler. ;-) mahalo, jo4hn (aka Mr.Verdan)

Reply to
jo4hn

Oops. That should be

kill message i

Reply to
Dave Balderstone

I'd like to register a shift in the thread please.

Reply to
Dave Hinz

Multi-threading is of questionable value here. It should be written in microcode and executed as a single op to ensure atomicity regardles of the language used. ;->

Reply to
Morris Dovey

Shift to the left, shift to the right, pop up, push down, byte, byte BYTE!

rah.

Reply to
jo4hn

HomeOwnersHub website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.