RE: My crime of choice
by cwest (Friar) on Oct 12, 2000 at 22:06 UTC
|
Making the chatter box 50% of the width of the page.
ctweten runs for cover...
But mostly, I'd consider myself more on the lines of enforcing laws around here. I know I'm not vroom, however, we all play a large part of enforcement. We enforce with fear, sarcasm, --'s, not giving answers, the truth, etc.
Enjoy!
--
Casey
I am a superhero.
| [reply] [Watch: Dir/Any] |
RE: My crime of choice
by neophyte (Curate) on Oct 13, 2000 at 13:24 UTC
|
My crime is a crime against myself (as most Perl crimes may well be):
I just keep forgetting small but valuable information. Each time I want to code, I seem to have forgotten half of what I had learned already.
So I have to get my books and my older code all the time.
This also has its upside: Looking at my old code I have the chance to devellop it further, make it more elegant, shorter and more secure.
Still I find my memory-leak irritating.
neophyte | [reply] [Watch: Dir/Any] |
|
i am right there with you. all of the references to address spaces in my memory must be broken. :-)
| [reply] [Watch: Dir/Any] |
RE: My crime of choice
by turnstep (Parson) on Oct 14, 2000 at 05:37 UTC
|
I find it hard to believe that nobody (as of this writing)
has voted for "double posting." I can't find any now, but
I see them all the time.
| [reply] [Watch: Dir/Any] |
RE: My crime of choice
by turnstep (Parson) on Oct 14, 2000 at 05:37 UTC
|
I find it hard to believe that nobody (as of this writing)
has voted for "double posting." I can't find any now, but
I see them all the time. | [reply] [Watch: Dir/Any] |
RE: My crime of choice
by AgentM (Curate) on Oct 13, 2000 at 00:03 UTC
|
My crime of choice? I like to link random nodes to Bone::Easy.
| [reply] [Watch: Dir/Any] |
RE: My crime of choice
by doran (Deacon) on Oct 13, 2000 at 09:17 UTC
|
Mine is a crime of ignorance. I often don't know the wheel was already invented. I'll spend a week 'whipping something up' just to find out two days after I've finished that a much better module has been available on CPAN for 2 years.
| [reply] [Watch: Dir/Any] |
RE: My crime of choice
by Jonathan (Curate) on Oct 13, 2000 at 17:20 UTC
|
In my case 'breaking live sites' is more of a vocation than a crime of choice. If forced to chose a crime I would have to (reluctantly of course) smoke cannabis.
"We are all prompted by the same motives, all deceived by the same fallacies, all animated by hope, obstructed by danger, entangled by desire, and seduced by pleasure."
- Samuel Johnson | [reply] [Watch: Dir/Any] |
|
Hmm re the Sig Line, I prefer:
"We got Shotguns for this type of thing" - Samuel Jackson
--
Brother Frankus. | [reply] [Watch: Dir/Any] |
|
Do you? Then perhaps life hasn't yet presented you with enough challenges ;-)
"We are all prompted by the same motives, all deceived by the same fallacies, all animated by hope, obstructed by danger, entangled by desire, and seduced by pleasure."
- Samuel Johnson
| [reply] [Watch: Dir/Any] |
|
RE: My crime of choice
by BigJoe (Curate) on Oct 12, 2000 at 21:55 UTC
|
I get too lazy when just writing quick scripts for personal use. It takes to long to type use strict;
when your script is only like 5 lines. And who needs formatting when its done it gets deleted. Maybe if my boss will let me write some worth while scripts I might change my tune.
--BigJoe
Learn patience, you must. Young PerlMonk, craves Not these things. Use the source Luke. | [reply] [Watch: Dir/Any] [d/l] |
|
Maybe there should've been
use dangerously_fast_and_loose;
And use strict was on by default. It would've saved Tom and Randal on comp.lang.perl.misc saying to me for the 500th time: "You would've caught that error if use strict had been on. Use strict. Strict is your friend."
| [reply] [Watch: Dir/Any] [d/l] |
|
Maybe we shoulda submitted that to Larry Wall for Perl 6.0. It would be a good feature have it on by default maybe with some other newbie flags set then have
use expert_mode;
for people to shut off the newbie flags
--BigJoe
Learn patience, you must. Young PerlMonk, craves Not these things. Use the source Luke. | [reply] [Watch: Dir/Any] [d/l] |
|
|
|
RE: My crime of choice
by life_monger (Hermit) on Oct 13, 2000 at 19:10 UTC
|
My crimes of choice are inconsistency and redundancy. I never accomplish a task the same way and I do it different each time.
Given a specific library function, I will re-code it for each project until I find the most elegant solution, then I'll do it again. Backward compatibility is all in the testing ;)
| [reply] [Watch: Dir/Any] |
RE: My crime of choice
by mt2k (Hermit) on Oct 13, 2000 at 01:35 UTC
|
"How many can I pick?"
No use strict; and improper code formatting.
I suppose the recreation of the wheel too...
That's me! | [reply] [Watch: Dir/Any] [d/l] |
RE: My crime of choice
by elwarren (Priest) on Oct 16, 2000 at 19:55 UTC
|
I've wasted more time reinventing the wheel than I have tracking down use strict problems. Of course, now that I've jinxed myself... | [reply] [Watch: Dir/Any] |
RE: My crime of choice
by jynx (Priest) on Oct 13, 2000 at 04:41 UTC
|
i'm probably a novice, but it's amazing how many times
use strict gives me evil text involving code i use. and
half the time you can't do it any other way (as far as i
know).
if i were better i'm sure i could think of something else; but
really, when you're dealing with a named array of named hashes
of anonymous hashes of anonymous arrays of anonymous (or named)
subroutines, the systems bound to not like it, neh? ; >
no strict;
jynx | [reply] [Watch: Dir/Any] |
|
#!/usr/bin/perl
use strict;
use Data::Dumper;
local $\ = "\n";
my %namedHash = (
'anon hash1' => {
'anon array1' => [
sub { print 'anon sub1'},
\&test1,
\&test2
],
'anon array2' => [
sub { print 'anon sub2';},
\&test1,
\&test3
],
},
'anon hash2' => {
'anon array1' => [
sub { print 'anon sub1'},
\&test1,
\&test2
],
'anon array2' => [
sub { print 'anon sub2'},
\&test1,
\&test3
],
},
);
my @namedArray = ( \%namedHash );
print Dumper(\@namedArray);
exit;
sub test1 {
print 'sub test1';
};
sub test2 {
print 'sub test2';
};
sub test3 {
print 'sub test3';
};
| [reply] [Watch: Dir/Any] [d/l] |
|
Believe it or not, the purpose of strict is not to make
you unhappy. ;-) Thing is, usually not only is there
another way to do it, there's a much better way to do it.
Using strict helps me find it. (And I'm not enough of a
coder that I can turn down free help...)
| [reply] [Watch: Dir/Any] |
|
If you insist on seeing how low you can get a post
rated you should have insulted merlyn, complained
that vroom cant build a useful website to save his
life, mentioned how python and php make it a lot easier,
and maybe even offer to re-write CGI to make it more
efficient.
Heck, threaten a few people's lives while you are at it.
Ask if Larry is an atheist. Bemoan
the fact that no one ever helps you here. Sell babies.
Change your login to princepawn2 (j/k prince =).
Hey I know, offer to help people here learn Java!
I mean really half
the time you can't do it any other way (as far as i know).
merlyn all the time yelling Homework, can I be the
one to yell troll? =)
--
$you = new YOU;
honk() if $you->love(perl)
| [reply] [Watch: Dir/Any] |
|
i in no way meant to insult anyone.
If you want no explanation for what i said, stop reading.
When i was talking about use strict not working well under the
situations, i was designing a natural language processor that
took user input strings and, well, processed them. The system
was a learning system, which meant it had to be able to rewrite
its own code as well. NO other language but perl can do
anything like this that i've seen. (i don't count lisp because
it has other problems)
The setup i was going for used nouns, verbs, and modifiers. A
noun and verb are easy to set up and use. The modifiers were
a royal pain. They could modify things in every which way
and they had to stay organized and play nice. When i was taking
a generic user string, and putting it through all these inane
processes to find out what that string 'meant', i looked
and looked for better ways to do things. Given the complexity
of the modifiers, there seemed that other solutions had other
problems with them. The set of problems inherent in the design
i chose were the problems. The problem had nothing to do with perl
being able to or not being able to do something. So to stop this long story,
i got out of some of the problems i had by not using strict
and using loopholes that strict would have caught, then patched up the
loopholes as best as i could.
It's not a good solution, i know this. i'm sorry i ever said what i did,
but i can't take it back (time is only one way unfortunately).
As for your other suggestions on my getting a low rating, merlyn
is a saint, insulting him just doesn't work. He does perl better
in every way, every day more than i could do in my whole life.
vroom has made an excellent web site. It's a shrine for me.
i'm not going to even go into the headaches of suggesting another
language other than perl. Java blows goats. There is no web language
better than perl, only a fool would say otherwise, only an idiot
would believe otherwise. i'll admit i'm stupid, but i'm no fool or idiot
You don't have to worry about lives being threatened, i'm suicidal, not
homicidal. And as for no one helping me here. This is a learning
experience: what not to say on perlmonks
. i have failed with flying colors (yet again). My best bet is to let this
be my last post. Maybe than i can test the limits of low posts
with this one that offends so much.
So, yet again, i'm sorry. Maybe i should explain more, but most likely
i should just talk less (and anyone who read through all this garbage can agree
with that =)
jynx
PS Please tell me if yet again i said the wrong thing. Until i learn how to
speak in a monk-friendly way i'll probably annoy a lot of people
on accident. i wish i didn't. i can't help being who i am, and i can only change
when i've learned what to change into. And yes, ghost is an option.
| [reply] [Watch: Dir/Any] |
|
|
<PaperBoyVoice>
Babies, we've got babies! Who wants babies? Our warehouse is full of babies, who wan-- oh wait, extremely was being sarcastic...
</PaperBoyVoice>
Everyone has their demons....
| [reply] [Watch: Dir/Any] |
RE: My crime of choice
by runrig (Abbot) on Oct 16, 2000 at 23:16 UTC
|
I must confess, I voted for improperly formatting my code. I
only indent my blocks 1 space, which some people find slightly annoying. I don't like tabs, or using vi's autoindent, so its probably a result of being lazy and saving wear and tear on my thumb. At least I indent consistently, lining up all the lines in a block with closing braces in sub blocks, which is more than I can say for a lot of the code I've seen :)
And I've always been meaning to write a perl program to change the indentation to any desired number of spaces...(No, not a prettyprinter - I'm not THAT ambitious).
Update: My gosh, this node is old. I have heard of perltidy since I first wrote this, and I've since mended my one-space indentation ways. I'm up to two spaces now :-) | [reply] [Watch: Dir/Any] |
RE: My crime of choice
by billyak (Friar) on Oct 14, 2000 at 06:26 UTC
|
| [reply] [Watch: Dir/Any] |
|
I would have voted this (blank node) up except you didn't cast a vote for "blank posting". I hate having that and "double posting" having scores of zero.
But I think that "blank subjects" is a much worse crime.
-
tye
(but my friends call me "Tye")
| [reply] [Watch: Dir/Any] |
|
i agree. damned annoying these headless monsters.
| [reply] [Watch: Dir/Any] |