Re: Thinking in perl
by g0n (Priest) on Feb 18, 2005 at 09:48 UTC
|
I once spent a drunken friday night helping my partner analyse her job in uml.
She also maintains that I think the world was made in perl, to which the only possible answer is that it can't have been - it wouldn't have taken 7 days :-)
Possibly even scarier, I once debugged a colleagues regex over lunch, without the aid of PC, paper, or pen. We sat there for half an hour saying things like: 's slash tilde backslash s curly bracket 4 close curly bracket backslash w plus.....'. We got a few odd looks, to say the least.
VGhpcyBtZXNzYWdlIGludGVudGlvbmFsbHkgcG9pbnRsZXNz
| [reply] |
|
Now imagine the blind perl programmer and the output of his screen-reader.
Perl code is hard enough to read for someone that can see. This is no mean feat. Respect.
| [reply] |
Re: Thinking in perl
by Juerd (Abbot) on Feb 18, 2005 at 10:42 UTC
|
I'm known for typing and writing things like "Sure, but train ne boat", always write "==" instead of "=" for comparison, and tend to write objects with sigils prefixed: "and then $idiot just left", "I'm going to $office".
But then, /me misses IRC commands (most importantly "/ignore") IRL, so YM probably V.
| [reply] |
Re: Thinking in perl
by skx (Parson) on Feb 18, 2005 at 09:21 UTC
|
Regarding your second point, over here in the UK there is a chain of betting shops known as Ladbrokes, the signs on the front of their shops look like this:
/Ladbrokes/
The first time I saw this I thought "Hmmm, why don't they just write it in italice?". When I was enlightened I realised it was a not-very useful regular expression.
I've heard a few people make similar comments about that sign!
| [reply] |
Re: Thinking in perl
by dws (Chancellor) on Feb 18, 2005 at 17:14 UTC
|
Last week, when helping my daughter get started on her math homework, I very nearly said "Remember to use strict;". (It'd been a loooong day.)
| [reply] [d/l] |
Re: Thinking in perl
by tbone1 (Monsignor) on Feb 18, 2005 at 14:12 UTC
|
*nods* Happens to me quite a bit. Lately I've been dragged into a conversion project at work, and ProC keeps showing up in my dreams. Okay, nightmares. But yeah, I notice perlisms all the time, or try to convert things to perlisms in my head.
At least it's not as bad as when I worked for a phone company. They use Universal Service Order Codes, or USOCs, as shorthands for everything. For example, to this day, nearly a decade later, I know that NSD means "Caller ID". When you spend your whole day dealing with NSD/NMP/N8D/and so one, you see USOCs all over the place.
What's really bad is that I'm now working for a company in the medical/pharmaceutical market, and I still see USOCs! Except I have to remember that NDC is now "National Drug Code", not "Caller ID". Slight difference.
--
tbone1, YAPS (Yet Another Perl Schlub)
And remember, if he succeeds, so what.
- Chick McGee
| [reply] |
Re: Thinking in perl
by spurperl (Priest) on Feb 18, 2005 at 10:06 UTC
|
Ack ! You mean the world isn't really made of code ????? | [reply] |
|
That depends on who you ask I guess. All life contains DNA (Deoxyribonucleic acid) which many consider to be the code which builds the object living thing, kind of like a TK script and your birth (or fertilization) is the &MainLoop call.
-Kevin
my $a='62696c6c77667269656e6440676d61696c2e636f6d';
while ($a=~m/(^.{2})/s)
{print unpack('A',pack('H*',"$1"));$a=~s/^.{2}//s;}
| [reply] [d/l] [select] |
|
| [reply] [d/l] |
Re: Thinking in perl
by CloneArmyCommander (Friar) on Feb 18, 2005 at 22:03 UTC
|
Hahaha :). You should see the notes I take in my physics and calculus classes :). I have them early in the morning and perl is usually the last thing I am doing the night before, so my mind is still in perl mode. So, my notes are one big block of (executable ;) perl code :). It if funny when someone asks if they can borrow my notes, because it is all gibberish to them. On the bright side, my note taking time is cut in half :). I just have to remember to chmod 755 before I can execute everything I learned, hahahaha :). | [reply] |
Re: Thinking in perl
by neniro (Priest) on Feb 18, 2005 at 21:34 UTC
|
Years ago my younger self, a happy commodore-amiga kid, very often thougt "undo". Today I often think there should be a kind of "use warnings;" for the real-life. | [reply] |
Re: Thinking in perl
by Popcorn Dave (Abbot) on Feb 18, 2005 at 18:57 UTC
|
You're not. :)
Often times when I'm knee deep in a project I will have recursive nightmares in Perl. The kind of dream where you just can't seem to solve a problem, wake up, and then as soon as you're asleep, bang - right back in to the nightmare.
Useless trivia: In the 2004 Las Vegas phone book there are approximately 28 pages of ads for massage, but almost 200 for lawyers.
| [reply] |
|
That's a recurring nightmare. Now, if you'd been dreaming about dreaming about not being able to solve a problem...
| [reply] |
|
| [reply] |
Re: Thinking in perl
by Ultra (Hermit) on Feb 19, 2005 at 16:57 UTC
|
Two kinds of moments when i find myself thinking perl
1) When writting mails i have the urge to write something like: "last if something" ;-)
2) When writting C, i always find myslelf putting :
int $var; or print "abracadabra";
| [reply] |
Re: Thinking in perl
by fauria (Deacon) on Feb 21, 2005 at 00:35 UTC
|
Well, i dont really 'think in perl', but i have to recognize that studying computer science and working with them makes me aproach problems in a more logical and structured way.
I think that this science gives you the ability, even without your knowledge, of abstracting all kind of situations and thus solving them in an efficient way.
This has reminded me an article about Jeff Hawkins, CTO of palmOne, who is researching a new theory about how the brain works. This theory has been accepted in the medical community. This is a great fact since Jeff Hawkins is an enginieer whithout a medical degree. | [reply] |
|
| [reply] |
|
Thanks for posting that reference to Jeff Hawkins book, it might be a handy reference for what I'm currently working on. I don't know how 'new' his theory is though - from the write up he seems to be elaborating on ideas that are not uncommon in cognitive modelling.
If you want to see the other side of the argument, try Jerry Fodors 'The mind doesn't work that way: the scope and limits of computational psychology'.
I quite agree about the value of studying science, as a way of developing logical approaches to problems. But I would say that there is value in learning any discipline (or ideally as many as possible - learn everything!). Studying history, particularly the Enlightenment period, gave me a useful insight into the origins of many of the concepts of science that we now take for granted, and the different approach to research provided a different, additional set of tools to use when approaching a problem.
Now, off to Amazon in search of that book.
VGhpcyBtZXNzYWdlIGludGVudGlvbmFsbHkgcG9pbnRsZXNz
| [reply] |
Re: Thinking in perl
by Anonymous Monk on Feb 21, 2005 at 14:48 UTC
|
Every once in a while I'll say something stupid to my wife I wish I hadn't of said....I then visualize a quick "CTRL-Z" key combination in my head in the hopes I've undone that action in reality. It never works. | [reply] |
|
My ex-husband used to actually say 'CTRL-U' in conversation.
next;
| [reply] |
Re: Thinking in perl
by g0n (Priest) on Feb 22, 2005 at 09:49 UTC
|
use strict;
my @answer = qw(Not so much perl as perlmonks - I recently tried to ++
+ an article on the register. Doh!);
foreach (@answer){print "$_ ";}
print "\n";
VGhpcyBtZXNzYWdlIGludGVudGlvbmFsbHkgcG9pbnRsZXNz
| [reply] [d/l] |
|
| [reply] [d/l] |
Re: Thinking in perl
by awwaiid (Friar) on Feb 20, 2005 at 22:29 UTC
|
Last friday my brain was trying to trick me into sleeping through the alarm... I kept looking over at the time and then applying regexes to it so it would say what I wished!
I had been having perl dreams all night before that too.
| [reply] |
Re: Thinking in perl
by aufflick (Deacon) on Feb 21, 2005 at 23:51 UTC
|
I often try to use tab completion in places where the computer would have to be reading my brain - like when writing an email... | [reply] |
Re: Thinking in perl
by gmpassos (Priest) on Feb 21, 2005 at 00:29 UTC
|
Maybe you need to go out some time! Also you should use a fixed time to work, for example, only use the computer from 8AM to 17PM. Don't forget, life is too beautiful to see only a screen.
Graciliano M. P.
"Creativity is the expression of liberty".
| [reply] |