Comment On Pretty Simple

"It should be pretty simple," David M naïvely stated, "just look in the Agent_ProductLines table, right?" [expand full text]
« PrevPage 1 | Page 2 | Page 3 | Page 4Next »

Re: Pretty Simple

2008-03-05 08:04 • by crphed (unregistered)
OMG MY EYES!

Smash it! Smash it!

2008-03-05 08:08 • by Stu (unregistered)
Wheres my hammer...?

Re: Smash it! Smash it!

2008-03-05 08:13 • by pitchingchris
181220 in reply to 181219
Time to refactor huh ?

Re-factoring time

2008-03-05 08:17 • by Tiran Kenja (unregistered)
Yeah. I was gonna say that.

The 'pretty simple' solution is to rework it into something that isn't so bloody awful.

Re: Pretty Simple

2008-03-05 08:22 • by emil (unregistered)
supposing that 0 is for "can sell":


"select * from agencies where SUBSTRING(strProductLines," . $prodID . ",1) == 0"

Not that bad.

I wonder which is faster: a straight join on three tables (agencies, productLines, agencies_producLines) or this hack ?

Still, it's not what I would do, unless the performance advantage of the SUBSTRING version would be big enough.

Re: Pretty Simple

2008-03-05 08:22 • by T $

"see, take a look at this column, the NVARCHAR(2000) one called strProductLines?"

When I read this line, I knew the kind of fate that awaited me by the end of the article.

Re: Pretty Simple

2008-03-05 08:22 • by spenk
I often wonder at what point does something like this seem to be a good idea. There must be drink / drugs / serious mental impairment involved somewhere.

Re: Pretty Simple

2008-03-05 08:23 • by Mikolaj (unregistered)
I just don't believe!

Re: Pretty Simple

2008-03-05 08:27 • by Hit (unregistered)
I love how, after 2000 product lines get added, the entire system breaks down.

Refactor, ASAP! If you can't, the only recommendation I can give is RUN.

Re: Pretty Simple

2008-03-05 08:27 • by PSWorx
I like how the original developer dismissed a normal database table because it "wastes too much space" - only to replace it with a VARCHAR(2000) column. That's 1337 programming alright!

Then again, the logic behind this is actually "pretty simple" as well, if you think about it:
A table takes up a whole page in phpMyAdmin, but the single strProductLines entry is only one line. Therefore, it must obviously be much more efficient...

Re: Pretty Simple

2008-03-05 08:28 • by ParkinT
They can NEVER sell a product!
"... '0' means they can't sell, '1' means they can't, '-' means there is no such product with that ID..."

I think it is a typo.
Alex, I have failed you!!

Re: Pretty Simple

2008-03-05 08:31 • by mjt (unregistered)
181231 in reply to 181224
Yes, but getting a list of ALL product IDs that an agent can sell? Loop through 2000 selects?

Re: Pretty Simple

2008-03-05 08:31 • by Doctor Fegg (unregistered)
Oh, that's horrid.

That said, some people do reach for relations tables at the slightest provocation... they're not always the best solution. (A bit like XML. Actually, scratch that, XML is almost never the best solution.) But I kinda think they might have been in this case.

Re: Pretty Simple

2008-03-05 08:35 • by Pyro (unregistered)
181233 in reply to 181224
emil:
supposing that 0 is for "can sell":


"select * from agencies where SUBSTRING(strProductLines," . $prodID . ",1) == 0"

Not that bad.

I wonder which is faster: a straight join on three tables (agencies, productLines, agencies_producLines) or this hack ?

Still, it's not what I would do, unless the performance advantage of the SUBSTRING version would be big enough.


SUBSTRING version will require full index search, and will probably be tens if not hundreds times slower then joining on any sane relational DB.
It will be faster if you use flat file as your DB though :)

Re: Pretty Simple

2008-03-05 08:37 • by Shinhan (unregistered)
When I showed this article to my colleague he said this looked elegant and nice.


He also likes to concatenate the foreign keys in one field (comma delimited). This is what I had to write to connect two tables whose only connection were comma delimited foreign keys:


WHERE FIND_IN_SET(SUBSTRING_INDEX(t1.category_array,',',1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',2),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',3),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',4),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',5),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',6),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',7),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',8),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',9),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(t1.category_array,',',-1),t2.category_array)

Re: Pretty Simple

2008-03-05 08:40 • by Anonymous (unregistered)
Of course they should have used XML!

<ProductLines>

<Product_1>
<SellCode>1</SellCode>
</Product_1>
<Product_2>
<SellCode>0</SellCode>
...
</AgentLines>

Re: Pretty Simple

2008-03-05 08:42 • by dpm
181236 in reply to 181218
'0' means they can't sell, '1' means they can't


My God, it's full of teachers!

Re: Pretty Simple

2008-03-05 08:45 • by rdrunner
181237 in reply to 181225
T $:

"see, take a look at this column, the NVARCHAR(2000) one called strProductLines?"

When I read this line, I knew the kind of fate that awaited me by the end of the article.


Ever had such a varchar field promoted to text, since there where some cases where the text would get to long? (they used XML-Fragments to store important (=needs to be searched) data...) ;)

Re: Pretty Simple

2008-03-05 08:47 • by TheRider
181238 in reply to 181236
dpm:

My God, it's full of teachers!
Dave? Is that you? This is HAL speaking.

Re: Pretty Simple

2008-03-05 08:54 • by Ilyak (unregistered)

"select * from agencies where SUBSTRING(strProductLines," . $prodID . ",1) == 0"

That's so PHPish - not knowing anything about parameter substitition and thus always introducing sql injection.

That's why nobody likes PHP, if not PHPist himself.

Re: Pretty Simple

2008-03-05 09:00 • by Anonymous Coward (unregistered)
At this point you move from "facepalm" to "facedesk".

Re: Pretty Simple

2008-03-05 09:00 • by Anon Coward (unregistered)
181241 in reply to 181218
crphed:
OMG MY EYES!

The goggles do nothing!

captcha: saluto

Re: Pretty Simple

2008-03-05 09:04 • by akatherder
It's people like this who made me stop helping out on web design forums. Here is a dramatization:

Austin316_420_69: How would I (insert fairly simple task)?
Akatherder: Just use a (insert fairly simple solution).
Austin316_420_69: Well that won't work because my table is set up like (insert tables configured like this article).
Akatherder: I would redesign your database to look like (insert reasonable suggestions). Then you should be able to solve this issue and other issues more easily.
Austin316_420_69: The database is already created and it works. I just need help with this one thing. I'm not going to redo my whole site because you don't know how to do this.
Akatherder: Well the only way you could do it is by (insert unmaintainable, shameful, half-assed hack).
Austin316_420_69: Awesome thanks!

Re: Pretty Simple

2008-03-05 09:04 • by NO no NO! (unregistered)
I like the substring in where clause the most. Otherwise Refactor or RUN as was already said. I would hang myself if forced to work with such system.

Re: Pretty Simple

2008-03-05 09:05 • by vman (unregistered)
This is where you hunt down the original developer and stab him to death with toothpicks.

Re: Pretty Simple

2008-03-05 09:10 • by Claxon
Pretty simple indeed - just drop the table & burn the backups (if they exist that is - backups can be such a "waste of space") then voila! You get to implement a Brillant new system!

Re: Pretty Simple

2008-03-05 09:12 • by KenW
181249 in reply to 181224
emil:
supposing that 0 is for "can sell":


"select * from agencies where SUBSTRING(strProductLines," . $prodID . ",1) == 0"

Not that bad.


Wrong. It's terrible. It's worse than terrible. The fact that you even suggest it tells me to stay far away from anything you've worked on, or for that matter anything that anyone who ever associated with you worked on.

emil:

I wonder which is faster: a straight join on three tables (agencies, productLines, agencies_producLines) or this hack ?

Still, it's not what I would do, unless the performance advantage of the SUBSTRING version would be big enough.


More evidence that everyone should stay far away from your code.

The SUBSTRING() solution is one of the worst possible ones. It not only completely removes the advantage of indexes (unless you happen to be searching for the first character of the column values), but it requires the massive overhead of a function call for *every single row* in the table. Only some kind of total imbecile would even suggest this as a possible solution; it would take a total moron to even think that this is "Not that bad.".

Please, for the sake of all that's good in the world, find yourself a new line of work far removed from computers. In fact, I'm not even sure you should be allowed near a computer, as a matter of public safety.

Re: Pretty Simple

2008-03-05 09:12 • by Typo (unregistered)
What?? Noone spotted that the beginning of the string

012-3100000100110000001000000103000001001100000-10110--

does not correspond to

Value 011-3100...

I thought you guys were programmers :-)

Re: Pretty Simple

2008-03-05 09:16 • by mister (unregistered)
I would use something like...

SELECT strProductLines FROM Agency WHERE agent_id=$whatever
[transform strProductLines into a comma-delimited list of product_ids we are interested in]
SELECT * FROM Products WHERE product_id IN ($list)

followed by a petition to refactor.

Re: Pretty Simple

2008-03-05 09:22 • by John (unregistered)
181252 in reply to 181224
Are you mad? What is faster joins, or this hack? I think hack is being kind.

With joins you can use indexes which is lightning fast if you get them right. I suppose you could create an functional index (if you can do that with the DB in question), but basically the whole thing sucks.

I amazes me that people come up with these kind of non relational database solutions, and yet use a relational database. If you don't like the way databases work, then DON'T F*&KING USE ONE DICKHEAD.

Re: Pretty Simple

2008-03-05 09:22 • by Laurent (unregistered)
Best way to do so is to add a field in the product line table NVARCHAR(2000) (2000 Agencies should be enough) with the same technics.
Then it's only a matter of modifying programs to update both fields at the same time....

Re: Pretty Simple

2008-03-05 09:26 • by Hit (unregistered)
181255 in reply to 181253
you forgot to close your <sarcasm> tag.

And in the case you were being serious:

If the schema can be changed, and your "solution" assumes it can, then you do it CORRECTLY, and use a damned relation table. You know, like they teach you in Database Design 101.

There is just no excuse for garbage like this.

Re: Pretty Simple

2008-03-05 09:27 • by DiRadical (unregistered)
Standard [url=http://technet.microsoft.com/en-us/library/ms964717.aspx]COBOL[url] just use the redefine statement and some English and you're done

Re: Pretty Simple

2008-03-05 09:27 • by method1
181257 in reply to 181238
TheRider:
dpm:

My God, it's full of teachers!
Dave? Is that you? This is HAL speaking.


Clbuttic

Re: Pretty Simple

2008-03-05 09:29 • by D (unregistered)
181258 in reply to 181234
Shinhan:
When I showed this article to my colleague he said this looked elegant and nice.


He also likes to concatenate the foreign keys in one field (comma delimited). This is what I had to write to connect two tables whose only connection were comma delimited foreign keys:


WHERE FIND_IN_SET(SUBSTRING_INDEX(t1.category_array,',',1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',2),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',3),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',4),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',5),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',6),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',7),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',8),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',9),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(t1.category_array,',',-1),t2.category_array)
Shinhan, I'm forced to say...I'm so so so sorry for you.

Re: Pretty Simple

2008-03-05 09:29 • by John (unregistered)
181259 in reply to 181249
KenW:
emil:
supposing that 0 is for "can sell":


"select * from agencies where SUBSTRING(strProductLines," . $prodID . ",1) == 0"

Not that bad.


Wrong. It's terrible. It's worse than terrible. The fact that you even suggest it tells me to stay far away from anything you've worked on, or for that matter anything that anyone who ever associated with you worked on.

emil:

I wonder which is faster: a straight join on three tables (agencies, productLines, agencies_producLines) or this hack ?

Still, it's not what I would do, unless the performance advantage of the SUBSTRING version would be big enough.


More evidence that everyone should stay far away from your code.

The SUBSTRING() solution is one of the worst possible ones. It not only completely removes the advantage of indexes (unless you happen to be searching for the first character of the column values), but it requires the massive overhead of a function call for *every single row* in the table. Only some kind of total imbecile would even suggest this as a possible solution; it would take a total moron to even think that this is "Not that bad.".

Please, for the sake of all that's good in the world, find yourself a new line of work far removed from computers. In fact, I'm not even sure you should be allowed near a computer, as a matter of public safety.


You tell him KenW! For the sake of us all, either:
A) Buy a book on DB design and SQL and learn how to do it properly.
B) If you can't afford a book, search the web on how to do it properly.
C) Stay away from anything with database in it.
D) To be extra safe, don't touch a computer.
E) Have a lobotomy so you can complete the process of being a total moron.

Re: Pretty Simple

2008-03-05 09:31 • by sweavo (unregistered)
181261 in reply to 181249
KenW:
Only some kind of total imbecile would even suggest this as a possible solution; it would take a total moron to even think that this is "Not that bad.".


non sequitur. your facts are uncoordinated.

The solution is WRONG and BAD but it's only ignorance, not morony, that is necessary to fail to appreciate that.

Re: Pretty Simple

2008-03-05 09:31 • by FredSaw
"Should be" and "is" are not always the same.

Re: Pretty Simple

2008-03-05 09:31 • by John (unregistered)
181263 in reply to 181234
Shinhan:
When I showed this article to my colleague he said this looked elegant and nice.


He also likes to concatenate the foreign keys in one field (comma delimited). This is what I had to write to connect two tables whose only connection were comma delimited foreign keys:


WHERE FIND_IN_SET(SUBSTRING_INDEX(t1.category_array,',',1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',2),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',3),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',4),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',5),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',6),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',7),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',8),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',9),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(t1.category_array,',',-1),t2.category_array)


Tell your colleague I think it is a idiot. Actually, give me his full name so I can add him to my list of morons to never work with.

Re: Pretty Simple

2008-03-05 09:35 • by John (unregistered)
181264 in reply to 181263
John:
Shinhan:
When I showed this article to my colleague he said this looked elegant and nice.


He also likes to concatenate the foreign keys in one field (comma delimited). This is what I had to write to connect two tables whose only connection were comma delimited foreign keys:


WHERE FIND_IN_SET(SUBSTRING_INDEX(t1.category_array,',',1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',2),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',3),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',4),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',5),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',6),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',7),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',8),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(SUBSTRING_INDEX(t1.category_array,',',9),',',-1),t2.category_array)
OR FIND_IN_SET(SUBSTRING_INDEX(t1.category_array,',',-1),t2.category_array)


Tell your colleague I think it is a idiot. Actually, give me his full name so I can add him to my list of morons to never work with.


Crap, now I look like a moron because I can't type :-P That should have been "Tell your colleague I think HE is AN idiot"

What a moron... I think that maybe all this stupidity is somehow contagious.

Re: Pretty Simple

2008-03-05 09:39 • by StarLite
181266 in reply to 181243
akatherder:
It's people like this who made me stop helping out on web design forums. Here is a dramatization:

Austin316_420_69: How would I (insert fairly simple task)?
Akatherder: Just use a (insert fairly simple solution).
Austin316_420_69: Well that won't work because my table is set up like (insert tables configured like this article).
Akatherder: I would redesign your database to look like (insert reasonable suggestions). Then you should be able to solve this issue and other issues more easily.
Austin316_420_69: The database is already created and it works. I just need help with this one thing. I'm not going to redo my whole site because you don't know how to do this.
Akatherder: Well the only way you could do it is by (insert unmaintainable, shameful, half-assed hack).
Austin316_420_69: Awesome thanks!


I have been that Austin316_420_69 guy a few times back in the days I was still in college...

"I just need to get this fixed and it is finally working", and someone (actually all 7 guys I asked) told me to redisign.

I've learned since those days.. a bit ;)

Re: Pretty Simple

2008-03-05 09:39 • by Anonymous User (unregistered)
181267 in reply to 181243
It's people like this who made me stop helping out on web design forums. Here is a dramatization:

Austin316_420_69: How would I (insert fairly simple task)?
Akatherder: Just use a (insert fairly simple solution).
Austin316_420_69: Well that won't work because my table is set up like (insert tables configured like this article).


At this point you should just quote Pounding A Nail: Old Shoe or Glass Bottle? and a link to the respective basic literature.

captcha: ingenium

Re: Pretty Simple

2008-03-05 09:40 • by NadiaNyce (unregistered)
Some programmers do things like this because they believe it hedges against termination, since most people will find it almost impossible to alter their programs without screwing something up.

Re: Pretty Simple

2008-03-05 09:40 • by pscs
181269 in reply to 181249
KenW:
emil:
supposing that 0 is for "can sell":


"select * from agencies where SUBSTRING(strProductLines," . $prodID . ",1) == 0"

Not that bad.


Wrong. It's terrible. It's worse than terrible. The fact that you even suggest it tells me to stay far away from anything you've worked on, or for that matter anything that anyone who ever associated with you worked on.


I think that's a bit harsh. It would work, and wouldn't need the database schema to be modified. I can't think of any significantly better way of doing the required task without modifying the database schema (which would probably break other code and need lots of refactoring of existing code).

No one else here has come up with a better answer. I'm sure they'd like to refactor, but if that's not possible ("we need this by tomorrow") and this feature isn't going to be used much, and the database isn't that busy, then the substring idea would work, until they can schedule in some refactoring.

Re: Smash it! Smash it!

2008-03-05 09:42 • by Barf 4Eva (unregistered)
181270 in reply to 181220
pitchingchris:
Time to refactor huh ?


om my god yes

Re: Pretty Simple

2008-03-05 09:42 • by Phleabo (unregistered)
181272 in reply to 181239
Ilyak:

"select * from agencies where SUBSTRING(strProductLines," . $prodID . ",1) == 0"

That's so PHPish - not knowing anything about parameter substitition and thus always introducing sql injection.

That's why nobody likes PHP, if not PHPist himself.


You're probably even a worse idiot, if you're blaming PHP for this. It's unsafe practices by the programmer that make this an issue, not the language. I wouldn't hire you as a programmer, just because of that kind of golden hammer crap.

Re: Pretty Simple

2008-03-05 09:43 • by emil (unregistered)
181273 in reply to 181249
oh, how about a table with 25 agencies (not many records to iterate over), and another table with 2000 active products, plus 13 states for each product, in an application that was supposed to manage the sale of only one product initially and with 2 days time allowed for upgrade to an application supposed to manage more than one product.

The greatest issue with that solution is not searching, concurrent updates. That would be a bitch to write, so I believe the author did not have much choice in the matter due to other constraints.

I did not say this is the best solution, but that finding the agencies that can sell a product is not that difficult.

Take a break and breathe ... I have seen and had to maintain much worse in my short life. You'll do too and and at some point will have to relax and choose quiet resignation and a "let's get things moving" attitude over database normalization, Induced Tourette Syndrome and homicidal rage.

Re: Pretty Simple

2008-03-05 09:46 • by Jay (unregistered)
Performance could be very efficient if we just create a few appropriate indexes, like:


create index agent_prod_1 on agency(substring(strProductLines,1,1);
create index agent_prod_2 on agency(substring(strProductLines,2,1);
create index agent_prod_3 on agency(substring(strProductLines,3,1);
... etc ...


And think of the advantages in human readability! Instead of having to figure out some cryptic thing like


Agency | Product Line | Access |
---------+------------------+-------------+
Denver | bicycles | In-training |
Richmond | bobble-heads | No |
Austin | nuclear warheads | Sell |


etc, all you have to do is remember that, say, bicycles is product line number 204, count over to column number 204, note that "6" means in-training, and you're done! And please, don't tell me people will lose count finding column number 204. As long as you keep in mind that column 203 is "potted plants" and you remember that OF COURSE the Denver office would be code "8" on potted plants, then if you see that the column before the one you're looking at is not an 8 then you must have mis-counted. If you're too lazy to do a little work to figure it out, well ...

At least, that's the sort of explanation I typically get when I ask about crazy designs like this. Usually with an "are you stupid or just a trouble-maker?" tone of voice.

Re: Pretty Simple

2008-03-05 09:58 • by Troy McClure (unregistered)
181276 in reply to 181274
Horrible.

So if a gap is presented in the sequence from shutdown or rollbacks, then you will just get a bunch of

------

Baby Jesus cries for the original developer of this database.

Re: Pretty Simple

2008-03-05 10:06 • by Migala (unregistered)
181280 in reply to 181243
akatherder:
It's people like this who made me stop helping out on web design forums. Here is a dramatization:

Austin316_420_69: How would I (insert fairly simple task)?
Akatherder: Just use a (insert fairly simple solution).
Austin316_420_69: Well that won't work because my table is set up like (insert tables configured like this article).
Akatherder: I would redesign your database to look like (insert reasonable suggestions). Then you should be able to solve this issue and other issues more easily.
Austin316_420_69: The database is already created and it works. I just need help with this one thing. I'm not going to redo my whole site because you don't know how to do this.
Akatherder: Well the only way you could do it is by (insert unmaintainable, shameful, half-assed hack).
Austin316_420_69: Awesome thanks!


Follow up:

Some_other_guy: Why the ^&#@ did you (insert unmaintainable, shameful, half-assed hack)?
Austin316_420_69: What's wrong with it? Akatherder told me I should do it like that!
Some_other_guy rolls eyes...
« PrevPage 1 | Page 2 | Page 3 | Page 4Next »

Add Comment