Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
(February 23, 2015 at 6:46 pm)KevinM1 Wrote: Remembering how frustrating it can be to offer programming help online. A PHP newbie on Stack Overflow has a pretty simple problem to solve, but they know nothing about database normalization. So, they want to put editable config data as single strings in a DB, then pull it out, use regular expressions to parse it, then use eval() to run it. The only bad/dumb thing they don't want to do is use globals.
So, I suggested that they look into database normalization and the basics of OOP (both of which are too broad to present as an answer on there) in order to rethink and restructure their architecture. Their response? "Thanks, but what you wrote really has nothing to do with my question. I didn't talk about normalization or OOP in my question." Head desk.
I guess my polite version of "You don't know the fundamentals of web programming, as evidenced by your assertion that the only two ways you can think about approaching the problem is either to hard code the config values in your PHP, or save them as unnormalized strings in a DB to ultimately be eval()'ed. You really need to learn the basics by at least glancing at what I recommended. That will give you the tools to fix your architecture" didn't sink in.
"I do know database normalization. Now can you tell me how to fix my architecture?"
"If you actually knew database normalization, you wouldn't have this problem. That your first instinct was to hard code this config data, or store it in strings to be parsed by regex later shows me that you don't actually know it. Go learn it."
I used to run into that kind of thing all the time when I was a mod on PHPFreaks. Lots of people wanted to be spoon fed an answer that they could just copy/paste into their scripts without thinking. Unless it's something trivial, I don't do that. Especially when someone else gives a really good starting point.
There are a ton of shitty code monkeys out there who can't code themselves out of a paper bag. I'll be damned if I help create more. Learn, or GTFO.
Then again, before my work on the CMS I worked on, my clients were mostly small business owners who were screwed over by people who couldn't even install WordPress (blech) correctly. People who charged $500 or more for something that looked and ran like a turd sandwich. So, shitty wannabe coders aren't all bad.
"I was thirsty for everything, but blood wasn't my style" - Live, "Voodoo Lady"
February 24, 2015 at 6:30 pm (This post was last modified: February 24, 2015 at 6:31 pm by Losty.)
(February 24, 2015 at 5:58 pm)KevinM1 Wrote:
(February 23, 2015 at 6:46 pm)KevinM1 Wrote: Remembering how frustrating it can be to offer programming help online. A PHP newbie on Stack Overflow has a pretty simple problem to solve, but they know nothing about database normalization. So, they want to put editable config data as single strings in a DB, then pull it out, use regular expressions to parse it, then use eval() to run it. The only bad/dumb thing they don't want to do is use globals.
So, I suggested that they look into database normalization and the basics of OOP (both of which are too broad to present as an answer on there) in order to rethink and restructure their architecture. Their response? "Thanks, but what you wrote really has nothing to do with my question. I didn't talk about normalization or OOP in my question." Head desk.
I guess my polite version of "You don't know the fundamentals of web programming, as evidenced by your assertion that the only two ways you can think about approaching the problem is either to hard code the config values in your PHP, or save them as unnormalized strings in a DB to ultimately be eval()'ed. You really need to learn the basics by at least glancing at what I recommended. That will give you the tools to fix your architecture" didn't sink in.
"I do know database normalization. Now can you tell me how to fix my architecture?"
"If you actually knew database normalization, you wouldn't have this problem. That your first instinct was to hard code this config data, or store it in strings to be parsed by regex later shows me that you don't actually know it. Go learn it."
I used to run into that kind of thing all the time when I was a mod on PHPFreaks. Lots of people wanted to be spoon fed an answer that they could just copy/paste into their scripts without thinking. Unless it's something trivial, I don't do that. Especially when someone else gives a really good starting point.
There are a ton of shitty code monkeys out there who can't code themselves out of a paper bag. I'll be damned if I help create more. Learn, or GTFO.
Then again, before my work on the CMS I worked on, my clients were mostly small business owners who were screwed over by people who couldn't even install WordPress (blech) correctly. People who charged $500 or more for something that looked and ran like a turd sandwich. So, shitty wannabe coders aren't all bad.
Translation: dude asking questions about computery stuff knows less about computery stuff than Kevin, but a lot more computery stuff than Losty...hehe
(August 21, 2017 at 11:31 pm)KevinM1 Wrote: "I'm not a troll"
Religious Views: He gay
0/10
Hammy Wrote:and we also have a sheep on our bed underneath as well
(February 24, 2015 at 5:48 pm)Losty Wrote: It's not getting better and I have a feeling someone is going to make me see a doctor about it
Still better than having to manipulate circumstances so that doctors will see you at all: we had to wait for Luckie's fever to intensify before she went to the hospital, just to ensure they'd actually admit her. It ended up being higher than I've ever seen it.
Your health's important, Losty. I'm learning that more and more; don't let your dislike for doctor's appointments get in the way of your recovery.
"YOU take the hard look in the mirror. You are everything that is wrong with this world. The only thing important to you, is you." - ronedee
Want to see more of my writing? Check out my (safe for work!) site, Unprotected Sects!
(February 24, 2015 at 5:48 pm)Losty Wrote: It's not getting better and I have a feeling someone is going to make me see a doctor about it
Still better than having to manipulate circumstances so that doctors will see you at all: we had to wait for Luckie's fever to intensify before she went to the hospital, just to ensure they'd actually admit her. It ended up being higher than I've ever seen it.
Your health's important, Losty. I'm learning that more and more; don't let your dislike for doctor's appointments get in the way of your recovery.
^^^^^
This.
Better a little discomfort now than potentially a whole lot later.
February 24, 2015 at 7:36 pm (This post was last modified: February 24, 2015 at 7:37 pm by Losty.)
(February 24, 2015 at 7:00 pm)Esquilax Wrote:
(February 24, 2015 at 5:48 pm)Losty Wrote: It's not getting better and I have a feeling someone is going to make me see a doctor about it
Still better than having to manipulate circumstances so that doctors will see you at all: we had to wait for Luckie's fever to intensify before she went to the hospital, just to ensure they'd actually admit her. It ended up being higher than I've ever seen it.
Your health's important, Losty. I'm learning that more and more; don't let your dislike for doctor's appointments get in the way of your recovery.
Bah I already get to hear the lecturing. :p
I don't have a dislike for doctors appointments. I had years of seeing doctors and having to be sure to say the exact right things the exact right way and be convincing enough for the scary man sitting next to me to approve. He almost never did. Doctors and hospitals terrify me for irrational reasons, or maybe it's not so irrational.
I know my health is important and I try my best to take care of it, but it seems every time I start to get better I get sick again. I'm just lucky that I don't have it as bad as Luckie, if I had to be in the hospital that often I might have a nervous breakdown.
(August 21, 2017 at 11:31 pm)KevinM1 Wrote: "I'm not a troll"
Religious Views: He gay
0/10
Hammy Wrote:and we also have a sheep on our bed underneath as well
(February 24, 2015 at 7:00 pm)Esquilax Wrote: Still better than having to manipulate circumstances so that doctors will see you at all: we had to wait for Luckie's fever to intensify before she went to the hospital, just to ensure they'd actually admit her. It ended up being higher than I've ever seen it.
Your health's important, Losty. I'm learning that more and more; don't let your dislike for doctor's appointments get in the way of your recovery.
Bah I already get to hear the lecturing. :p
I don't have a dislike for doctors appointments. I had years of seeing doctors and having to be sure to say the exact right things the exact right way and be convincing enough for the scary man sitting next to me to approve. He almost never did. Doctors and hospitals terrify me for irrational reasons, or maybe it's not so irrational.
I know my health is important and I try my best to take care of it, but it seems every time I start to get better I get sick again. I'm just lucky that I don't have it as bad as Luckie, if I had to be in the hospital that often I might have a nervous breakdown.
If you're terrified of doctors, just imagine surgeons.
(February 22, 2015 at 2:27 am)Losty Wrote: Getting sick. Sore throat
Drinking lots of water and about to go to bed.
Have you tried taking two doves and sacrificing one to sky daddy and dipping the other in the blood of the first one and flinging the blood on your wall? That was pretty standard medical practice in the day ... oh wait thats for leprosy!
You don't think you've got leprosy do you?
Maybe you should get a stripped pole and some goats ... naw, that not right either. Sorry, I need to go back and read my old middle eastern goat farmer's almanac again, maybe it's got some amazing cures for what ails you, Xtians here swear by it!
Or just take a couple of Zinc pellets a day. But the lozenges make your throat feel better, too.
"There remain four irreducible objections to religious faith: that it wholly misrepresents the origins of man and the cosmos, that because of this original error it manages to combine the maximum servility with the maximum of solipsism, that it is both the result and the cause of dangerous sexual repression, and that it is ultimately grounded on wish-thinking." ~Christopher Hitchens, god is not Great
PM me your email address to join the Slack chat! I'll give you a taco(or five) if you join!--->There's an app and everything!<---