- 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
Where's the irritant?
Admin
Admin
FYI, it is true. Every select on the site is done that way. I posted the largest one.
Admin
Admin
I linked the full article with details by Mr. Nielsen in my post. Again, the URL is: http://www.useit.com/alertbox/annoyances.html
Admin
Just a small comment about Huntsville, which is in general quite a decent place. Nazis, psycho nurses, whatever.
Or then again, you might have just edited that one-urler ... in which case, whoops. For no good reason, anonymous posters are verboten bei dem edit-button.
I suppose I should Do The Papadimoulis and backspace over myself. You know what? I'm getting tired of cretinous attempts to prevent spamming. You're right. Following the herd, and insisting that humans hit the "submit" button three or thirteen times over, is brain-damaged.
Just use a proper Bayesian filter, for god's sake. Otherwise, moderate the farking thing.
It's interesting to me that illiterate gibbering morons still seem to get through the Fences set up by Them Wot Know.
Admin
These kind of errors (as well as the AR==>AZ thing) occur in long sequences like this that are created by cut and paste (as this one obviously was).
Even assuming you have to use a language so lame this atrocity is the only solution, cut and paste is still the worst possible way to build the code.
It would have been better to build a simple generator in some kind of scripting language (or even in Excel) to make it, rather than assuming that you can get 3300+ lines of source of this type exactly right.
But I see this a lot: People I work with who don't look beyond the immediate problem at hand for a better solution or even a way to make the immediate (or repetitive) problem easier to solve.
It's like they're wearing horse blinders and can only see straight ahead.
Admin
Brilliant!
Admin
"Last time I looked, there were only 50 states" "50 states, one district, and four territories"
Plus the military codes: AE, AA, and AP.
http://www.usps.com/ncsc/lookups/usps_abbreviations.html
Admin
My god. That is really ,really bad code. Never seen anything worse.
[post attempt #3]
Admin
Whoever wrote this code should be ashamed to call him or herself a programmer.
In fact, I condemn this guilty programmer to hell right now.
Admin
Everyone shoule have a Mate that is a little Utli!!!!!
Admin
Admin
Admin
All these people with their loops and databases. Wouldn't it be much easier with:
There. Three lines, and done.
Admin
Admin
I've been lurking for a long time on tdwtf and this abomination is truly the thing I have to comment on and say it's bad. And I didn't even comment on Paula Bean... sigh How come people like this even get employed, then manage to keep their jobs and then get paid?
Captcha: luctus - how appropriate.
Admin
It's funny how he thinks they even have source control.
Admin
No. pecus, as in "My pecus is bigger than yours."
Admin
Eh - seems fine to me. It works, doesn't it? Minus the typo that resulted in the bug.
Admin
Admin
But, y'know, anybody who thinks Jews are a bad thing -- I'll take their word for it. Try again!
A cursory examination via Google suggests that one or more kismets are, in fact, not awfully good. A decent spam filter would qualify at, say, 98%. As far as I can see, Akismet manages something nearer to 50%.
Well, that's all right, then. Splendid. Particularly when it's applied to a site that actively facilitates urls, and then it complains about them.
Jolly good. Carry on, boys.
Admin
Admin
I'm not inventing these.
Admin
Are you saying that Elvis couldn't cut and paste? I'm sure Colonel Parker could refute you. The man was a genius. Even John Wayne totally failed as a towel-head: the best he could manage was an airport.
Which is quite impressive, I think you'll agree. Unless, of course, this infernal spam-a-lot software catches the fact that I've just posted a URL...
Admin
Insane. This is just like writing a factorial function as follows:
-Itay twitter.com/pembleton
Admin
its not really though is it?
Admin
Admin
Admin
Admin
Oh sure, that problem was simple to fix, but they're sure going to have a lot of fun when they fix the "North Dakota is missing entirely" problem and related issues.
I'm pretty sure he was posting an aside directed as Alex, I assume originally he tried to just post the link and it wouldn't let him so he added in that extra comment to get past the spam filter. I've had to do the same before, it's not particularly unusual or worthy of quite as long and bizarre a rant as that.
Admin
Does that mean Canadians spell it 'ouur variables'? Or does that mean for you 'or variables' and 'our variables' appear indistinguishable? (Mighty Confusing if you ask me)
Admin
Because the comment system works really well too...
(I've found if you let the page load before you submit then most times things are ok. Also, sometimes doing a 'preview' first works too).
That being said.... x2
Admin
Banning anonymous posters from posting links would fix part of the problme (most of us are not too bad on the [ctrl][c], [ctrl][v] combination (and my mouse skills are fast improving).
In fact (hypocritically speaking), banning anonymous posters would eradicate almost all spamming. Frankly, though, I think letting anon people post is good and encourages comment. Giving them only the most basic abilities (ie take away their bbcode) gives them an incentive to join if they are repeat posters.
Admin
New Zealand, moreso....
Admin
And of course, that would have stopped a major war - France would never have invaded Iraq after 9/11. And if they did, history says they would have lost.
Admin
1/2 doz t'other: either you sort on the full state name or the abreviation...both are valid.
Admin
Admin
Unlikely, bots are just as capable of registering accounts as they are of posting spam. If this hypothetical was actually true then forum spam would not be an issue, where it actually plagues forums all over the Internet (even though most require registration to post).
Admin
form_for(@order) do |f| ... f.collection_select(:state, State.all, :id, :shortname) ... end
TRWTF is that he mentions there were even bigger problems. I guess that's the real nightmare stuff.
Captcha: genitus - singelton male genitalia?
Admin
And admins have to have the ability to ban spammy accounts, or rather to set a flag on the account that means that the account silently can't commit changes to the database, so spam just gets black-holed. And it will just make the site look a bit broken to the spammers (goodness knows there's enough sites like that about) instead of actively hostile.
Admin
CYA
Admin
CYA (typo on purpose :D)
Admin
Except writing a lookup table for factorials is not even slightly insane. Although that's not exactly the syntax I'd use, what you have suggested is essentially the fastest factorial function that can be written.
Admin
Admin
Admin
This reminds me of the code I saw for finding a value based upon five measurements. The object was to discard the high and low values, and average the other three.
The guy who wrote the code used Basic and without the use of arrays (arrays, what are those?) took over three pages (60 lines per) to do the calculation. The whole thing was full of if statements and even more variables to calculate the whole thing. Yes, it did the job, but OH! was it UGLY!
p.s. Also difficult. Think ASR33 as a printer.
Admin
Nope, it would be "onze variabelen"...
Admin
Admin
I once wrote a php code that generated a long html form (13k lines). Basically it looked something like this:
for (~150x) print name for (~75x) if x=y print option selected else print option
Back then I though that maybe it would be better to use JS because the options where same for all the 150 names and the generated html/js would be at least 70x smaller but I never got around doing so..
Now I can't imagine how long the php code would have to be if instead of the loops I would have used the same approach as in this article... (Original php code was about 50 lines.)