- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
...and all this is absolutely irrelevant to the case.
You see, there was another error ! The guru just cannot tell file renaming (with implied pattern matching and substitution, done to some degree even by most stupid OSes) from SQL command, that hardly ever does something implied and non-specified (MySQL does, see MySQL gotchas article). I cannot see easy (straight jackets would be a bit too much) fool-proofing tool, that could analyze such a WHILE to see if it is does has sense or not.
Admin
Nice try, though. :)
Admin
The keyboards still also do have a roman alphabet layout so you don't have to write just Japanese with them. So a space key I think would be useful. Also, while you're correct in that Japanese sentences don't use spaces, there still is the occasional time where a space can be useful for formatting reasons.
Admin
Not valid in the host part of an address per RFC822 (or the updated 2822, or 821/2821 SMTP protocol). There are many faults in email address validators; this is not one of them.
Incidentally, did you know that the username part can't begin or end with a dot either, or have two dots next to each other, unless it's a quoted string?
Admin
It's also a perfectly valid email address if there's none at all - validity of email addresses does not depend on DNS resolution in any sense. (but you're right insofar as an A record is sufficient for delivery)
Admin
(And I mean that in the nicest possible way.)
Admin
SQL> select comment_text from tdwtf.comments 2 input column comment_text Oh.My.God;
input column comment_text Oh.My.God; * ERROR at line 2: ORA-00933: SQL command not properly ended * SQL> update tdwtf.comments.new 2 set comment_text = Oh.My.God; update tdwtf.comments.new * ERROR at line 1: ORA-00971: missing SET keyword * SQL> drop schema tdwtf drop schema tdwtf * ERROR at line 1: ORA-00933: SQL command not properly ended * SQL> drop schema tdwtf; Schema dropped.
SQL> select comment_text from tdwtf.comments 2 select comment_text from tdwtf.comments * Connection lost.
(I'm certain I've hosed something up in the quest for this gag. But I'm equally sure I'll be corrected...)
Admin
This was 9 years ago before "highly paid consultents" had Google to find the answers to guestions the should already know. http://www.google.com/search?q=sql+oracle+UPDATE+syntax&sourceid=navclient-ff&ie=UTF-8&rlz=1B3GGGL_enUS208US208
Admin
I hear you. I had to change my postfix settings so that I could use "[email protected]". And even the - isn't allowed in some cases. But then I just flame the frakking stupid mail admin until it is fixed. Or I just don't use that service.
Admin
THANK YOU! WITH THIS KEY ITS EASIER TO PRINT BIG LETTERS!
Admin
Good point - I saw a "one of the key tables" and "unique constraint" and erroneously turned it into "key field". Also thought I saw something about the email address showing up in other tables, but upon a re-read I can't find that.
Even so, email address was what I'll call a virtual key, since it was used as the login. Unlike real keys, logins should definitely be human-readable. But using email address for that is bad for several reasons (as many other people have pointed out). I also believe that requiring email address to be unique (even if it's not the login) is silly - I might have good reasons for wanting multiple accounts on the same email address.
Admin
About 10 years ago, I worked for a company doing enterprise knowledge management software. They used the email address as the username. I argued long and hard against it. I lost the argument and walked off muttering how it'd come back and bite us later.
Shortly after deployment at one of the beta customers (a large one), the customer decided to change their email address format from something like [email protected] to [email protected]. We had to write something that would go and update all of the email addresses in the database, using an old->new mapping list. For some reason, the email address showed up elsewhere in the system (which seems like a WTF but made sense given the design of the system), so it was a fairly complex and time-consuming operation.
If the username and email address were separate, users could have changed their own email addresses.
I argued long and hard that we should take that opportunity to decouple the two before going to full release. I lost the argument and walked off muttering how it'd come back and bite us later.
A few months later, when most of the dev staff was at Java One, a second customer had the same thing happen to them, and one of the developers had to spend his conference time dialled into the system to modify the email addresses instead of participating in the conference.
That's why tightly coupling email and username is a bad thing.
Admin
I think that's something for BOFH to, ekhm, suggest to some noob developer: actually allow non-unique user ids. When you create a new user, there's a new record added with its own OID used as a key (say). Then, when you log in, the user selected is the one whose password matches.
Cheers!
Admin
Mr. Papadamopolipolus, Please change the page TITLEs to say: The Daily WTF - <article name> so it will be in a consistent place in my bookmarks.
Sorry for posting here instead of going through the proper channels, but whatever, right, bro?
Admin
Sorry, that does not work in the real world. As a consultant, you are ALSO obligated to inform the user of the consequences to your actions and there is absolutely no question that removing a unique constraint could cause dire ramifications. It is unacceptable to throw your hands up and say, "Well, the client told me to shoot them in the foot. Even though I told them them it was a bad idea, I was obligated to do it."
Admin
Admin
This only works if you have sufficient competency to hire the guru for a permanent position.
It sounds like the technical team may have (barely) had sufficient technical expertise to do this, but management did not, and management was not aware of the technical team's expertise level - management only knew that it was not within the technical team's comfort area.
Now, that having been said, whenever I'm involved with a guru in a specialty in which the local talent does not have sufficient expertise to properly interview the guru first, I make it a point to say, "we should watch everything the guru does, so we can learn from him." I don't say, but I think, "especially the bit about whether he is competent or not."
Not, of course, that the bit about whether the guy is competent will necessarily help one get rid of him if he isn't. Apparently, in many organizations, saying that someone is not competent is a personal attack. It doesn't matter how much evidence you have to back up your claim.
Admin
Admin
In my earlier message blasting people for putting an incorrect "www." in their e-mail address, I didn't mean to state or imply that there couldn't be perfectly valid addresses that do indeed include this string; my own web applications never alter such things for the customer because that could mess up a genuine address. I, too, hate bogus "address validators", and have been stung by them myself for my use of ".name" and ".info" addresses (some badly done validators assume that top level domains are three characters or fewer). However, when a customer gives their address as "[email protected]", I have to surmise that they're putting in a bogus "www." (does AOL even let you get usernames that include a dot?), though I don't take it out automatically.
Admin
The real WTF is that they didn't have a backup they could use from imediatly before the outsider came in
Admin
It will never ceases to amaze me how many DB/SQL experts do not believe in referential integrity and constraints. They say it makes the DB slower. I would go for slow in place of wrong data.
Admin
The Control key?
Admin
So so clever and smart Bob