RickS wrote:
> "Larry Blanchard" <[email protected]> wrote...
[snip] catch ( MessagingException e ) {
> AlertUser( e.getMessage() );
> }
> }
> }
>
> /rick.
>
Real men code in assembler. ;-)
mahalo,
jo4hn (aka Mr.Verdan)
In article <[email protected]>, patriarch
<patriarch>[email protected]> wrote:
> So how to I implement the 'JOAT exception' case? ;-)
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
In article <260720041706366245%dave@N_O_T_T_H_I_S.balderstone.ca>, Dave
Balderstone <dave@N_O_T_T_H_I_S.balderstone.ca> wrote:
> 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
Oops. That should be
kill message i
In article <Bs_Mc.47214$ve2.40099@okepread05>, [email protected]
says...
> Abandonn'e Bambini wrote:
> > found a hive the size of a basketball behind my house
> >
> > http://*<deleted>*
> >
> SPAM, don't bother checking it out.
>
IF( MESSAGE ID CONTAINS "WEBTV" )
THEN
DEPOSIT IN TRASH
ELSE
READ
ENDIF
--
Where ARE those Iraqi WMDs?
On Mon, 26 Jul 2004 12:37:11 -0400, RickS <> wrote:
>
> "Larry Blanchard" <[email protected]> wrote...
>>
>> IF( MESSAGE ID CONTAINS "WEBTV" )
>> THEN
>
> You still using GBASIC (or XBase)?
Looks like LBasic, actually ;)
> 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;
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
In article <[email protected]>, "RickS" <rick --dot-- s
--at-- comcast.net> says...
>
> "Larry Blanchard" <[email protected]> wrote...
> >
> > IF( MESSAGE ID CONTAINS "WEBTV" )
>
> You still using GBASIC (or XBase)? Get with the new languages, man.
Actually, that was made up, but IIRC, it bears a strong resemblance to
Ratfor.
> 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;
>
<large snip>
I love it! I'm still chuckling :-).
--
Where ARE those Iraqi WMDs?
On Tue, 27 Jul 2004 00:28:45 GMT, jo4hn <[email protected]> wrote:
>>
> Real men code in assembler. ;-)
I'd like to register a shift in the thread please.
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:
[email protected] (Richard=A0A.)
Abandonn'e Bambini wrote:
found a hive the size of a basketball behind my house
http://community.webtv.net/Boun04/doc
SPAM, don't bother checking it out.
Dave Hinz wrote:
> On Tue, 27 Jul 2004 00:28:45 GMT, jo4hn <[email protected]> wrote:
>
>>Real men code in assembler. ;-)
>
>
> I'd like to register a shift in the thread please.
>
Shift to the left,
shift to the right,
pop up, push down,
byte, byte BYTE!
rah.
Dave Hinz <[email protected]> wrote in
news:[email protected]:
> On Mon, 26 Jul 2004 12:37:11 -0400, RickS <> wrote:
>>
>> "Larry Blanchard" <[email protected]> wrote...
>>>
>>> IF( MESSAGE ID CONTAINS "WEBTV" )
>>> THEN
>>
>> You still using GBASIC (or XBase)?
>
> Looks like LBasic, actually ;)
>
>> 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;
>
> 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
>
So how to I implement the 'JOAT exception' case? ;-)
Patriarch
"Larry Blanchard" <[email protected]> wrote...
>
> IF( MESSAGE ID CONTAINS "WEBTV" )
> THEN
> DEPOSIT IN TRASH
> ELSE
> READ
> ENDIF
>
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.
On Sun, 25 Jul 2004 22:45:20 -0400, [email protected] (Abandonn'e
Bambini) wrote:
Hey dickhead, if you want to support the kids go out and get a job
instead of panhandling here......
>found a hive the size of a basketball behind my house
>
>http://community.webtv.net/Boun04/doc
On Mon, 26 Jul 2004 08:46:08 -0700, Larry Blanchard
<[email protected]> wrote:
>In article <Bs_Mc.47214$ve2.40099@okepread05>, [email protected]
>says...
>> Abandonn'e Bambini wrote:
>> > found a hive the size of a basketball behind my house
>> >
>> > http://*<deleted>*
>> >
>> SPAM, don't bother checking it out.
>>
>
>IF( MESSAGE ID CONTAINS "WEBTV" )( AND NOT "JOAT")
> THEN
> DEPOSIT IN TRASH
> ELSE
> READ
>ENDIF
Dave Hinz wrote:
> On Tue, 27 Jul 2004 00:28:45 GMT, jo4hn <[email protected]>
> wrote:
>
>> Real men code in assembler. ;-)
>
> I'd like to register a shift in the thread please.
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. ;->
--
Morris Dovey
DeSoto, Iowa USA
jo4hn wrote:
> Dave Hinz wrote:
>
>> On Tue, 27 Jul 2004 00:28:45 GMT, jo4hn <[email protected]> wrote:
>>
>>> Real men code in assembler. ;-)
>>
>>
>> I'd like to register a shift in the thread please.
>>
> Shift to the left,
> shift to the right,
> pop up, push down,
> byte, byte BYTE!
>
> rah.
<OT source="Mad Magazine" favorite="true">
Aces, aces
Back to back.
Fill that straight
With a one-eyed Jack.
C'mon team
Plaaaay Poker!
</OT>