|
|
|
| Hurry! Enter The Daily WTF's OMGWTF2 Contest by June 28th! - Prizes! Fame! Trophies! Do your worst: http://omg2.thedailywtf.com/ |
| « Prev | Page 1 | Page 2 | Next » |
|
FRIST(Y)For some reason this field must not be empty(Y)posted=yes
|
|
"Do you like our new website? Please respond with either yes (Y) or no (N)."
Why is this not working??? |
|
The real WFT good decision boss? Now that's a frist.
|
|
And they implemented WordPress and immediately got hacked.
|
|
Obviously, Chad was more of a leg man.
|
Why would you ever want to split() on (.Y.) ? Personally, I'd rather join() with them. Being a registered user is sad because I don't get any funny captchas on which to comment. |
|
If this had somekind of proper layout, I would not think it would be THAT horrible of a solution to use text files instead of a database.
The upside is obviously that you are not likely to get SQL injections, and if advanced querying, performance and safety isn't needed this might be OK. Yet I cannot seem to wonder that a harder solution was chosen over an easier solution, where you just make a connection and start querying. Having to parse the files manually seems more like feature creep than anything else. CAPTCHA comment: praesent, like a present but with an a |
|
He should have split on the RS character. That is what it there for. Text files are perfectly sensible for when this whole database, internet fad goes away.
|
The horror was that there was no support at all for updating the database except by manual hacking. Opening a database connection is only an easier solution if you already know how to, and know how to set up a database to connect to in the first place. On the other hand, every crappy introduction to any programming language will show you how to do rudimentary text processing, so you don't need to go learn new things in order to do that. Using the tools already in your possession is, if not the easiest path, then certainly the one of least resistance. |
Shouldn't that be something like "Smug TOPS-10 User", then? Unix has always preferred linefeeds and spaces for splitting on. |
|
So Kyle sat there like a dummy, not thinking to suggest a new system himself, until his boss pulled him up for being incompetent?
|
Maybe he figured the boss was like most clueless IT bosses and held on to that old saw "if it's not broke don't fix it" and that he would have been reprimanded/fired for "wasting time" coming up with a new solution instead of getting his work done? We don't know how long he was in the position. Maybe he was the "new guy" and didn't want to stir the pot. |
|
The real WTF is that we really get a sad ending, because most WTFs are sad endings and we didn't get one, even though upon seeing something like 'phptxtdb', we were all expecting it.
public bool IsRealWtf(bool expectation = false) |
No wonder it took so long... base64 encoding images by hand is a real pain! |
|
isn't it a bit unfair to pick on chard when this is clearly an Amateur project?
I though this site only highlighted WFT's from professionals. |
Re: PHPTXTDB
2012-11-19 09:10
•
by
Captcha:nibh (is that one new?)
(unregistered)
|
|
The "string split" solution is not actually such a bad method. Sure, you're gonna get a lot of collisions with "(Y)", but how likely do you think that is if you use "(i|=J7}Y&.`Gb)" ?
|
|
I did something like this once for a university club, but only because they didn't let us have database access of any kind. Except my solution simply wrote blog entries straight to an RSS file and then read that back to display them. And my solution had an editor page so you never needed to manually enter into the text file. And my solution was (obviously) XML instead of '(Y)' delimited. And I used an existing PHP library to read back the RSS file.
OK, so I did something not very similar to this once. |
|
College radio stations tend to be fairly professional organizations. It's not like it's some club that people do on the side- it's a job which people get paid for.
|
|
I've done one of those. It started out being database backed, having made the foolish assumption that I might be able to use a database on a server that clearly already had one installed.
I'm pretty sure the story isn't about mine, though, since it appears to still be running. The last time I had anything to do with it was writing a brief description and apology for the next guy to pick it up. Unless the happy ending was part of the anonymization, of course. |
Surely you mean "perfectly cromulent." |
Being done for a business organization (the college radio), it wasn't an amateur project, but a professional one. This is true even if I'd rather cut my tongue instead of calling that guy a "professional" |
|
"College radio stations are small, but highly technical organizations. "
You smoke what? Seriously, who believes that!?? |
"(i|=J7}Y&.`Gb)"? That's amazing - I've got the same combination on my luggage! |
|
I request the radio station to play some Grimbitch, please...
|
|
How does one even 'overflow the buffer' in PHP? Or is it supposed to mean exhausting the memory?
EDIT: Actually, that might be fgets... But that one he could've fixed by simply removing the second parameter. |
|
This is all perfectly sensible in a BI enviro.....
.... oh never mind. |
You better not to tempt your fate... |
You do. Just look at other's comments. The few CAPTCHAs in use here have all be commented on, many times. So please pick one at random and make your funny comment. But be sure it's the same funny comment made dozens of times before, otherwise some of us might never recover from the shock of the unexpected. CAPTCHA: wisi - I wisi had a funny remark on that. LOL! ROFL! How funny! |
If you can do the JPEG encoding by hand, the additional base64 step is a piece of cake. |
If you're the owner of this site, then very likely, since today. :) Seriously, random strings (long enough) are fine (see MIME boundaries), unless you need to document them and put the documentation in the "database" itself. Then you have the same escaping problem, whatever you use. |
Yes (Y) professionals like Paula Bean. |
Dude... lern 2 em dash. Or at least type two hypens. |
A very clever program would allow a pre-recorded program other than the request slot whereby it can "dynamically" insert based on what the public has requested. Of course you would use some kind of online request list. However to make it more interesting you can't just play the popular songs or the producer's own choices. The purpose of a request section should be to get some less-usual music played on the show. |
|
I wept. Klye, enjoy the programmer's paradise... for all of us!
|
+1 Best comment of the day so far! |
Re: PHPTXTDB
2012-11-19 11:22
•
by
Paul Neumann
(unregistered)
|
But side-- is center, isn't it? |
I think there are a great number of people who have never looked at an ASCII table, so it doesn't occur to them that there are characters outside the range of ones you normally see. Of the ones who do realize this I suspect there is an even smaller proportion who know what the likes of FS, GS, RS, and US are for. The last thing I worked with that actually used them was ISO/IEC 8211. |
Yeah, still in college. By the time Kyle learns how the real world TM operates, he would have said something along the line: "yes, it's possible, you just need to allocate the resources for this". I love enterprise environments. Oh, and Chad maybe read somewhere that ORM's were evil and some how thought that DB's were evil too... for some reason. Finally, TRWTF is using a RDBMS for a CMS. |
Re: PHPTXTDB
2012-11-19 11:31
•
by
just stop it
(unregistered)
|
It's also the path that eventually leads you to believe your hammer is golden. |
|
I've done something similar a long time ago. I was about 14 or 16 back then. Since it was a javascript "app", all the data was initially stored in one big, ugly JS file, like
stuff[0]["name"] = "foobar"; stuff[0]["type"] = "something"; stuff[0]["price"] = "235"; stuff[1]["name"] = "moo"; stuff[1]["type"] = "something else"; stuff[1]["price"] = "42"; so yes, instead of putting it all in a database, or at least in a JSON or XML file, I made the PHP code explode each line at = first, and then at ][ and ], I think. I had no idea about regex either. Also, the JS file was required to have special comments to mark the area to parse. |
|
Hey I'd much rather have PHPTXTDB than PHPBINDB because decoding undocumented arbitrarily-formatted binary data structures is even worse! Yes, I'm looking at you, almost-every-proprietary-software-vendor-out-there.
|
Re: PHPTXTDB
2012-11-19 12:12
•
by
(i|=J7}Y&.`Gb)
(unregistered)
|
(i|=J7}Y&.`Gb) is my name you insensitive clod. |
Yes but you're just one person; you don't expect the entire world to redesign its software systems just to accommodate you, do you? |
|
Chad simply was ahead of his time. Today we call this NoSQL.
|
Re: PHPTXTDB
2012-11-19 12:31
•
by
Some Random Texan
(unregistered)
|
Oh silly me. I thought the request segment was there to let the callers randomize the daily play list, instead of the machine. Expecting people to call in songs that aren't in the top 25 would be madness. After all, people these days think entertainment is supposed to be fed directly to your brain without that harassing superstitious "free will". CAPTCHA: ideo - what happens when an idea fades because the thinker can't hold onto original thought for more than a split second. |
|
“I would be happy to. I’ll make the time.” Is absolutely the right answer
|
Re: PHPTXTDB
2012-11-19 12:39
•
by
not frist at all
(unregistered)
|
I didn't even read the responses to this comment and knew it was some fag linking xkcd. It's not clever. It's not funny. The initial comment was all I needed to know that someone would link the cartoon where the parents iteratively one-up each other on how to screw the school system. It was funny to read when it came out. It's even funny when clicking on the Random button on the site and seeing it. It's NOT funny when someone links to it from a one-sentence post and thinks they're so fucking clever to have discovered xkcd. You probably still use lmgtfy and think you're so damn clever. It means in real life, you're an unoriginal hipster doofus. Got anything to do with sanitizing inputs to a SQL database, etc.? Link to Bobby Tables. Got a nerd-project slow-ass turing machine? Like a minecraft logic circuit from redstone? Link to the one where it's some guy alone in the world making a computer out of rocks. Got a story about password security or encryption? Link to the one where they beat the password out of the guy with a wrench. Fuck off. You're not clever. |
| « Prev | Page 1 | Page 2 | Next » |