|
Often, the source of these horrors is someone trying to do something brilliant, even proper, but not knowing or having a succint/correct way of expressing it.
|
# ¿ Mar 28, 2008 18:33 |
|
|
# ¿ Apr 29, 2024 20:52 |
|
These things, as Perl programmer, piss me off:code:
code:
|
# ¿ Mar 31, 2008 18:44 |
|
Kidane posted:
Then you're no friend of mine. There's a difference between being concise and golfing (which Perl folk love to do) and this isn't golfing. The entire field of computer science has been about a power versus concision payoff. And if you can't see that, then you're hopeless. code:
|
# ¿ Apr 1, 2008 14:33 |
|
As written, that is an improper use of map, philosophically.code:
code:
Triple Tech fucked around with this message at 14:58 on Apr 4, 2008 |
# ¿ Apr 4, 2008 14:53 |
|
If this_returns_an_array contains no side effects to the variables submitted, then both of those do nothing. They're void context. In the first one, the fact that it returns something doesn't even matter. You can't capture the output of a loop when it's written like that. In the second scenario, you're just missing the left side of the assignment. my @array = that expression. It's returning an array for each element in the elements list, and then jamming all of that into one long array, and then that array isn't going anywhere. Again, void context. For loops never get assigned to something. Maps should always be either assigned to something or chained to another process, like a function's input, or the list input to a sort or grep.
|
# ¿ Apr 4, 2008 18:44 |
|
It pisses me off that people don't audit their poo poo and stuff like this comes up. 90% of all the bugs I've had to deal with regarding inherited/maintained code is lack of auditing. Code that makes me cry is code without an audit history/trail.
|
# ¿ Apr 9, 2008 22:12 |
|
rotor posted:I am very, very sorry hott, $temp->rising
|
# ¿ Apr 26, 2008 20:19 |
|
Chain Chomp posted:I wonder how many NULLs are in that table. That is probably one of the most sparse tables ever created. IS_FLAG, IS_NOT_FLAG
|
# ¿ Jun 6, 2008 22:31 |
|
Here's a coding horror, buttbot! ()Zakalwe posted:there's nothing wrong with using the occasional goto Zakalwe posted:the occasional goto Zakalwe posted:occasional goto Zakalwe posted:BOOK DEPOSITORY You heard it here first, folks, liberal use of goto endorsed by professional programmers!
|
# ¿ Jun 17, 2008 18:55 |
|
Why does it wind you up? Because some_variable evaluates to true? Aren't there programming languages that only accept the boolean data type instead of a free form expression? If it was a language like that then that sort of construction would be necessary.
|
# ¿ Jun 20, 2008 20:06 |
|
Ample worry (self awareness?) is step one on your journey to not being here. If at any time you thought "my code looks like this" or "that looks like a good idea", then you should be really worried. Why not quote a post you don't understand and ask for clarification? I'm sure at least one goon won't be able to restrain himself and will wow us with his knowledge of The Right Way.
|
# ¿ Dec 5, 2008 22:42 |
|
Lone_Strider posted:"well I'm just making sure" aka "I can't be bothered to learn something new or correct my gross misunderstanding of something."
|
# ¿ Dec 8, 2008 20:06 |
|
svn blame these gems and tell us more about who wrote them.
|
# ¿ Dec 9, 2008 16:57 |
|
At first I was with you. But I can count at least three strikes against Perl. The function, the param, and the echo. And no my, how dare they.
|
# ¿ Dec 9, 2008 17:13 |
|
Decipher with blame logs.
|
# ¿ Jan 17, 2009 04:49 |
|
Degrees don't mean poo poo! I wonder what their thought process was that using regexp validation, which is infinitely more robust, was somehow worth less than "multiplying something by one"? Geniuses at work, people.
|
# ¿ Jan 26, 2009 20:34 |
|
There could be more genders, like null or pirate.
|
# ¿ Jan 27, 2009 20:27 |
|
DaTroof posted:In an application for a county's department of animal control, there was a table for pets' genders that contained Male, Female, Spayed, and Neutered. It seemed reasonable enough until they started using it for the owner's gender, too. Coding horror, shoe-horning a semantically different concept into an existing framework that isn't properly built to address it. Classic.
|
# ¿ Jan 27, 2009 21:10 |
|
shrughes posted:Codepadded into #cobol: I don't get it, what exactly am I looking at? Is it a for loop or a while loop?
|
# ¿ Jan 29, 2009 16:08 |
|
Munkeymon posted:Can't figure out whay that popped into my head - I certianly don't like PERL that much. Perl. Perl. Do you go around saying poo poo like JAVA or RUBY? <>
|
# ¿ Feb 12, 2009 15:47 |
|
my function is more optimized than your function, good thing we namespaced them, use mine
|
# ¿ Apr 2, 2009 21:55 |
|
code:
|
# ¿ Apr 15, 2009 16:42 |
|
Ugg boots posted:You really like the word frobnicate, don't you? Also I liked your old avatar better. Frobnicate is some old geezer word I got used to. What other word would you use in examples? I liked it better also...
|
# ¿ Apr 15, 2009 20:10 |
|
So, what's it trying to do? It's too verbose...
|
# ¿ May 11, 2009 15:33 |
|
Some "developers" don't know of platform agnostic interfaces to system commands...
|
# ¿ May 13, 2009 18:54 |
|
Get bent, use a REAL editor with indented wrapping...
|
# ¿ May 14, 2009 01:58 |
|
Zombywuf posted:What you need is Perl 6. He asked for a real language.
|
# ¿ May 15, 2009 14:51 |
|
Janin posted:What is it about REST that gets people so confused? It doesn't seem like a difficult concept, but then I see "RESTful" APIs designed like this: Could you repost those examples on how it should be done? I'm curious and I don't quite understand REST.
|
# ¿ May 31, 2009 16:36 |
|
TSDK posted:I'm doWhat'ing fine,s con thankcurreyou for asking.ncy? Oh hilarity.
|
# ¿ Jun 30, 2009 18:22 |
|
I can't really think of a good way to select multiple objects by ID in SQL. Granted, it looks a little funny because there are lots of IDs in that particular query... But really, what else are you supposed to do? I figure, maybe insert the IDs into an indexed temporary table of one column and then run a join against that? How much faster could that be.
|
# ¿ Jun 30, 2009 22:31 |
|
Ehh, that's just a debug function. But if you look real close, you'll see that there's also a wierdness function. Even the subject line of the mail message takes that as the canonical spelling...
|
# ¿ Jul 7, 2009 15:10 |
|
I sympathize with some (not really) of them. Sometimes I write a simple interface and document what's missing. Then I change the interface but ignore the nearby comments. Now the comments sound crazy, referring to things that don't exist but are sort of kind of related.
|
# ¿ Jul 7, 2009 22:39 |
|
I'm thinking it's not an actual job posting, just an elaborate troll. How could anyone take themselves seriously after asking for all that?
|
# ¿ Jul 9, 2009 19:50 |
|
tripwire posted:I was looking through some of those "fail"s and couldn't figure out how one of them was getting this text it operates on: That's interesting. Is it reading its own prompt?
|
# ¿ Jul 9, 2009 21:50 |
|
That's awesome, did you do that yourself or use a program?
|
# ¿ Jul 21, 2009 20:21 |
|
|
# ¿ Apr 29, 2024 20:52 |
|
Maybe it was code in transition. Better than before, but still clearly not the best. Mini commits, mini gains...
|
# ¿ Jul 30, 2009 14:16 |