Subj : is PHP a neccessary evil? To : Nightfox From : Khelair Date : Sun Nov 02 2014 03:53 am Re: is PHP a neccessary evil? By: Nightfox to Khelair on Sat Nov 01 2014 10:09:54 Ni> I think STDOUT makes more sense on a command line context, as that's what Ni> STDOUT was designed for. I don't think STDOUT makes that much sense in a Ni> web context. If you were to try to write to STDOUT with PHP, I wonder if Ni> the output would show up on the server's console (if it had a console Ni> window open for the server). Actually I think that I stated that problem incorrectly. If I'm remembering correctly _now_ (which is debatable, as I just had pointed out an issue that I misremembered a few months back here, and my last time using PHP was several years ago), the problem was that it doesn't differentiate between STDOUT and STDERR at all; everything just goes to STDOUT. Feel free to let me know if I'm totally wrong there. :P Anyway, I used PERL & Python a bit, and I believe in those languages you just piped your HTML or otherwise formatted output to STDOUT in order to have it included from the cgi output. Not having STDERR made things a little bit messy, in my opinion. Ni> I started playing with PHP OO syntax about 5 or 6 years ago (with PHP 5, I Ni> think). I didn't think it was too bad. It has the notion of access Ni> levels (private & public), constructors, and class methods, which is more Ni> than what JavaScript has. I was supposed to look at it at one point much more deeply, and then got totally bowled over by a life implosion level event. Since then I've been able to learn JavaScript OO syntax and ability, and you're right about that. I guess what was most off-putting for me back in the day was that PHP didn't have anything resembling the syntax or declaration that I'd previous had to learn in Java. That difference put me off enough so that I didn't look much farther, and probably made some bogus assumptions. Now that I've learned JavaScript OO to an extent, it probably wouldn't be that tough to pick up. I should look at it again. Still, there's something about PHP that just rubs me the wrong way... Maybe I've just listened to too many of the snobby devs around here talking shit about it without making up my own opinions, though. --- þ Synchronet þ Tinfoil Tetrahedron BBS telnet or ssh -p 2222 to tinfoil.synchro.net .