Comment On The Difference Between "Better" and "Less Bad"

It was only his third day on the job, but Dave could tell it was going to be a long one. His fear had come true; what should've been an easy fix (capture an extra data field) was going to involve him debugging a long regular expression that had no comments revealing its pattern. Its arcane characters may as well have been heiroglyphics, and as regular expressions often do, it looked as though someone had held down shift while randomly mashing the number keys. Worse still, there were recursive methods used to parse these expressions. If you added in linked lists you'd have a CS101 student's personal hell. [expand full text]
« PrevPage 1 | Page 2 | Page 3Next »

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:07 • by Bob Dole (unregistered)
This comment used to be worse.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:07 • by anonym (unregistered)
Better >= Less Bad

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:10 • by Forrest F (unregistered)
Now I want to see how they did that in excel, but i wonder if the interblog would explode in a fury of Spreadsheet Cells...

http://pugsoft.info

Captcha: Sino | Hrm.. is that like BINGO?

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:12 • by Zylon
"colleauge"? For the love of god, is it that hard to run a spell-check pass on these things before posting them?

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:13 • by Some Wonk (unregistered)
Cue the Four Yorkshire Men in 5....4....3...

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:15 • by Satanicpuppy
VB6 and Regular Expressions?! VB6 is obviously a WTF on its own (and I think most of us knew that it could gobble up massive amounts of memory) but why in the holy hell would you do a ton of RegEx through VB at all? It's crap like that that Perl was made for.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:16 • by Bob (unregistered)
249015 in reply to 249013
Some Wonk:
Cue the Four Yorkshire Men in 5....4....3...


2... 1...

Right. I had to get up in the morning at ten o'clock at night half an hour before I went to bed, drink a cup of sulphuric acid, work twenty-nine hours a day down mill, and pay the mill owner for permission to come to work, and when we got home, our Dad and our mother would kill us and dance about on our graves singing Hallelujah.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:21 • by valerion
249017 in reply to 249015
Bob:
Some Wonk:
Cue the Four Yorkshire Men in 5....4....3...


2... 1...

Right. I had to get up in the morning at ten o'clock at night half an hour before I went to bed, drink a cup of sulphuric acid, work twenty-nine hours a day down mill, and pay the mill owner for permission to come to work, and when we got home, our Dad and our mother would kill us and dance about on our graves singing Hallelujah.




You were lucky....

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:26 • by mbv (unregistered)
When do people learn that some things can be expressed in regexes, but are better handled in a different way? Like, using parser generators (yes I know, steep learning curve), or an existing library to search through HTML?

Some people, when confronted with a problem, think "I know, I’ll use regular expressions." Now they have two problems.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:27 • by DOA
249019 in reply to 249008
Bob Dole:
This comment used to be worse.
Not possible.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:30 • by Right tool for the right job (unregistered)
249020 in reply to 249019
DOA:
Bob Dole:
This comment used to be worse.
Not possible.
He could have posted "first", that would have been worse.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:32 • by Tundog (unregistered)
249022 in reply to 249015
It used to be worse...

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:36 • by Anon (unregistered)
249023 in reply to 249011
Zylon:
"colleauge"? For the love of god, is it that hard to run a spell-check pass on these things before posting them?


It used to be worse.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:37 • by Anon (unregistered)
which had been written by the CEO.


And now we see the root cause of all this madness.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:48 • by diaphanein (unregistered)
249029 in reply to 249011
Zylon:
"colleauge"? For the love of god, is it that hard to run a spell-check pass on these things before posting them?

For that matter, anyone care to explain what the fuck "clowder" means? (rhetorical question)

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:49 • by fanguad (unregistered)
249030 in reply to 249018
If regular expressions are never the solution to your problems, you do not have very interesting problems.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:55 • by Da' Man (unregistered)
In a completely unrelated WTF: I had to get up at 4:30 tonight because my mother-in-law had to catch a plane at 7 AM. (WTF # 1)

Next thing, I had to call here a Taxi (WTF #2)

But unfortunately I seemed to have mistyped the number and thus rang somebody out of bed (WTF #3, or #1 from his perspective)

Now I wonder what is worse: being so tired that you are not able to dial a simple telephone number, or having a phone number which is similar to a taxi centre?

Just asking ;-)

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:55 • by snoofle
Ok, now I gotta know. We need details of the CEO's Excel implementation!

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:58 • by snoofle
249033 in reply to 249031
Da' Man:
In a completely unrelated WTF: I had to get up at 4:30 tonight because my mother-in-law had to catch a plane at 7 AM. (WTF # 1)

Next thing, I had to call here a Taxi (WTF #2)

But unfortunately I seemed to have mistyped the number and thus rang somebody out of bed (WTF #3, or #1 from his perspective)

Now I wonder what is worse: being so tired that you are not able to dial a simple telephone number, or having a phone number which is similar to a taxi centre?

Just asking ;-)
Or any [fast food/takeout] place? Or a massage parlour? Or a support line (personally had that once - got calls at all hours - used to send folks on wild goose chases - fun!)

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 11:58 • by Da' Man (unregistered)
249034 in reply to 249030
fanguad:
If regular expressions are never the solution to your problems, you do not have very interesting problems.
They *are* really poor for solving relation ship problems.

On the other hand, you never knows when you might need them :-)

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 12:00 • by Da' Man (unregistered)
249035 in reply to 249033
snoofle:
(personally had that once - got calls at all hours - used to send folks on wild goose chases - fun!)
Oh, I'd love to have that one. Man, would I have fun!!!

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 12:05 • by Charles (unregistered)
249037 in reply to 249013
Some Wonk:
Cue the Four Yorkshire Men in 5....4....3...


And here you go! http://www.phespirit.info/montypython/four_yorkshiremen.htm

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 12:08 • by tj (unregistered)
this is my everyday life. I work on an ancient asp application that has been through 3 different developers and one hobbyist, with no one whose sole job was the app, well skip forward several years and that's my job now. Now when new content needs to be added i don't have to update the 12 or so static lists of product ids,skus, switch cases, or update the giant text file that lists what should be available, hell i don't even have to update it, the production manager can do it.

yeah writing yourself out of a job

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 12:10 • by zeeboe (unregistered)
249040 in reply to 249031
Da' Man:
In a completely unrelated WTF: I had to get up at 4:30 tonight because my mother-in-law had to catch a plane at 7 AM. (WTF # 1)

Next thing, I had to call here a Taxi (WTF #2)

But unfortunately I seemed to have mistyped the number and thus rang somebody out of bed (WTF #3, or #1 from his perspective)

Now I wonder what is worse: being so tired that you are not able to dial a simple telephone number, or having a phone number which is similar to a taxi centre?

Just asking ;-)

Ours was similar to a pizza delivery place. Eventually, we started taking orders. The pizza place soon changed their number (we had ours for 10+ years at that point).

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 12:22 • by Mr. Rhetoric (unregistered)
249045 in reply to 249029
diaphanein:
Zylon:
"colleauge"? For the love of god, is it that hard to run a spell-check pass on these things before posting them?

For that matter, anyone care to explain what the fuck "clowder" means? (rhetorical question)


No. It's a rhetorical question. Answering it would be a WTF.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 12:24 • by Mark Draughn (unregistered)
I suspect that this effect accounts for a lot of WTF posts. You know the ones, where the protagonist inherits code from some prior "great programmer" only to discover that it's crap? I'll bet that in a non-trivial number of those cases the prior programmer could explain that "It used to be worse."

Actually, "it used to be worse" is a pretty good description of how a lot of systems evolve. Maybe the CEO, an idea guy, figured out a way to make money by solving a certain problem. He used the idea-guy Swiss army knife, a spreadsheet. This worked until his business grew too large for he and his assistants to maintain all the spreadsheets, but they were smart enough to hire a programmer to automate pieces of it. He used a methodology that was easy to launch but, like the spreadsheet solution, it wouldn't scale well as the business got larger. So another programmer was brought in to upgrade it... Repeat as needed.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 12:25 • by dpm
249047 in reply to 249011
Zylon:
"colleauge"? For the love of god, is it that hard to run a spell-check pass on these things before posting them?
For the love of god, are you that easily offended?

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 12:28 • by DOA
249048 in reply to 249030
fanguad:
If regular expressions are never the solution to your problems, you do not have very interesting problems.
I don't know why, but somehow I get the impression this should be prefixed by "Confucious says".

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 12:29 • by diaphanein (unregistered)
249049 in reply to 249040
zeeboe:
Da' Man:
In a completely unrelated WTF: I had to get up at 4:30 tonight because my mother-in-law had to catch a plane at 7 AM. (WTF # 1)

Next thing, I had to call here a Taxi (WTF #2)

But unfortunately I seemed to have mistyped the number and thus rang somebody out of bed (WTF #3, or #1 from his perspective)

Now I wonder what is worse: being so tired that you are not able to dial a simple telephone number, or having a phone number which is similar to a taxi centre?

Just asking ;-)

Ours was similar to a pizza delivery place. Eventually, we started taking orders. The pizza place soon changed their number (we had ours for 10+ years at that point).


Back in college, my dorm # was similar to public safety. I remember once being woken up from one of the rare occasions I got to sleep to:
Her: "There's a guy here in the computer lab and he won't leave and I need to close."
Me: "And what the hell do you want me to do about it?" *click*

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 12:36 • by Code Dependent
249051 in reply to 249033
snoofle:
Next thing, I had to call here a Taxi (WTF #2)
How did your mud-in-law react to being called a taxi?

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 12:40 • by SenTree
249052 in reply to 249024
Anon:
which had been written by the CEO.
And now we see the root cause of all this madness.

We make industrial sensors. Our product development process is like this:

1. CEO designs the enclosure - far too small - and the user interface - influenced by his latest cellphone.
2. Expensive tooling and user manual are created. Now it's too late to change anything.
3. The hardware guys do their thing - and have to compromise to make it fit.
4. The software guy (me) finally gets to play. I have on occasion had to include code to cater for hardware differences which are only there because the enclosure is too small !




Re: The Difference Between "Better" and "Less Bad"

2009-03-12 12:42 • by Bobbo (unregistered)
249053 in reply to 249049
diaphanein:

Back in college, my dorm # was similar to public safety. I remember once being woken up from one of the rare occasions I got to sleep to:
Her: "There's a guy here in the computer lab and he won't leave and I need to close."
Me: "And what the hell do you want me to do about it?" *click*


How very public spirited of you. Has she recovered from being attacked yet?

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 12:42 • by OldCoder (unregistered)
249054 in reply to 249034
Da' Man:
They *are* really poor for solving relation ship problems.


Yeah. My mother in law was a barge...

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 12:45 • by Code Dependent
It used to be worse
It used to be worse
I debugged around
And finally found
The source of my curse
That damned XML
Was giving me hell
Name conventions were sad
Redundancy bad
It used to be worse

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 12:56 • by pitchingchris
249062 in reply to 249055
Code Dependent:
It used to be worse
It used to be worse
I debugged around
And finally found
The source of my curse
That damned XML
Was giving me hell
Name conventions were sad
Redundancy bad
It used to be worse


For the Blue ! we need a couple more verses please Code Dependent.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 12:59 • by dcardani
Matt smirked. "But even before that... it used to be worse." Matt went on to describe the first version of the software, which had been written by the CEO. In Excel. I'll spare you the details.


Yeah, I've been there. I once worked for a company where their flagship product started out as the owner's son's high school comp sci final project. They were still using Delphi to build it, and needless to say it was a piece of crap that didn't work correctly, was hard to maintain and impossible to update. And of course, they had no idea how to write software properly. Shortest job I ever had. It was so retarded I started looking for a new job just a few months after being hired.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 13:11 • by Addison (unregistered)
I find it difficult to believe these people survive in the wild. After all, with the schemes some people come up with to solve technical problems you'd think eating involves a dump truck and a grocery-store visits involve a pack of Llamas led by Richard Simmons.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 13:12 • by LOLCAT (unregistered)
The response would be formatted into XML via a clowder of regular expressions

Well no wonder the project was f'd up-- they used cats.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 13:15 • by Mogri (unregistered)
Don't know about anyone else, but I want to see the Excel version.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 13:42 • by diaphanein (unregistered)
249080 in reply to 249053
Bobbo:

How very public spirited of you. Has she recovered from being attacked yet?
She was never attacked, some ass just wouldn't leave the lab at close.

AT the time I didn't realize whom the call was for - was early in the semester and I hadn't noticed similarities in numbers yet. Also, try and think clearly when you get 10 hours of sleep a week and you've just been woken up suddenly.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 13:45 • by rohypnol
I can't let you do that, Dave.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 13:58 • by amischiefr
249084 in reply to 249030
fanguad:
If regular expressions are never the solution to your problems, you do not have very interesting problems.

Oh yeah? www.javaworld.com/javaworld/jw-09-2007/jw-09-optimizingregex.html?page=3

Overuse of regex, because you think it "looks cool" or for whatever reason you use it over something basic and simple, is all too common.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 14:04 • by dpm
249085 in reply to 249064
dcardani:
Shortest job I ever had. It was so retarded I started looking for a new job just a few days after being hired.
Fixed that for you.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 14:47 • by wee
249088 in reply to 249014
Satanicpuppy:
VB6 and Regular Expressions?! VB6 is obviously a WTF on its own (and I think most of us knew that it could gobble up massive amounts of memory) but why in the holy hell would you do a ton of RegEx through VB at all? It's crap like that that Perl was made for.


You haven't had your kool-aid yet today, have you? .Net, VB, C#... languages of the fucking gods, man.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 14:48 • by Myrmidon (unregistered)
249090 in reply to 249020
Right tool for the right job:
DOA:
Bob Dole:
This comment used to be worse.
Not possible.
He could have posted "first", that would have been worse.


No no! He could have posted 'first' using Excel - *THAT* would have been worse.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 14:53 • by alegr
249091 in reply to 249048
DOA:
fanguad:
If regular expressions are never the solution to your problems, you do not have very interesting problems.
I don't know why, but somehow I get the impression this should be prefixed by "Confucious says".


Or, better, "Confusious says"

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 15:05 • by fanha (unregistered)
249093 in reply to 249014
Satanicpuppy:
VB6 and Regular Expressions?! VB6 is obviously a WTF on its own (and I think most of us knew that it could gobble up massive amounts of memory) but why in the holy hell would you do a ton of RegEx through VB at all? It's crap like that that Perl was made for.


No, Perl is not for regular expressions. WTF.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 15:28 • by ham (unregistered)
This comment used to be first!

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 15:35 • by Nathan (unregistered)
249100 in reply to 249049
diaphanein:
Back in college, my dorm # was similar to public safety. I remember once being woken up from one of the rare occasions I got to sleep to:
Her: "There's a guy here in the computer lab and he won't leave and I need to close."
Me: "And what the hell do you want me to do about it?" *click*

My old number was close to an auto-repair/tire shop.
My eldest brother decided to have fun with him one time.
(paraphrased mostly)

Man: I was calling to check on the status of my car. My name's Mr. Smith.
Brother: The black chevy sedan?
Man: No the red ford pickup.
Brother: Oh right. Well while our guys were in there, they found some problems with the engine and had to replace it.
Man: What?!
Brother: And while they were removing the engine, the transmission was damaged so that had to be replaced too.
Man: You've got the be f'in jokin' me. I brought it in for an oil change!

Thankfully for us (mostly my parents) the guy never figured out where the phone number he dialed actually went to.

Re: The Difference Between "Better" and "Less Bad"

2009-03-12 15:37 • by Anon (unregistered)
249101 in reply to 249093
fanha:
Satanicpuppy:
VB6 and Regular Expressions?! VB6 is obviously a WTF on its own (and I think most of us knew that it could gobble up massive amounts of memory) but why in the holy hell would you do a ton of RegEx through VB at all? It's crap like that that Perl was made for.


No, Perl is not for regular expressions. WTF.


FUD
« PrevPage 1 | Page 2 | Page 3Next »

Add Comment