• (cs) in reply to me thinks
    me thinks:
    Joined here six months ago and they always tell me "it is easy to do that". But no one has ever found anything easy including the people who says so.
    I've had a few dates who were.
  • Nobody (unregistered)

    My dictionary says a clowder is a group of cats.

  • (cs) in reply to fanha
    fanha:
    Anon:
    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

    How's it FUD? Perl's regex engine has best case O(n), and worst case O(n^2). Other implementations have guarenteed O(n).

    "The efficiency comes from tracking the set of reachable states but not which paths were used to reach them." That sounds suspiciously like it might not allow capturing groups (let alone non-regular features like using the captured text elsewhere in the expression)

  • (cs) in reply to Someone You Know
    Someone You Know:
    DaveK:
    bjolling:
    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.

    Trouble at the mill. One on't cross beams gone owt askew on treadle.

    What do you do know?

    I don't know - Mr Wentworth just told me to come in here and say that there was trouble at the mill, that's all - I didn't expect a kind of Spanish Inquisition.

    Nobody expects the Spanish Inquisition!

    I knew you were going to say that!
  • (cs) in reply to Random832
    Random832:
    fanha:
    Anon:
    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

    How's it FUD? Perl's regex engine has best case O(n), and worst case O(n^2). Other implementations have guarenteed O(n).

    "The efficiency comes from tracking the set of reachable states but not which paths were used to reach them." That sounds suspiciously like it might not allow capturing groups (let alone non-regular features like using the captured text elsewhere in the expression)

    You haven't understood the proposal properly. There is no problem with capturing groups, only with attempting to match against previously captured groups within the same regex, i.e. backrefs. It has no problem capturing groups for use later e.g. in the replacement string. The slight disadvantage is that you have to use an NFA, not a DFA, but otherwise the proposal still works - that's why the author suggests
    Examples include using (.*) (.*) (.*) (.*) (.*)
    as an example. See also the "Submatch extraction paragraph:
    Thompson-style algorithms can be adapted to track submatch boundaries without giving up efficient performance. The Eighth Edition Unix regexp(3) library implemented such an algorithm as early as 1985, though as explained below, it was not very widely used or even noticed.
    Frankly this one should be a no-brainer. The only hard numbers anyone produces in the thread show that backtracking regexes are actually very rare IRL and non-backtracking yet still pathological cases for the current engine are very common. I don't see any reason for the perl maintainers to hold back.
  • (cs) in reply to diaphanein
    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*

    WTF? You turned down a damsel in distress?

  • TV execs, huh? (unregistered) in reply to danixdefcon5
    danixdefcon5:
    iToad:
    Mogri:
    Don't know about anyone else, but I want to see the Excel version.
    I don't think that is a good idea. Looking at the Excel version could be the software developer equivalent of staring at an arc welder without wearing a face shield.
    I'd equate that experience to watching a nuclear explosion up front, without an NBC suit.
    Not that NBC suits don't deserve all the nuclear explosions that they can experience at close range, I was wondering what it is that you think (s)he could possibly do to protect you?
  • (cs) in reply to diaphanein
    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*
    One of my former bosses was given a phone number that was the same as a popular minicab company in Watford, except that the dialling code was 0932 instead of 0923. He used to get about 10 calls a day asking for taxis. To begin with, he politely explained to each caller what they had done wrong. But it didn't take long for him to lose patience with it, and eventually he'd just say "Yup, no problem, be there in 2 minutes" and put the phone down. The calls tailed off very quickly after about a week...
  • (cs) in reply to Code Dependent
    Code Dependent:
    Cat Chowder:
    How many roads must a man walk down, before you can call him a man?
    42
    No, it was an awesome Simpsons quote -- the correct answer, from memory, is six. Of course, it's funnier when Homer says it.

    Mother Simpson: [singing] How many roads must a man walk down before you can call him a man? Homer: Seven. Lisa: No, dad, it's a rhetorical question. Homer: OK, eight. Lisa: Dad, do you even know what "rhetorical" means? Homer: Do I know what "rhetorical" means?

    OK, I got the number wrong.

  • cakesy (unregistered) in reply to Da' Man

    Similar story. I user to do on-call a company, would have one week on, one week off. I used to hate carrying two phones around when I went out, so would only take my work phone when I was out. Ended up ringing one of my friends from it one night. Next week, we were out and got separated at 3am. So she gave my work phone a ring, waking up the poor guy on-call that week. I think it was the first night he wasn't woken up with a work problem. He loved me the next day.

  • netdroid9 (unregistered)

    Just pretty-print the regex; or at least load it in a copy of VIM with the appropriate color coding scripts. It's not that hard to follow; especially if you document as you go along. That said, noone ever documents as they go along, and when they do they miss important little niggly bits that fuck up on you later.

  • Isaac (unregistered) in reply to zeeboe

    Dude, you could have taken the order, forwarded it to the restaurant (but with completely other toppings, extras, drinks...

    You could have had this confusion going on forever. :-)

  • Deiwos (unregistered) in reply to rioshin
    rioshin:
    Zapp Brannigan:
    John:
    And today I described to my boss a requirement for parsing multimegabyte text files into CSV, and he suggested GWBASIC.
    I'd use QBASIC.
    No no! Has to be the mighties BASIC of them all, the one that came with the C64. Basic 2.0, I think it was.
    Hmph. TRS-80 BASIC is faaaar better.
  • hoodaticus (unregistered)

    "Apparently the developer couldn't decide on a good name for the function and gave up."

    It's eerie - almost like the incomprehensibility is trying to tell you something.

  • Ms. Toni Gu (unregistered)

    <a href="http://www.tbt-scietech.com/product/COMPRESSION-TEST-SERIES_1.htm"Universal Testing Machine

Leave a comment on “The Difference Between "Better" and "Less Bad"”

Log In or post as a guest

Replying to comment #:

« Return to Article