- 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
Well, it's just a select, so I doubt that. Unless they have an evil trigger behind this, but I see no trace of that in this file. I'm also thinking that they didn't have the intelligence to have the idea to even use those...
Admin
Admin
Another example why you shouldn't re-factor just for the beauty or the readability of the new code. There is more than just code involved.
Admin
Its a big "but the system cant read "*"'s"
Then oh, now ive found that "/"'s are a problem.
etc etc.
There are far more elegant ways to do it.
In fact most people would put something like that into one function, CleanUpTheText().
Then you only need to do it once.
Mind you some languages could do a lot of that in a single line.
but structures like that are common in old code where no one wants to fiddle with whats there and works, they just want to add the bit that fixes their issue.
Can be a nightmare to pull them apart, sometimes they are in a special order for a reason, and you can cause major drama's in apps, especially older style apps where they did a lot of processing using text flags instead of setting status's in fields.
That was because earlier versions of the databases had a limited number of fields, so it used to be smart to use things like binary flags in numbers or texts flags for multiple purposes.
Admin
Only the period AD, BC.
Admin
how on earth do you comprehend that in order to write it all in the first place!?
My reading it went like this "SELECT...right its a SQL query...must be a few of them...this doesn't end...must be some other language I don't know...scroll scroll scroll...ORDER BY...WAIT WTF!? scroll back up! FROM documents!? WHERE!! THATS ONE FRIGGIN SQL QUERY!!!!"
Admin
All the line breaks in the world wouldn't be able to add the clarity I need to be able to comprehend this... thing.
Admin
Often the cause of this kind of antipattern is an environment where it's very hard to release actual code due to the amount of sign-off, formal testing, change control, etc etc required, so people sneak functionality in "under the hood" by adding it to config, where the controls are less rigorous.
Admin
Admin
That is the wtf.
Admin
In case you haven't noticed, this is a grown-up place. The fact that you insist on playing in the comments clearly shows that you are too young and too stupid.
Go away and grow up.
Sincerely, Bert Glanstron
Admin
I think that from the moment you need to put comments on a query you HAVE to suspect something is going terribly WRONG
Admin
US ppl are kids, hahaha, want a lollypop, hahaha
Admin
If that isn't the troll calling the ogre green, I don't know what is.
Besides, we know you're not in China because if you were, that "firewall" you mentioned would prevent you from visiting this site where people are free to express any opinions they want; including those that are not favorable toward certain communist regimes.
Admin
Not all sites are redlisted, you republican. Apart from that, I did not mention I am in China right now.
This once again proves american self assurance, were actually your "regime" tries to tackle down free speech. If you are any better than us, then how comes that Interpol hunts for ->Rapists<- recently. If your "regime" is so honest, how comes the biotoxic warheads of Iraq haven't been found to date? Could it be that majority of US has been fooled?
Laugh and get back to your chair, and enjoy the curtain of your own naiveness.
Admin
I almost never cry but this code put tears into my eyes.
Admin
(Well that or TCM now is accompanied by another distortion of real science: New Chinese Logic).
Admin
Wow that is quite the thing to have in a config file. I guess the author of the query discovered COALESCE and got really excited about it.
The number of joins and sub selects is pretty impressive as well, I'd love to see the show plan output for that. How frequently does this query get run?
Admin
I don't see what you're complaining about.. at least it's documented with comments
Admin
RightFax.
I am so sorry.
Admin
To moderators: Please remove all messages by Sock Puppets.
Admin
And still, it takes more than 900 words....
Admin
You can access to my companys code repositories? ;O
Admin
Uhm, TCM is not a distortion of "real" science, it simply is not based on the science we love so much. It is more based on empiricism. Your countertroll is therefore bullshit, especially when you come from a country politicians that have nearly 50% of votes recommend to teach god-evolution and 6k B.C. dinosaurs with equal weight and seriousness as darwin-evolution.
Get over it.
Admin
I have quoted your quote. Pray I don't quote it further.
Admin
an lovin' it.
Admin
Admin
Don't be silly. With proper coding, you can partition values along many entries. Newbie.
Admin
Unfortunately no, it simply parses the string Document.Destination without a leading '1' and without any of the special characters in this set (' ',',','(',')',';','-','-','.','*','','/').
Needless to say, this could probably be done a lot better...
Admin
I'm pretty sure this query takes at least 5 hours to run.
Admin
This looks like it was an entry into the Registry. I'd put it as a default value under the Windows entry; most likely in the local user section.
Admin
The REPLACE REPLACE REPLACE... is hillarious! I couldn't stop laughing. And then the LEFT OUTERS JOINs started... Wow! This is the funniest code I've read.
Admin
Implementation of the "History Eraser Button" found!
Admin
Will you guys please stop bashing my code? It took me years to write!
Admin
Looks like a normal Sharepoint query.
Admin
Looks like a normal Sharepoint query
Admin
You actually make it seem so easy wiyh your presentation but I find this matter to be really something that I thuink I would never understand. It seems too complex and extremely broad for me. I'm looking forward for your next post, I'll try to get the hang of it! https://Bandur-Art.blogspot.com/2024/08/the-ultimate-guide-to-no-mans-sky-mods.html