- 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
Fascinating. I appear to be the first DB-person /and/ programmer who noticed that the "helpful" script solution completely fails to solve the original problem. It first assigns just one filename to $file, which is then left alone. Then it assigns a huge number of filenames to $FILE. Wow! Way to prove your point! DB-folks sure are annoying, because they tend to be anal about correctness and integrity and such, while programmers tend to be so proud of their hacks, whether tested or not, whether they work or not, just to prove they are better programmers.
The overlooked morale of this story ought to be: Get it right first. Clearly the programmer had a completely different set of priorities.
Admin
Admin
Admin
Someone should make an animated GIF from the initial version.
Admin
Admin
Admin
Remember: 50% of any profession are below average. 90% of them think they are above average.
Admin
Admin
Here's a one-line version using ruby:
ruby -e 'puts "file="+(1..118).map{|n|"$WORKSPACE/ewprd#{n}_$DATECODE.dmp"}.join(",")'
Admin
Wow. Arrogant and proving my point. "Didn't bother to read ANY of the previous comments" is just the kind of illogical arrogance that one has come to expect from "programmers". I did not read ALL of the prior comments, obviously, because I missed TWO of them. Concluding from that that I did not read ANY of them is proof positive of the attitude I am attacking: Don't bother to get it right first, have some other, higher priority in your professional life, such as catering to a fragile ego.
Yes, there is a huge attitude difference between DB-folks and programmers. DB-folks are generally much older and have established egos and much less of a need to prove themselves to their peers, because they generally know what they are doing and the boundaries of their knowledge. Young stud programmers out to prove how smart they are, generally know neither.
But it's perfectly OK to be young and cocky. First: We all were, when our immature brains were overloaded with hormones. Second: Aging alone will most probably cure this problem. However, innocent people should not have to pay for arrogant immaturity, and knocking DB-folks because you don't understand them is immature and arrogant in the extreme.
Admin
Admin
This repetition of "get it right first" as a distinguishing characteristic of "DB-folks" prompts me to ask whether you proofread before you post.
Admin
Back in the day I worked for a GM subsidiary doing batch PL/1 and JCL programming. Rather than lay off some of the people in the GM dealerships, they kindly offered them training as computer programmers despite the fact that most of these people had little or no aptitude for programming.
I'll never forget Annette, a former secretary, trying mightly for several days to write a simple program to read in a bunch of records and generate a report.
Her input file had 50 records. Her program had 50 read statements.
Annette: Help! What do I do if there are 51 records?
(She later quit and became a beautician)
Admin
If any more of you people believe that you have a crucial point to make regarding the /code/ we write for pay and for other people's commercial interests, and/or regarding the attitudes we bring to what we present to their /computers/ and our /profession/, by attacking spelling errors or question whether people proofread comments on a freaking /blog/, please allow me to preempt you: You don't. Really. But it is highly indicative of a personality trait that needs to find /something/ to attack others for when the truth hurts, regardless of how petty.
We all make mistakes. Some of us make them in our own leisure time. Some of us make them while in the paid services of others. If you are incapable of seeing the difference, may I suggest that you stick to writing code in your leisure time so you do not hurt other people? Thank you.
Maybe a hint is in order: DBAs do not work on their own databases, but with other people's highly valuable data, while programmers can easily work on their own code, or "open source" or some other leisure-like activity. This also explains why DBAs want real database systems, while most programmers want "object stores" to store only their own objects efficiently for their own application.
Please, try to understand people who are very different from your own in-group. Attacking people you do not understand simply because they are different enough that you have to work on it, is called "discrimination" in many civilized countries, and if they get vicious enough, it is called "hate crimes", but among "programmers", it appears that attacking "DB-folks" is perfectly legitimate. And I thought most programmers were Democrats, not redneck Republicans... So maybe some of you guys out there should try to /talk/ to a DBA once or twice before you continue to harass and ridicule them, while trying desperately to score a point on /blog comment spelling/, of all puerile things.
I'm done commenting on this thread unless I find a glimmer of intelligence in a response.
Admin
Yeah seriously, we create lots and lots of files where I work (taking pictures & scanning computer generated documents and then archiving them electronically) and on windows the file 'a' gets overwritten by 'A' (HUGE BUG!!! It took me weeks to figure out why files where being deleted! good thing we keep hard backups of everything!)
Admin
Admin
Admin
Admin
Admin
You are so extremely wrong. You obviously have never worked with data warehousing, and/or you have only worked with crappy (either primitive or closed-environment) RBDMSes like MS SQL Server, Sybase or MySQL.
I work with (and have designed) our data warehouse in PostgreSQL. We incrementally collect data from several completely different sources, clean, mangle and normalize it to simplified public tables and views where you can combine it to get crazy detailed statistics about almost anything you can dream up (if it's related to company data).
95% of the code is pure SQL and the last 5% (mostly maintainence stuff and control scripts) is written in Ruby. It's a pleasure to work with.
Admin
Admin
Puzzled ... is there perhaps a language difference here?
In English "passed on" means "conveyed this information to those best placed to act on it". Does it mean something different in American perhaps?
Admin
I think that the original statement was false, as you assert, however, I do not believe that your proposed counterexample is a valid one. A better counterexample would not be the database you work with, but rather yourself; you find the DB fascinating and/or intriguing and pleasurable to work with, therefore databases are not always boring as hell. The fallacy in the original statement was not related to the databases, but rather to the perceptions of those working with them. Some people like them, others do not.
Admin
In the American dialectic it can mean that, or it can mean that the individual who did the "passing" chose not to utilize whatever was passed on. e.g. If I passed on lunch, then I chose not to have lunch.
Admin
Some would disagree. The designers of Python and Eiffel considered case insensitivity to be a superior design but some implementations enforce case sensitivity for a number of reasons. Foremost was the ability to interface with the existing code base in other languages.
In the UNICODE world it is actually not trivial to implement case insensitivity.
Should it be locale sensitive? If so, then code that worked okay in Germany could fritz out when compiled in Turkey (where
I´ is not the uppercase of
i´).Is it locale insensitive? Incur the wrath of those whose sensitivities you trample with your Imperialist notions!
Just testing ... Latin, Greek, Cyrillic: AΑА.
Admin
Wow, what is up with all this hostility toward DBA's? In my previous job I was a DBA and a programmer - I handled the stored procedures, the other 3 dev's handled the java code, we collaborated on schema design and I helped the other dev's optimize their queries for performance. There was none of the bitter rivalry I'm seeing here. It was all sunshine and roses.
Level2 had the right of it - the DBA who altered this script probably noticed it wasn't backing up all the datafiles, wrote a single query which generated this long line, pasted it into the backup script and called it a day. Sure it's ugly, but it's faster & easier than manually verifying that each individual database file matched the pattern in the "fix", and guaranteed to catch every datafile even if some bozo has made a typo in one of the datafile names that makes it not fit the pattern.
TRWTF is that the datafile names OR their pattern get hard-coded into a backup script. Even the "fix" makes the reliability of the backups depend on everyone who uses the database knowing the correct pattern to use for the file names, and remembering to use it each time they make a new datafile. If you have to use OS backup to backup the database files individually (in some DBMS's there are better alternatives, like Oracle's RMAN utility), and for some reason you can't just designate a location for the datafiles and back up the whole DIRECTORY, then at least write a shell script which queries the database for all its datafile names and backs up each file in the resulting list.
captcha: aliquam "aliquot" is one of my favorite words, so when i saw the captcha, how could I resist ?
Admin
Admin
Well, now the real funny WTF is you guys ragging on naggum for "mistakenly" using morale instead of moral. The definitions overlap, even though naggum's usage is not common. http://dictionary.reference.com/browse/morale "Morale Mo`rale", n. [F. See Moral, a.] The moral condition, or the condition in other respects, so far as it is affected by, or dependent upon, moral considerations, such as zeal, spirit, hope, and confidence; mental state, as of a body of men, an army, and the like." Which proves once again that those of you who think you know everything are annoying those of us who are DBAs.
Admin
We worked with a very large insurance company who bought our 'enterprisy' app. The DBA's didnt want to create a database for us or add any tables. I have no idea why, they just liked having their own little fiefdom. Whatever, dudes, you just paid $100k+ for our software... dont use it if you dont want. Less tech support for us.
Admin
I thought he already admitted it was a spelling mistake...?
Addendum (2008-12-17 17:24): The drowning man doth clutch the frail and weakly straw.
Admin
Wait... if you tilt your head just so...
My God! It's full of stars!
Admin
Not Really a WTF. Looks like it was generated by one of those DBA automatic script writing tools.
Admin
Admin
It looks like the original script 'got bent' towards the end.
Admin
must.. obay.. hypno-code
Admin
There's also a typo on the second-last line... ;)
Admin
Am I the only one wondering if Erik had a crucial point to make?
Admin
The script was broken, and that was why Andrew was asked to look at it.
The Other WTF is Andrew fixing the original script, and not giving the more maintainable one to the DBA.
Admin
Admin
What... when I first saw this I thought Firefox had glitched up and smeared the text. Then I looked directly at it. I'm going to have nightmares.
Admin
How many languages allow non-ASCII characters in the code itself?
Admin
The .NET framework, so presumably C#, VB.NET and J# and anything else on that framework, see http://tinyurl.com/3qhgt4 for an example. Google brings up matches in PHP, perl, etc.
Admin
It is a stereogram, isn't it? :)
Admin
Admin
He never does. Hit the Usenet archives in comp.lang.lisp and search for his "contributions". I think he has single-handedly driven off more potential Lisp users than all the misplaced parentheses in all of Lispdom put together.
Admin
Ha!!
Ha!!
Hahaha......
Why imply you have read all the comments if you haven't?
Why would you say something like "Am I the only one to notice...." when you haven't even had a look to make sure noone else has noticed?
The young developers have all the ego problems?? I think clearly you do...By your own admission you didn't read all the comments and then ASSUMED you were smarter than anyone who had posted...What a cocky bastard!!!
Quite a coincidence to just miss two comments - you must have missed more than that!!
Hahahaha...we're the ones with the ego problems...must be because we're not half as smart as you....
I think your not half as smart as you think you are...Actually, yes you are, almost exactly half!!
Admin
You really are a twit, aren't you? You have insisted it is we young cocky developers who have the ego and 'can't be wrong' attitudes, and with each post confirm that you have your own ego problems....
Trust me the world does really like you, really...We believe you are a superstar - you don't have to prove your far superior knowledge to us!!
Admin
Hey man...I think the hostility has been toward one really arrogant DBS, not all DBAs....
though you were him at first...you lucky mans...you lucky...
Admin
I can't help myself ... I have to keep staring into this lovely formatted code, hoping this will be some king of 3D image that will creep up from beneath and give this a meaning :-)
Admin
Have you heard of those brandnew technologies like instruction prefetching and caching, speculative - and out of order execution? They have it in their new Pentium I CPUs.