|
WildFoxMedia posted:It's poo poo like ^^^^ that make me incredibly sad to be associated to PHP. That's what makes you sad to be associated with PHP? Oh the justifications people will make to hide from the truth.
|
# ? Mar 19, 2010 17:08 |
|
|
# ? Apr 27, 2024 13:28 |
|
rt4 posted:Professors: fine for theory, always wrong on code. But I guess that's less funny, so forget I said anything. CS Professors = poo poo.
|
# ? Mar 19, 2010 17:11 |
|
Or his "IT" professor didn't know or give a poo poo about php.
|
# ? Mar 19, 2010 20:01 |
|
evensevenone posted:Or his "IT" professor didn't know or give a poo poo about php. I think it's clear that even if his professor did outright state what the guy claims he did, it's still something you might think to check somehow, if secure passwords are important in what you're doing.
|
# ? Mar 19, 2010 23:33 |
|
http://www.phpfreaks.com/forums/index.php/topic,259938.msg1224497.htmlquote:Which method is the most efficient if you wish to find out if a number of values all exist within an array? But undeterred by his lack of understanding of anything, Q695 joins in: Q695 posted:Actually I dealt with this problem a few years ago, and it was solved with a "%$value%". quote:Uhh... Q695 posted:I guess your method works, but I would've used the strstr (or whatever it is to find spaces) to break up the text until the whole string is used, but your method works well. quote:Thanks for the replies although I have no idea what you are talking about, Q695? Are you talking about a database now? Please explain further. quote:You don't know what he's talking about because he doesn't know what he's talking about. He's talking about mysql, and you are talking about PHP. Q695 posted:I'm talking about querying databases to search for data sets. quote:I know you are. And you are the only one in this thread who is.
|
# ? Mar 20, 2010 03:07 |
|
This guy could get a whole thread. http://www.phpfreaks.com/forums/index.php/topic,261139.msg1236829.html Q695 posted:How could I fix the spacing issues (see src) on http://www.sd52gop.com/ the easiest way possible? Someone points out that the site is pretty unprofessional, and inquires as to whether he's being paid for it: quote:I get paid to make them function, not to do layout. Layout is what the graphic artists do well, and I hate graphics, and things like that. Then the same guy who destroyed him in the other thread comes in, replying to the original post: quote:Very concise explanation. I knew exactly what you were talking about. Then someone actually gives a helpful suggestion: quote:Hi there, Q695 posted:ever think that that is there for a reason, because I do? and the thread caps off with the forum regular: quote:Ya, but your reasons often are based on wrong assumptions.
|
# ? Mar 20, 2010 03:18 |
|
http://www.phpfreaks.com/forums/index.php/topic,240487.0.htmlguy with problem posted:In an attempt to automatically hide my email from spam bots, I have been working on a script that turns all email [addresses?] on a page into ASCII, however I am having trouble with one little bit of code. phpfreaks superstar posted:I like to give each user that can receive e-mail a unique id that pertains to the user e-mail address, then on the back end I run the mail algorythim. phpfreaks superstar posted:There is a built in option for mail to be sent as html, not other things. phpfreaks superstar posted:Are you talking about having a captcha that is required before sending the e-mail to someone, otherwise it runs a loop? I swear this guy's a bot running a rudimentary search engine.
|
# ? Mar 20, 2010 07:25 |
|
Avenging Dentist posted:That's what makes you sad to be associated with PHP? Oh the justifications people will make to hide from the truth. Deciding to poo poo up another thread with your "OMG PHP SUCKS, EVERYONE WHO DOES PHP SUCKS" bullshit?
|
# ? Mar 20, 2010 22:16 |
|
WildFoxMedia posted:Deciding to poo poo up another thread with your "OMG PHP SUCKS, EVERYONE WHO DOES PHP SUCKS" bullshit? Well, at least the first of those statements is correct. I do scripting in PHP and I have a soft spot for it, but I can recognise that it does objectively suck pretty badly. I don't think there should be an argument about it in this thread though.
|
# ? Mar 20, 2010 22:20 |
|
PHP sucks, the speed of light is a constant but time isn't one any longer and apples fall to the ground because of gravity. News at 11.
|
# ? Mar 20, 2010 22:43 |
|
Hammerite posted:I don't think there should be an argument about it in this thread though. To be fair, most anything said by Rasmus Lerdorf (the original designer of PHP) rivals what that Q695 guy says: http://en.wikiquote.org/wiki/Rasmus_Lerdorf My favorite: Rasmus Lerdorf, inventor of the widely-used programming language PHP posted:I'm not a real programmer. I throw together things until it works then I move on. The real programmers will say "yeah it works but you're leaking memory everywhere. Perhaps we should fix that." I'll just restart apache every 10 requests.
|
# ? Mar 21, 2010 04:25 |
|
Avenging Dentist posted:To be fair, most anything said by Rasmus Lerdorf (the original designer of PHP) rivals what that Q695 guy says: http://en.wikiquote.org/wiki/Rasmus_Lerdorf I felt a bit ashamed about being Danish for a second there; but then I remembered that Stroustrup is Danish too, so I figure that evens it out a bit.
|
# ? Mar 21, 2010 04:38 |
|
Avenging Dentist posted:To be fair, most anything said by Rasmus Lerdorf (the original designer of PHP) rivals what that Q695 guy says: http://en.wikiquote.org/wiki/Rasmus_Lerdorf How the gently caress did that guy even managed to get something compiled
|
# ? Mar 21, 2010 15:31 |
|
Parantumaton posted:How the gently caress did that guy even managed to get something compiled He threw things together until it worked, didn't you read the quote?
|
# ? Mar 21, 2010 16:15 |
|
Parantumaton posted:How the gently caress did that guy even managed to get something compiled It's just a Personal Home Page, no big deal.
|
# ? Mar 21, 2010 20:42 |
|
Sorry to interrupt the PHP derail, but this piece of code made me cry after spending the whole day tracking down a hang:code:
|
# ? Mar 22, 2010 21:31 |
|
Sebbe posted:I felt a bit ashamed about being Danish for a second there; but then I remembered that Stroustrup is Danish too, so I figure that evens it out a bit. That only makes it worse.
|
# ? Mar 23, 2010 20:33 |
|
Meganiuma posted:Sorry to interrupt the PHP derail, but this piece of code made me cry after spending the whole day tracking down a hang: The deadlock detection probably isn't smart enough to deal with the ordering. Edit: What OS is this from? My quick poll of an IRC channel filled with devs familiar with Linux, *BSD, VxWorks and Solaris produced no answer. The consensus guess was Mach and/or OS X. pseudorandom name fucked around with this message at 20:55 on Mar 23, 2010 |
# ? Mar 23, 2010 20:43 |
|
I've just devised a new mathematical relation. Ruby on Rails = PHP. From above in this thread: Rasmus Ledorf, creator of PHP posted:I'm not a real programmer. I throw together things until it works then I move on. The real programmers will say "yeah it works but you're leaking memory everywhere. Perhaps we should fix that." I'll just restart apache every 10 requests. From a fun rant: David Hansson, creator of Ruby on Rails posted:(15:11:12) DHH: before fastthread we had ~400 restarts/day
|
# ? Mar 24, 2010 20:24 |
|
Avenging Dentist posted:I've just devised a new mathematical relation. Ruby on Rails = PHP.
|
# ? Mar 24, 2010 20:27 |
|
David Hansson, creator of Ruby on Rails posted:(15:11:22) DHH: now we have perhaps 10
|
# ? Mar 24, 2010 21:03 |
|
Mustach posted:Ah yes, 10 restarts per day, that's perfectly acceptable for a server. well it's better than every 10 requests you have to admit
|
# ? Mar 24, 2010 21:24 |
|
Ryouga Inverse posted:well it's better than every 10 requests you have to admit That all depends on how many requests per day you're getting.
|
# ? Mar 24, 2010 21:26 |
|
I'm probably going to get poo poo on for asking this, but... ...under what circumstances would anyone want to restart a server during daily operation?
|
# ? Mar 24, 2010 21:51 |
|
rt4 posted:I'm probably going to get poo poo on for asking this, but... When it crashes silly!
|
# ? Mar 24, 2010 21:56 |
|
rt4 posted:I'm probably going to get poo poo on for asking this, but... it's easier to crash on an error and restart than recover in some cases. for example: http://en.wikipedia.org/wiki/Crash-only_software
|
# ? Mar 24, 2010 22:05 |
|
rt4 posted:I'm probably going to get poo poo on for asking this, but... We have blades at work which restart if a sensor fails - even temporarily. I can see why it makes sense from an ops perspective, but as a developer whose code is running on there, it terrifies the poo poo out of me that it might do it a certain critical juncture.
|
# ? Mar 24, 2010 22:30 |
|
But we're talking about web apps here, right? To me, a web crash means that particular file that was running ended prematurely; the user gets an error page. Everyone else using it should come out fine (unless they trigger the same error). How could a restart ever fix that? Or are these guys really writing such terrible apps that they just make the whole computer unusable?
|
# ? Mar 24, 2010 22:34 |
|
rt4 posted:How could a restart ever fix that? Or are these guys really writing such terrible apps that they just make the whole computer unusable? In the quote, it's restarting because of absolutely massive amounts of memory leaks in the Rails framework (now at least partly fixed).
|
# ? Mar 24, 2010 22:37 |
|
Avenging Dentist posted:In the quote, it's restarting because of absolutely massive amounts of memory leaks in the Rails framework (now at least partly fixed). To be fair, during the 400 restarts/day period there were also massive leaks in Ruby.
|
# ? Mar 24, 2010 23:47 |
|
Avenging Dentist posted:From a fun rant:
|
# ? Mar 25, 2010 02:49 |
|
Milotic posted:We have blades at work which restart if a sensor fails - even temporarily. I can see why it makes sense from an ops perspective, but as a developer whose code is running on there, it terrifies the poo poo out of me that it might do it a certain critical juncture. But there's always the possibility that your code could be unexpectedly terminated... if it's making you more aware of that fact, that's a good thing. tef posted:it's easier to crash on an error and restart than recover in some cases. There are some failure-resistant CPU architectures that will run everything in duplicate. Run the same thing side by side; if at the end you get two different answers, flush everything and try again.
|
# ? Mar 25, 2010 04:04 |
|
Dijkstracula posted:I'm trying to debate whether this guy is the douchiest of all Ruby developers, or the one Ruby dev I'd actually want to have a beer with. Zed doesn't drink, but he's quite fun to have a beer.
|
# ? Mar 25, 2010 04:05 |
|
Dijkstracula posted:I'm trying to debate whether this guy is the douchiest of all Ruby developers, or the one Ruby dev I'd actually want to have a beer with. They're not mutually exclusive.
|
# ? Mar 25, 2010 07:05 |
|
lol javacode:
|
# ? Mar 25, 2010 22:07 |
|
rt4 posted:But we're talking about web apps here, right? To me, a web crash means that particular file that was running ended prematurely; the user gets an error page. Everyone else using it should come out fine (unless they trigger the same error). In rails case, it was farming out requests to a sea of app servers that were single threaded. Restarting one only killed that request, other requests were unaffected. It's not a good architecture, but it's not as bad as it sounds.
|
# ? Mar 25, 2010 23:13 |
|
Ethnic Hairstyles posted:lol java I must be crazy because even though those lines look complicated at first, they're quite straightforward when you get down to reading them. It just checks every space around the player that they could possibly see without going outside of the bounds of the map. Pretty much everything is well named and everything. The only "horror" is the use of the ? : construct, but this is one of those cases where they actually work.
|
# ? Mar 25, 2010 23:20 |
|
jandrese posted:I must be crazy because even though those lines look complicated at first, they're quite straightforward when you get down to reading them. It just checks every space around the player that they could possibly see without going outside of the bounds of the map. Pretty much everything is well named and everything. You are crazy.
|
# ? Mar 25, 2010 23:30 |
|
jandrese posted:I must be crazy because even though those lines look complicated at first, they're quite straightforward when you get down to reading them. It just checks every space around the player that they could possibly see without going outside of the bounds of the map. Pretty much everything is well named and everything. I'd consider creating well-named local variables to store the results of some of those function calls. player.cursor.getYCoord(), player.cursor.getXCoord, and player.getDistanceOfSight() in particular.
|
# ? Mar 25, 2010 23:35 |
|
|
# ? Apr 27, 2024 13:28 |
|
I would consider keeping the maths out of the loop head
|
# ? Mar 25, 2010 23:36 |