neko
--
ne...@greenie.muc.de Simone Demmel Muenchen (Germany)
Fax.: 089/356 550 25 http://greenie.muc.de/~neko/
Wo ist am Internet der Henkel zum wegschmeissen?
No, you haven't lost us, there just hasn't been much golfing lately.
In my case, it's the interference of real life; meaning work, study,
and a new sport that has taken the place of golf...
Eugene
--
Well, less is more, Lucrezia. -- Robert Browning
... Well, except if reading Conway's excellent "Perl's Best
Practices" and realizing I'm breaking every single of his 256
commandments on a daily basis count as learning. In which case I do.
Joy,
`/anick
What's that, Wikipediaing?
Here's my new diversion: http://homepage.ntlworld.com/adelie/nathan/
--
Stephen Turner, Cambridge, UK http://homepage.ntlworld.com/adelie/stephen/
"Low Priced Cambridge Clare College. Big selection at eBay UK!"
(Ad after Google search for Clare College Cambridge)
Perhaps OT but having finished the PBP not too long ago and finding hardly
any I couldn't live w/ (the bare 'else' aligned w/ the previous close
curly - though I see his point), just curious if you are breaking them all
due to disagreement or a better way or, perhaps, just out of spite ;->
a
Andy Bach, Sys. Mangler
Internet: andy...@wiwb.uscourts.gov
VOICE: (608) 261-5738 FAX 264-5932
"On the Internet, nobody can hear you being subtle," Linus Torvalds
I'm breaking them all due to sheer inexperience, crass silliness
and just vanilla-plain unworthiness.
My reading of each of the commandment, I found out,
follows a rigourous processus. I always punctuate the
disclosure of the commandment at hand with an outraged
"preposterous!". At around mid-section, it unavoidly morphs
into a "hmmm, I can see his point.. but it ain't for me. It
just doesn't jive with my vibes". By the time I've made
it to the end, though, it is rare indeed that I haven't
seen the light, donned the ritual sackcloth and ashes,
sworn to atone for my sins and to walk the straight and
narrow from now on.
Seriously, I consider PbP to be the best programming
investment I did this year. It is worth its weight in
depleted uranium bars, and is twice as entertaining. I
recommend it heartily to all my friends, wether they
be Perl programmers or not. It's that good. :-)
Joy,
`/anick
Hmm, so how does one write it correctly(tm)? Of course the best(tm) way is:
if(FOO) {
print "foo!";
} else {
print "bar!";
}
Isn't it? At least while you're not payed per line... ;o)
> Seriously, I consider PbP to be the best programming investment I did
> this year.
Considering we've only 19th of January now, I'm not very surprised. :o)
But I've allready decided to by one, I really enjoyed the sample chapter
on oreilly.com.
lg,
daniel
if(FOO)
{
print "foo!";
}
else
{
print "bar!";
}
That's nuts! Er, I mean except for those on the Damian(tm) side:
Everyone(tm) knows(tm) that the "Proper Indentation"(tm) is:
if(FOO) {
print "foo!";
}
else {
print "bar!";
}
else and if are at the same 'level' so they should be at the same indent.
The bare close curlies make it easy to comment:
if(FOO) {
print "foo!";
} # if (FOO) - where we're foo-ed
else {
print "bar!";
} # else not FOO - usually 'cause we're bar-ed
Though I favor:
if(FOO) {
print "foo!";
} else {
print "bar!";
}
a
Horrors, that's blasphemy to those of us in
the Church of The Holy Indentation.
Everyone(tm) knows(tm) that the "Proper Indentation"(tm) is:
if(FOO)
{
print "foo!";
}
else
{
print "bar!";
}
:)
--
Rick Klement
Excuse me! Please take this discussion off-list. Here, we only
use Proper Perl, No Indentation:
print"foo!"^"\cD\cN\x1D"x!FOO
(with literal \cD, \cN, and \x1D, of course).
Eugene
--
The more you know, the less you need. -- Australian Aboriginal proverb
orusespaces;-)
--
Michael W Thelen
It is a mistake to think you can solve any major problems just with
potatoes. -- Douglas Adams
Eugene van der Pijll wrote:
> Andy...@wiwb.uscourts.gov schreef:
>
>>>Everyone(tm) knows(tm) that the "Proper Indentation"(tm) is:
>>
>>if(FOO)
>> {
>> print "foo!";
>> }
>>else
>> {
>> print "bar!";
>> }
>>
>>That's nuts! Er, I mean except for those on the Damian(tm) side:
>>Everyone(tm) knows(tm) that the "Proper Indentation"(tm) is:
>>
>>if(FOO) {
>> print "foo!";
>>}
>>else {
>> print "bar!";
>>}
>
>
> Excuse me! Please take this discussion off-list. Here, we only
> use Proper Perl, No Indentation:
>
> print"foo!"^"\cD\cN\x1D"x!FOO
>
> (with literal \cD, \cN, and \x1D, of course).
>
> Eugene
--
Joseph Landman, Ph.D
Founder and CEO
Scalable Informatics LLC,
email: lan...@scalableinformatics.com
web : http://www.scalableinformatics.com
phone: +1 734 786 8423
fax : +1 734 786 8452
cell : +1 734 612 4615
Wow, `/, thanks for the doozie quotation. I just added it
to the top of:
http://www.perlmonks.org/?node_id=500556
> Seriously, I consider PbP to be the best programming
> investment I did this year. It is worth its weight in
> depleted uranium bars, and is twice as entertaining. I
> recommend it heartily to all my friends, wether they
> be Perl programmers or not. It's that good. :-)
After all these years of separation, I find myself still
agreeing with `/. :-) ... even trying to persuade Sydney.pm
by rabbiting on about PBP, the (crappy) talk slides available
here:
http://perl.net.au/download/pbp-slides.tar.gz
Joie,
/-\
____________________________________________________
Do you Yahoo!?
Yahoo! News: Get the latest news via video today!
http://au.news.yahoo.com/video/
print"foo!"^"\cD\cN\x1D"x!FOO
<voice accent="English">Oh you're no fun anymore!</voice>(tm)
Tsk, you mean: orusesspaces;)
Any golfer worth his/her salt knows that you can safely remove the nose of a
smiley, thus shaving a stroke. Or, alternatively and even shorter:
||use$"x2;)
`/.
Heh. I think the occasion calls for pulling my old 'My Father, the
Hacker' poem out of the mothballs: http://babyl.dyndns.org/yaph/poems/diaper
Joy,
`/anick
> But I've allready decided to by one, I really enjoyed the sample chapter
> on oreilly.com.
>
You'll not regret it. Except, perhaps, if the newfound wisdom milked
from the book guilt-drives you to rewrite all the modules you ever
touched. :-)
Joy,
`/anick
Wouldn't the dump command in your poem stop the program before you manage
to put the baby to sleep?
--
Philippe "BooK" Bruhat
Everyone acts their age... mental, if not physical.
(Moral from Groo The Wanderer #92 (Epic))
> if(FOO) {
> print "foo!";
> } else {
> print "bar!";
> }
print FOO?"foo!":bar!";
23 strokes against 56 strokes
--
Peter Makholm | First you fall in love with Antarctica, and then it
pe...@makholm.net | breaks your heart
http://hacking.dk | -- Antarctica
Search pattern not terminated at -e line 1.
--
------------------------------------------------------------------------
Honza Pazdziora | ade...@fi.muni.cz | http://www.fi.muni.cz/~adelton/
.project: Perl, mod_perl, DBI, Oracle, large Web systems, XML/XSL, ...
Only self-confident people can be simple.
I'm wondering why you don't try to pack it into an eval....
SCNR ;-)
Munich perl mongers have a little golf for me ... :-) so I'm happy
at the moment... (but not winning it as far, as I can see :-) )
Hmmm... I got my 'Christmas order' last week :-((( too late :((
(but I baught the new Interface Design Book ... looks good at first
glance)
Care to share for those of us who are so golf deprived
we are actually discussing *indentation*.
--
Rick Klement - RicksWM, the X WM in perl
As there is an actual prize involved, I'm inclined not to forward it
here before the contest is finished %)
CU,
Sec
--
This is where the problems really start - reinstalling the bloody thing
[Windows NT] seems to be the equivalent of standing in copper armour on
a hilltop in a bath full of water shouting "I'm invulnerable to bolts
of lightning". You're just asking for trouble.
Our actual contest has finished yesterday. So have fun with the problem.
I'm not sending any solution here yet, because this would spoil the fun,
wouln't it?
Write a Program to print the dates of the next two munich perlmonges
meetings in the form "YYYY-MM-DD". If today is one of these dates, it
may or may not be included as you wish. (still, print two dates only).
They have to either in the form "date1\ndate2\n" or
"date1<seperator>date2\n" It only has to work until 2037, the "generic
perlgolf rules" apply.
Ah. The munich perl monger meetings are on the third wednesday in a
month. But only in odd-numbered months.
Have Fun,
Sec
--
Dopeler effect: the tendency of stupid ideas to seem smarter
when they come at you rapidly.