Skip to main content

Timeline for I thought I posted a good answer

Current License: CC BY-SA 3.0

15 events
when toggle format what by license comment
Mar 20, 2017 at 10:30 history edited CommunityBot
replaced http://meta.stackexchange.com/ with https://meta.stackexchange.com/
Apr 24, 2014 at 13:34 history edited CommunityBot
Migration of MSO links to MSE links
Jun 13, 2012 at 11:43 history edited KevMod CC BY-SA 3.0
added 3 characters in body
Jun 7, 2012 at 1:10 comment added Levi Morrison @Kev You act like PHP core developers don't know that there is a problem. And by the way, if you have the time, we could sure use your help as a core developer.
Jun 5, 2012 at 16:18 history edited KevMod CC BY-SA 3.0
added 186 characters in body
Jun 5, 2012 at 16:02 comment added Kev Mod @Paul I use PHP (I modify/write custom code for our in-house monitoring system - Centreon - which is entirely written in PHP, I also lead a development team that also uses PHP) and we keep this fine article to hand at all times - me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design - My point is, why not do something constructive and hound the PHP core devs to get their own house in order instead of hunting down and vilifying users for even thinking about using a global variable. There is a huge gulf between that and the crap we have to live with in PHP.
Jun 5, 2012 at 15:32 comment added Paul Your answer is assuming the wrong situation. The question stated: "I'm working on a MVC-like super-simple framework for an application." There is no: "maintenance mode with code bases that cannot possibly be fixed by a complete rewrite" to consider. Fight pedantic where it should be fought (in questions that relate to maintenance of legacy code). You are merely fighting for wrong answers to trivial questions.
Jun 5, 2012 at 15:28 comment added user142852 Oh I'm by no means against downvoting, I was simply suggesting a way of finding out if there was no other choice but to use globals (and educate users in passing, too). Unfortunately, this does happen. Some of us have no choice in the matter :(!
Jun 5, 2012 at 15:24 comment added rdlowrey Or, use the downvote button. That's what it's for.
Jun 5, 2012 at 15:22 comment added user142852 And actually, a comment asking the OP: "do you have to use globals?" (provided it wasn't repeated 26 bazillion times) might pave the way for an answer explaining various better ways this could be achieved.
Jun 5, 2012 at 15:22 history edited KevMod CC BY-SA 3.0
added 767 characters in body
Jun 5, 2012 at 15:19 comment added user142852 @rdlowrey a suitable comment underneath, along the lines of "of course, if you can get away without using globals, that would be better" would fix that. Or even "@poster: perhaps you should include a line about avoiding globals where possible". Even better would be a comment with a link to a resource explaining that - for example another SO answer, or a blog post.
Jun 5, 2012 at 15:15 comment added rdlowrey And what happens to hobbyist programmer Joe who is just starting out in PHP? Joe doesn't understand variable scope, but sees this accepted answer and thinks, "oh, great I can just make everything global." There's a difference between not using best-practices and breaking one of the first rules of functional programming.
Jun 5, 2012 at 15:13 comment added Carrie Kendall If that's the case it is of the utmost relevance for OP to explain that.
Jun 5, 2012 at 15:11 history answered KevMod CC BY-SA 3.0