• CB (unregistered)

    The real WTF is not the abuse of RegEx, the abuse of stored procedures or the insane multiple updates for every row. The real WTF is UPDATING the database and destroying the original data!

  • Tasty (unregistered) in reply to operagost
    operagost:
    ObiWayneKenobi:
    I cannot fault Rahul. Most offshore people, especially the ones from a particular Eastern country known for its spicy foods and IT "talent", will do just what it asked and nothing more, nothing less. I heard a story somewhere, I'm not sure where, about someone who had Indian contractors install a fan for his mother (it might have BEEN in India, so it's not a "dey tuk ur jerbs" kind of thing). The instructions said that she needed a way to turn the fan on. Later, they found there was no way to turn it off. When asked the contractor stated that "an OFF switch wasn't in the requirements, so it wasn't implemented".
    You would actually have to go out of your way to make a "switch" that only turns something on. It's kind of like a "write-only" database.

    No, just don't make any switch. It plugs into the wall, or is wired without. It's less work.

  • Welch (unregistered)

    Really, the converter should have been built into whatever code was going to process this output. Assuming it did any kind of language parsing, it would have been in a better position to tell the difference between "Dr. Smith" and "Mountainview Dr.", etc.

  • Welch (unregistered) in reply to Tasty
    Tasty:
    operagost:
    ObiWayneKenobi:
    I cannot fault Rahul. Most offshore people, especially the ones from a particular Eastern country known for its spicy foods and IT "talent", will do just what it asked and nothing more, nothing less. I heard a story somewhere, I'm not sure where, about someone who had Indian contractors install a fan for his mother (it might have BEEN in India, so it's not a "dey tuk ur jerbs" kind of thing). The instructions said that she needed a way to turn the fan on. Later, they found there was no way to turn it off. When asked the contractor stated that "an OFF switch wasn't in the requirements, so it wasn't implemented".
    You would actually have to go out of your way to make a "switch" that only turns something on. It's kind of like a "write-only" database.

    No, just don't make any switch. It plugs into the wall, or is wired without. It's less work.

    If there was a plug in the wall, she could have turned it off. This sounds like an urban legend.

  • ih8u (unregistered) in reply to hank
    hank:
    ObiWayneKenobi:
    I cannot fault Rahul. Most offshore people, especially the ones from a particular Eastern country known for its spicy foods and IT "talent", will do just what it asked and nothing more, nothing less. I heard a story somewhere, I'm not sure where, about someone who had Indian contractors install a fan for his mother (it might have BEEN in India, so it's not a "dey tuk ur jerbs" kind of thing). The instructions said that she needed a way to turn the fan on. Later, they found there was no way to turn it off. When asked the contractor stated that "an OFF switch wasn't in the requirements, so it wasn't implemented". They will do EXACTLY what you state, and not apply any critical thinking or thought.

    As I understand it, it's a cultural thing. Book knowledge and following instructions is looked highly up, while out-of-the-box thinking and doing things on your own is not. Many years ago on a WTF that I can't remember there was a comment from an Indian national living in India who explained this notion, that looking for exact solutions to problems is good, but doing your own research or looking at documentation to find the answer is not considered acceptable.

    This is the point where all those people who were offended by the silly Scottish stereotype from a couple weeks ago jump in and denounce a rather racist portrayal of, what, only the 2nd most populous country on the planet specifically, and more generally everybody outside of Western Europe and North America, right?

    The lack of content, not the possible bigotry, was the worst part.

    To sum up the original quote, "I remember when a thing I don't quite remember happened to someone I forget. He, she, or maybe even they, did some things and stuff, and, eventually, everything got better ... or worse.."

    Great post. No really. Keep up the quality.

  • (cs) in reply to hank
    hank:
    ObiWayneKenobi:
    I cannot fault Rahul. Most offshore people, especially the ones from a particular Eastern country known for its spicy foods and IT "talent", will do just what it asked and nothing more, nothing less. I heard a story somewhere, I'm not sure where, about someone who had Indian contractors install a fan for his mother (it might have BEEN in India, so it's not a "dey tuk ur jerbs" kind of thing). The instructions said that she needed a way to turn the fan on. Later, they found there was no way to turn it off. When asked the contractor stated that "an OFF switch wasn't in the requirements, so it wasn't implemented". They will do EXACTLY what you state, and not apply any critical thinking or thought.

    As I understand it, it's a cultural thing. Book knowledge and following instructions is looked highly up, while out-of-the-box thinking and doing things on your own is not. Many years ago on a WTF that I can't remember there was a comment from an Indian national living in India who explained this notion, that looking for exact solutions to problems is good, but doing your own research or looking at documentation to find the answer is not considered acceptable.

    This is the point where all those people who were offended by the silly Scottish stereotype from a couple weeks ago jump in and denounce a rather racist portrayal of, what, only the 2nd most populous country on the planet specifically, and more generally everybody outside of Western Europe and North America, right?

    The Scots haven't personally offended most of us by writing billions of lines of WTF code.

  • Anon (unregistered) in reply to ObiWayneKenobi
    ObiWayneKenobi:
    As I understand it, it's a cultural thing. Book knowledge and following instructions is looked highly up, while out-of-the-box thinking and doing things on your own is not. Many years ago on a WTF that I can't remember there was a comment from an Indian national living in India who explained this notion, that looking for exact solutions to problems is good, but doing your own research or looking at documentation to find the answer is not considered acceptable.

    Anecdotal for sure, but there might be something to this. I had an Indian guy working for me, but whenever he got a problem his immediate reaction was to ask somebody else for the answer (typically by calling tech support). He seems completely devoid of any impulse to try and solve a problem himself.

    One time he asked me how to do something (by e-mail) which I didn't know exactly how to do off-hand myself. I e-mailed him back and said "here's the top three Google results, they look promising."

  • n_slash_a (unregistered) in reply to Anon
    Anon:
    ObiWayneKenobi:
    I cannot fault Rahul. Most offshore people, especially the ones from a particular Eastern country known for its spicy foods and IT "talent", will do just what it asked and nothing more, nothing less. I heard a story somewhere, I'm not sure where, about someone who had Indian contractors install a fan for his mother (it might have BEEN in India, so it's not a "dey tuk ur jerbs" kind of thing). The instructions said that she needed a way to turn the fan on. Later, they found there was no way to turn it off. When asked the contractor stated that "an OFF switch wasn't in the requirements, so it wasn't implemented". They will do EXACTLY what you state, and not apply any critical thinking or thought.

    As I understand it, it's a cultural thing. Book knowledge and following instructions is looked highly up, while out-of-the-box thinking and doing things on your own is not. Many years ago on a WTF that I can't remember there was a comment from an Indian national living in India who explained this notion, that looking for exact solutions to problems is good, but doing your own research or looking at documentation to find the answer is not considered acceptable.

    When you pay $1/hr for work, you get back $1/hr work.

    Exactly. Our V&V team is in India. We have a number of requirements along the ilk of: (In the I/O layer) - We shall parse data X (In the app layer) - We shall pass data X to the core (In the core layer) - We shall do stuff with data X

    The smart thing to do would be write 1 test to test all 3 requirements. What do we get? We get 3 tests that (badly) test each requirement. As OB1 said, they do exactly what you tell them to without actually using their brain.

  • Bananas (unregistered) in reply to Cant remember my damn login
    Cant remember my damn login:
    An instant Clbuttic!
    Nothing will ever top Bluegrbutt. Too bad bluegrassworld.com is gone. Did anybody archive the hilarious Dueling Banjos article from that website?
  • Welch (unregistered) in reply to Anon
    Anon:
    ObiWayneKenobi:
    As I understand it, it's a cultural thing. Book knowledge and following instructions is looked highly up, while out-of-the-box thinking and doing things on your own is not. Many years ago on a WTF that I can't remember there was a comment from an Indian national living in India who explained this notion, that looking for exact solutions to problems is good, but doing your own research or looking at documentation to find the answer is not considered acceptable.

    Anecdotal for sure, but there might be something to this. I had an Indian guy working for me, but whenever he got a problem his immediate reaction was to ask somebody else for the answer (typically by calling tech support). He seems completely devoid of any impulse to try and solve a problem himself.

    One time he asked me how to do something (by e-mail) which I didn't know exactly how to do off-hand myself. I e-mailed him back and said "here's the top three Google results, they look promising."

    Is this necessarily supposed to be a bad thing? Imagine how many stories you've read here could have been avoided if only the coder had asked someone first...

  • (cs)

    I think he'd better also hope that no one uses their address on the street named "Edgewater Doctor".

  • (cs) in reply to Welch
    Welch:
    Tasty:
    operagost:
    ObiWayneKenobi:
    I cannot fault Rahul. Most offshore people, especially the ones from a particular Eastern country known for its spicy foods and IT "talent", will do just what it asked and nothing more, nothing less. I heard a story somewhere, I'm not sure where, about someone who had Indian contractors install a fan for his mother (it might have BEEN in India, so it's not a "dey tuk ur jerbs" kind of thing). The instructions said that she needed a way to turn the fan on. Later, they found there was no way to turn it off. When asked the contractor stated that "an OFF switch wasn't in the requirements, so it wasn't implemented".
    You would actually have to go out of your way to make a "switch" that only turns something on. It's kind of like a "write-only" database.

    No, just don't make any switch. It plugs into the wall, or is wired without. It's less work.

    If there was a plug in the wall, she could have turned it off. This sounds like an urban legend.

    I agree.

    Like the old joke about the guy who disassembled and reassembled his mower engine, only to find he had one part left over. He decided to try it: It started right up, ran fine, cut grass like it was new. Everything seemed perfect. Then he tried to turn it off ...

  • jay (unregistered) in reply to hank
    hank:
    This is the point where all those people who were offended by the silly Scottish stereotype from a couple weeks ago jump in and denounce a rather racist portrayal of, what, only the 2nd most populous country on the planet specifically, and more generally everybody outside of Western Europe and North America, right?

    Why is it that any generalization about an ethnic or national group is automatically denounced as racist? I don't think it is at all implausible to theorize that a group of people with a common gene pool and a common culture might have character traits different from those of some other group with a different gene pool and a different culture.

    The empirical evidence would seem to confirm such a theory. That is, while blanket universals like, "All Chinese people are good at math" are clearly false, statements like, "On the average Chinese people are better at math by a statistically significant margin" are often true.

  • me (unregistered) in reply to Anon
    Anon:
    One time he asked me how to do something (by e-mail) which I didn't know exactly how to do off-hand myself. I e-mailed him back and said "here's the top three Google results, they look promising."
    I despise prejudice, but can't help getting pissed off at mindless coders, like back in the days when I was active in StackOverflow. Everyday at least half a dozen questions from new users with Indian names... always along the lines "need invetory system i not find how code it send code it urgent"

    Seriously, it gotta be something cultural... it happens far too many times, too often. Unless they got packs of people paid to post such questions trolling everybody else...

  • Double E (unregistered) in reply to Anon
    Anon:
    Anecdotal for sure, but there might be something to this. I had an Indian guy working for me, but whenever he got a problem his immediate reaction was to ask somebody else for the answer (typically by calling tech support). He seems completely devoid of any impulse to try and solve a problem himself.

    One time he asked me how to do something (by e-mail) which I didn't know exactly how to do off-hand myself. I e-mailed him back and said "here's the top three Google results, they look promising."

    Sadly similar to our outsourced support for Windows PCs (not our Linux systems; they're supported locally and are top-notch). Whenever I have a problem I have three options:

    1. Fix it myself. This is far and away my preferred solution and the most likely to be successful and leave me feeling good at the end of the day rather than yelling and foaming at the mouth.

    2. Learn to live with it the way it is. This isn't always practical, but even so can often be a much more satisfying option than #3.

    3. Call PC support. Or email; that helps mitigate the language issue somewhat. 90% of the time this approach is successful only if I've researched the problem beforehand and can say, "This is how it's broken; you need to do this specific thing to fix it." I would have done this myself (see option #1 above), but I couldn't because I didn't have the right permissions.

  • jay (unregistered) in reply to Coyne
    Coyne:
    Like the old joke about the guy who disassembled and reassembled his mower engine, only to find he had one part left over. He decided to try it: It started right up, ran fine, cut grass like it was new. Everything seemed perfect. Then he tried to turn it off ...

    This story seems more plausible than the one about the fan switch. A lawn mower often has a lever of some kind to turn the gas on and off, and that lever must connect by a cable to the gas valve. It's not hard to imagine there being some bracket or connecting rod that, if missing, does not prevent the cable from being pulled back to open the valve, but which is necessary to prevent the cable from bending rather than closing the valve when pushed forward. Or something of that sort.

    But unless the fan maker designed their own electrical switch that has no mechanism for turning it off, or deliberately modified an off-the-shelf switch to disable turning it off, one would normally expect it to work both ways.

    And of course there's a difference between "oops, we didn't assemble it correctly, the 'off' doesn't work" and "no one said there should be a way to turn it off so we deliberately designed a switch with no such capability".

    All that said, as someone pointed out, if someone was told, "You are to follow these specs exactly as given", they might shrug their shoulders and say, Okay, if that's what you want ... I have had many, many IT projects where I thought the requirements were dumb but my boss or the client said that I was to implement them as given, so I gritted my teeth and that's what I did.

  • alex (unregistered) in reply to n_slash_a

    [quote user="n_slash_a"] When you pay $1/hr for work, you get back $1/hr work.[/quote] Exactly. Our V&V team is in India. We have a number of requirements along the ilk of: (In the I/O layer) - We shall parse data X (In the app layer) - We shall pass data X to the core (In the core layer) - We shall do stuff with data X

    The smart thing to do would be write 1 test to test all 3 requirements. What do we get? We get 3 tests that (badly) test each requirement. [/quote]

    Actually I would do it like that as well. For two reasons:

    (1) Imagine you have just one test. If the test fails, you don't know whether the problem is in app, core or I/O. Especially in a big application this might be a hard debugging job. Also the three layers may have been written by different people and everyone blames on one of the others. In general if I look for a bug, I am happy if the amount of code I have to skip through is as small as possible.

    (2) In a large application setting up all layers, wiring all layers etc. may take some time. For the small test I need to set up and wire just one layer (maybe I don't even need the entire layer). Also if you changed nothing but I/O layer you don't need to run all three tests, but just the relevant one. So less time the developer spends on waiting for test results.

    If I click the "Submit" button, nothing happens...WTF!

  • (cs) in reply to Andrew
    Andrew:
    It could be that the contractor was given specific instructions about how the solution was to be developed and told not to stray from them. I had a job (contract) like that once.

    An engineering firm gave me the spec for a roadway construction delay calculator in a simple Word doc. When I raised some concerns I was told that it was put together by their best minds and to produce the solution exactly as described and not to stray from it. So I did. Then after it didn't work, I explained to them why and got another contract to come up with a solution that would work and then implement it. It turned out to be a good gig.

    I can identify with this. "Best minds" often means "people who are paid a lot to not do a great deal but when they were young they used to be computer programmers". As they were considered super-clever then, they're considered super-clever now. Therefore they get the mathematical analysis and technical specification jobs, because everybody thinks they're clever. But they're not, necessarily, and of course may not even have the right domain knowledge either.

    Dunning Kruger rides again.

  • (cs) in reply to jay
    jay:
    Coyne:
    Like the old joke about the guy who disassembled and reassembled his mower engine, only to find he had one part left over. He decided to try it: It started right up, ran fine, cut grass like it was new. Everything seemed perfect. Then he tried to turn it off ...

    This story seems more plausible than the one about the fan switch. A lawn mower often has a lever of some kind to turn the gas on and off, and that lever must connect by a cable to the gas valve. It's not hard to imagine there being some bracket or connecting rod that, if missing, does not prevent the cable from being pulled back to open the valve, but which is necessary to prevent the cable from bending rather than closing the valve when pushed forward. Or something of that sort.

    But unless the fan maker designed their own electrical switch that has no mechanism for turning it off, or deliberately modified an off-the-shelf switch to disable turning it off, one would normally expect it to work both ways.

    And of course there's a difference between "oops, we didn't assemble it correctly, the 'off' doesn't work" and "no one said there should be a way to turn it off so we deliberately designed a switch with no such capability".

    All that said, as someone pointed out, if someone was told, "You are to follow these specs exactly as given", they might shrug their shoulders and say, Okay, if that's what you want ... I have had many, many IT projects where I thought the requirements were dumb but my boss or the client said that I was to implement them as given, so I gritted my teeth and that's what I did.

    The return spring pinged off the throttle cable on my Mark 3 Ford Cortina many years ago when I was barrelling down the motorway at about 5 a.m. one morning. A bit frightening when you're going at 90 mph and suddenly realise you can't slow down.

  • (cs) in reply to James
    James:
    All the comments about the code aside, it seems the boss has sent his employees on a fool's errand. The ways to say Internal Revenue Service are as varied as the creativity/stupidity of the users. The true WTF is the boss. The real solution to this problem is homicide.
    This may have come from the process of massaging today's WTF story, but I was surprised to find "IRS", "I R S" and "I.R.S." on the list (supposedly gleaned from the actual raw data) but not "I.R.S". Maybe I'm the only one who's noticed that people who diligently point their abbreviations often leave off the final dot, as in "M*A*S*H" or the Taiwanese pop group "S.H.E" (I've had buckets of trouble searching for those girls' music videos on YouTube because of it).
  • (cs) in reply to Welch
    Welch:
    Really, the converter should have been built into whatever code was going to process this output. Assuming it did any kind of language parsing, it would have been in a better position to tell the difference between "Dr. Smith" and "Mountainview Dr.", etc.
    Congratulations on noticing this problem less than 45 years after someone on "Laugh-In" greeted their guest star, Bond girl Jill Street John.
  • Shea (unregistered)

    Why would I comment about that?

    My fIRSt doctorinking and doctorinking officeence is of a very personal nature and I'd never put that in a webform.

  • Papa Gujio (unregistered) in reply to Anonymous
    Anonymous:
    TRWTF is that SQL is the supreme programming language and the problem could be easily solved by writting everything in SQL, without regex, wich wasn't used anyway.

    So much this.


    Captcha - distinea: Dis, dis, distineo. (Think Phil Collins)

  • JJ (unregistered) in reply to da Doctah
    da Doctah:
    This may have come from the process of massaging today's WTF story, but I was surprised to find "IRS", "I R S" and "I.R.S." on the list (supposedly gleaned from the actual raw data) but not "I.R.S". Maybe I'm the only one who's noticed that people who diligently point their abbreviations often leave off the final dot, as in "M*A*S*H" or the Taiwanese pop group "S.H.E" (I've had buckets of trouble searching for those girls' music videos on YouTube because of it).
    At the risk of getting labeled "racist," I think it's an East-Asian thing. You mentioned Taiwan, and I've seen the same thing from the Koreans and the Japanese far too often for it to be a typo.
  • JJ (unregistered) in reply to Zagyg
    Zagyg:
    Bernie The Bernie:
    Wow, isn't that a Micorsoft Access database? They use simple question marks for the parameters. If it were Oracle, it would break down under the load of the many connections, because Oracle is too stupid to re-use them in a timely fashion. Great job!

    Don't think so. Wildcards are %, Access uses *. More likely MSSQL

    Argh, so much wrong.

    First off, those question marks were inside the text that was passed to a PreparedStatement object. They are placeholders which will get replaced when methods like setString(), setLong(), etc. are called, which you can see on the next two lines of code. The SQL passed to the underlying database will NOT have those question marks.

    Secondly, wildcards are _ (single character) and % (multiple characters) in ANSI SQL and also in ADO, whereas DAO (the "native" language of the Jet database engine, which many people incorrectly equate with Access) uses the DOS-style wildcards of ? (single character) and * (multiple characters). So no, Access doesn't necessarily use * as a wildcard; it depends on the data access method that Access is using.

  • instigator (unregistered) in reply to Anon
    Anon:
    ObiWayneKenobi:
    As I understand it, it's a cultural thing. Book knowledge and following instructions is looked highly up, while out-of-the-box thinking and doing things on your own is not. Many years ago on a WTF that I can't remember there was a comment from an Indian national living in India who explained this notion, that looking for exact solutions to problems is good, but doing your own research or looking at documentation to find the answer is not considered acceptable.

    Anecdotal for sure, but there might be something to this. I had an Indian guy working for me, but whenever he got a problem his immediate reaction was to ask somebody else for the answer (typically by calling tech support). He seems completely devoid of any impulse to try and solve a problem himself.

    One time he asked me how to do something (by e-mail) which I didn't know exactly how to do off-hand myself. I e-mailed him back and said "here's the top three Google results, they look promising."

    I've worked with a few people of Indian descent. Some native born Americans, some emigrated. All were very sharp, and good problem solvers.

    OTOH, going with the lowest bid contractor gets you the greatest talent, no matter what type of work it is, or where its done.

  • bs :DDD (unregistered)

    hahaha

  • guestimate (unregistered) in reply to jay
    This story seems more plausible than the one about the fan switch.
    I seem to remember simple toggle-like switches with not one, but two cords dangling from them: One to switch on, the other to switch off.

    In other words: installing the "on" cord but not the "off" cord would give the described effect, which would make the story plausible.

    Now I think of it, the last time I saw that kind of switch was in my own bathroom: A mandated switch so a washing-machine could be switched on and off outside of the apparatus itself. That switch was removed (allowed by newer standards) only a couple of years ago, during a renovation.

  • Tangurena (unregistered)

    Dear me. This hurts just looking at it.

    String similarity is a rather common task, I'm surprised the people involved didn't do even a cursory literature search.

    G.J. Quarderer:
    Four to six weeks in the lab can save you an hour in the library

    One of my favorite dissertations describes this sort of problem, and one method of dynamic searching. I like this dissertation because it is easy to read and not that math-intense. The algorithms described (he really likes Smith-Waterman) are the forerunners of BLAST which was developed for the Human Genome Project.

    Dissertation: Adaptive detection of approximately duplicate database records and the database integration approach to information discovery. Alvaro Monge, 1997. http://www.cecs.csulb.edu/~monge/research/thesis.pdf

    But, if you really want to put this sort of thing directly into the database, then I'd recommend SimMetrics which is an open source library that you can compile and attach to SQL Server, so your SQL queries can hit these functions directly.

    Decent write up:
    http://anastasiosyal.com/POST/2009/01/11/18.ASPX

    Am I asking too much of the world?

  • Dann of Thursday (unregistered)

    All of these examples of regex censorship gone wrong are pretty great, but honestly they're kind of small fries. Let's find a more interesting example, shall we?

    Like, say...one of the most popular video game franchises ever to grace the planet.

    Like....POKEMON.

    Y'see, when Pokemon Black & White came out a few years back, they came with a roster boosted with at least 150 brand new monsters, AND an updated Global Trading System to swap monsters with strangers easily. Of course, Nintendo is a family-friendly company, so they implemented an aggressive regex to try to filter out Pokemon that were given offensive nicknames.

    Unfortunately, they applied it to not only nicknames, but also the official name of each Pokemon species. It's not clear why they did this (well, I take that back - each monster likely has a single identifier in the "name" field, but how hard would it have been to check that against the species name?) but the end result was that some Pokemon could never be traded.

    To this day, I've never bothered trying to hunt down a Crofagrigus.

    Captcha: minim - "It seems like trading each monster on the GTS would have been involved in some minim. testing, doesn't it?"

  • router bgp 1337 (unregistered) in reply to Coyne
    Coyne:
    Welch:
    Tasty:
    operagost:
    ObiWayneKenobi:
    I cannot fault Rahul. Most offshore people, especially the ones from a particular Eastern country known for its spicy foods and IT "talent", will do just what it asked and nothing more, nothing less. I heard a story somewhere, I'm not sure where, about someone who had Indian contractors install a fan for his mother (it might have BEEN in India, so it's not a "dey tuk ur jerbs" kind of thing). The instructions said that she needed a way to turn the fan on. Later, they found there was no way to turn it off. When asked the contractor stated that "an OFF switch wasn't in the requirements, so it wasn't implemented".
    You would actually have to go out of your way to make a "switch" that only turns something on. It's kind of like a "write-only" database.

    No, just don't make any switch. It plugs into the wall, or is wired without. It's less work.

    If there was a plug in the wall, she could have turned it off. This sounds like an urban legend.

    I agree.

    Like the old joke about the guy who disassembled and reassembled his mower engine, only to find he had one part left over. He decided to try it: It started right up, ran fine, cut grass like it was new. Everything seemed perfect. Then he tried to turn it off ...

    Anyone who can't figure out how to turn off a lawnmower with a screwdriver shouldn't be using one.

    PS - make sure you are not the best ground.

  • Rakov (unregistered)

    How come they didn't just send the guy some unit tests along with the specification?

  • (cs)

    Source Regular Expression: GNU

    Destination Regular Expression: GNU's Not Unix

    click

    ERROR: OUT OF MEMORY

  • haero (unregistered)

    I love this. As long as there are dumbass developers like this out there, I'll be paid big bucks.

  • (cs) in reply to haero

    The original problem brought back many memories... 20 years ago (how can it possibly be that long)I took a contract that involve mining published material and getting structured data from it....we got the desired results, but it was man-years of design (the previously quoted resources didn't get published till nearly 5 years later!).

    The 'classic test case' was to find all the articles that were about Digital Equipment Corp. [still a significant player at the time]. Many times they were referred to just as Digital, but of course, searches on that word had a majority of false positives.....

    Ahhh...The memories....

  • Welch (unregistered) in reply to jay
    jay:
    Why is it that any generalization about an ethnic or national group is automatically denounced as racist? I don't think it is at all implausible to theorize that a group of people with a common gene pool and a common culture might have character traits different from those of some other group with a different gene pool and a different culture.

    The empirical evidence would seem to confirm such a theory. That is, while blanket universals like, "All Chinese people are good at math" are clearly false, statements like, "On the average Chinese people are better at math by a statistically significant margin" are often true.

    Of course it's possible for groups of people to have genetic or cultural differences from other groups. But there is probabily some selection bias in effect here. Are you really looking at a representative sample of Indians, or even of Indian programmers? Or are you looking only at a sample of the cheapest Indian programmers your company can find?

  • np (unregistered) in reply to haero
    haero:
    I love this. As long as there are dumbass developers like this out there, I'll be paid big bucks.

    s/big bucks/more than the $1/hr the dumbass developers are making/.

  • Norman Diamond (unregistered) in reply to Coyne
    Coyne:
    Welch:
    Tasty:
    operagost:
    ObiWayneKenobi:
    When asked the contractor stated that "an OFF switch wasn't in the requirements, so it wasn't implemented".
    You would actually have to go out of your way to make a "switch" that only turns something on. It's kind of like a "write-only" database.
    No, just don't make any switch. It plugs into the wall, or is wired without. It's less work.
    If there was a plug in the wall, she could have turned it off. This sounds like an urban legend.
    Like the old joke about the guy who disassembled and reassembled his mower engine, only to find he had one part left over. He decided to try it: It started right up, ran fine, cut grass like it was new. Everything seemed perfect. Then he tried to turn it off ...
    You're talking about India though. A lawnmower has four legs. If you turn one off you'll have bad karma in your next life.
  • Norman Diamond (unregistered) in reply to Matt Westwood
    Matt Westwood:
    The return spring pinged off the throttle cable on my Mark 3 Ford Cortina many years ago when I was barrelling down the motorway at about 5 a.m. one morning. A bit frightening when you're going at 90 mph and suddenly realise you can't slow down.
    Turn off the engine. You did say it's a Ford not a Toyota, right?
  • (cs) in reply to TheCPUWizard
    TheCPUWizard:
    The 'classic test case' was to find all the articles that were about Digital Equipment Corp. [still a significant player at the time]. Many times they were referred to just as Digital, but of course, searches on that word had a majority of false positives.....

    Remembering those halcyon days leading up to Y2K. The classic test case for us was going through half a million lines of code looking for references to dates. Couldn't grep on the word date because it could appear in the middle of an unrelated word like "updated", sometimes it was abbreviated "dt", sometimes "yymmdd" or a substring thereof.

  • (cs) in reply to Norman Diamond
    Norman Diamond:
    You're talking about India though. A lawnmower has four legs. If you turn one off you'll have bad karma in your next life.

    It's okay to scream at it, though, right?

  • (cs) in reply to np
    np:
    s/big bucks/more than the $1/hr the dumbass developers are making/.
    Yeah, that's not quite going to work. Didn't anyone tell you to use delimiters that aren't in your data?
  • Alargule (unregistered)

    "Rahul..."

    Sounds like a bad cough to me.

  • ZoomST (unregistered) in reply to hank
    hank:
    ObiWayneKenobi:
    I cannot fault Rahul. Most offshore people, especially the ones from a particular Eastern country ...
    This is the point where all those people who were offended by the silly Scottish stereotype from a couple weeks ago jump in and denounce a rather racist portrayal of, what, only the 2nd most populous country on the planet specifically, and more generally everybody outside of Western Europe and North America, right?
    I find that calling Scottish stereotypes "Western Europeans" may be quite offensive for them, indeed.
  • Alan Smithee (unregistered)

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

  • Lazy Boy (unregistered) in reply to ObiWayneKenobi
    ObiWayneKenobi:
    They will do EXACTLY what you state, and not apply any critical thinking or thought.

    As I understand it, it's a cultural thing. Book knowledge and following instructions is looked highly up, while out-of-the-box thinking and doing things on your own is not.

    And I'm convinced that the country I live in is economically so well of because people actual do think critically and it is expected of them instead of blindly following orders. it's fine to tell your boss that something is stupid or makes no sense.

  • jay (unregistered)

    On the slightly serious side: May I point out that changing "IRS" and "I.R.S." to "Internal Revenue Service" -- even assuming you fixed the dumb mistake of not looking for some sort of surrounding delimiters -- barely scratches the surface. What if someone mis-spelled it, e.g. wrote "Inertal Revenue Service"? What it they called it "the tax people"? Or simply, "the government"? How would you distinguish references to "the government" that are referring to the IRS from those that are referring to Congress or the TSA or the state police? Or to some foreign government? An intelligent being could often quickly tell from the context, but how would you program a computer to figure that out?

  • Paul M (unregistered) in reply to Explanation

    "I think it was like, a thousandth of a cent per line of code. see, no WTF here anymore ...."

    Paying developers by lines of code is the WTF.

  • AndyC (unregistered) in reply to JJ
    JJ:
    Zagyg:
    Bernie The Bernie:
    Wow, isn't that a Micorsoft Access database? They use simple question marks for the parameters. If it were Oracle, it would break down under the load of the many connections, because Oracle is too stupid to re-use them in a timely fashion. Great job!

    Don't think so. Wildcards are %, Access uses *. More likely MSSQL

    Argh, so much wrong.

    First off, those question marks were inside the text that was passed to a PreparedStatement object. They are placeholders which will get replaced when methods like setString(), setLong(), etc. are called, which you can see on the next two lines of code. The SQL passed to the underlying database will NOT have those question marks.

    Secondly, wildcards are _ (single character) and % (multiple characters) in ANSI SQL and also in ADO, whereas DAO (the "native" language of the Jet database engine, which many people incorrectly equate with Access) uses the DOS-style wildcards of ? (single character) and * (multiple characters). So no, Access doesn't necessarily use * as a wildcard; it depends on the data access method that Access is using.

    All exciting guesswork aside, the ? thing is the way parameters are passed by ODBC, regardless of the target DB.

  • Decius (unregistered) in reply to Botia
    Botia:
    Hate to think of "Office" comments. Office Officeice Officeiceice Officeiceiceice Officeiceiceiceice Officeiceiceiceiceice Officeiceiceiceiceiceice Officeiceiceiceiceiceiceice Officeiceiceiceiceiceiceiceice Officeiceiceiceiceiceiceiceiceice Officeiceiceiceiceiceiceiceiceiceice
    Officeiceiceiceiceiceiceiceiceiceice Ice Ice Baby

Leave a comment on “Irregular Regular Expressions”

Log In or post as a guest

Replying to comment #:

« Return to Article