7 ms·
Does one really need to explain why he switched from PHP to anything?
by zokier 17y ago
Does one really need to explain why he switched from PHP to anything?
- sophacles 17y agoThis sort of thing is still needed. I have a friend who's boss wont let him use anything except c, php, and perl. Any attempts to get python in there are met with resistance and vague hysteria. More posts like these from can slowly lower people's loyalty to php, and contribute to saving my friend and many like him.
- deleted 17y ago[deleted]
- igorgue 17y agoWell, I'm actually in the same problem, but I inject Python every time I can, because is not the same saying: "Can I do this in Python?" than "I already did this in Python!"
- aristus 17y agoThat often works, but if you don't then teach others on the language and your code it will get ripped out the minute after you leave.
- jrockway 17y agoWell, is Perl really a problem? Anything you can do in Python you can do in Perl just as easily; Perl actually has more abstractions available for the programmer than Python. (Grammars in regexes, real closures, coroutines, a metaobject system, etc.) Also, last time I checked the programming language shootout, Perl 5.10 is slightly faster than Python 3. So with that in mind, the logical "step up" from Perl would be something like Haskell. Python is pretty much Perl with different syntax, less features, and the impression that it's "cleaner" because nobody ever bothered using it for "quick and dirty" scripting.
- rbanffy 17y ago"Anything you can do in Python you can do in Perl just as easily" I can't read my Perl code from six months ago like I can read my Python code ages ago. There are far too many ways to do the same thing in Perl, not every one of them obvious. And I disagree with my past self a lot.
- deleted 17y ago[deleted]
- kingkongrevenge 17y agoI'm always a bit puzzled by these claims of unreadable perl. Go find me perl I can't read: http://search.cpan.org/ http://search.cpan.org/ . Where is it?
- plinkplonk 17y ago"I'm always a bit puzzled by these claims of unreadable perl." unreadable for the claimants not for you. "Go find me perl I can't read .. Where is it?" Any language, no matter how obscure, will have some practitioners who can read any code written in it. I am sure someone can say this about APL "What do you mean APL is unreadable? I can read any APL code fragment". To repeat, they are saying they can't read it not that you can't. Don't take it personally. Use what works for you.
- staunch 17y agoIt's a totally bogus claim. The only people that can't read their own Perl after 6 months are the people that don't really know Perl. And by "know" I just mean they read and understood most of Programming Perl/Objected Oriented Perl. Anyone who has studied those two books can understand 99%+ of the code on the CPAN. A lot of people have made a few halfhearted attempts at using Perl and were so put off by the scary looking sigils that they gave up. Then they blame Perl to comfort themselves. It's not them that's too lazy to look past a new kind of syntax, it's the language's fault!
- ojbyrne 17y agoIt's all about the self-promotion. Joe works hard to get his image out there.
- quizbiz 17y agoI still don't understand why php is so frowned upon here. Easy and quick implementation and a low learning curve.
- jamongkad 17y agoSpeaking as someone who is tangled in a love triangle between Python and PHP. I do agree that PHP does have it's strengths. For the programmer just making a living, it's quite ok to etch out just using it. In terms of web applications, what you can accomplish in PHP you can pretty much do in Python. But the difference comes in when you do "care" about the tools you're using. When you want that extra power. When you want something sane to work with. Python and friends give provide that for you. I do love PHP, it's deployment is a snap and the frameworks we have now are kick ass. But Python is such a joy to work with it. And the longer I work with it, it gets harder to come back to PHP.
- jacquesm 17y agoI'm at the stage where the temptation to use PHP for something quick & dirty (a one-off script or so) is still very strong, mainly because I know all the details by heart and can pretty much realize the script as fast as I can type it in. In python it would take me a bit more time and that time is not always available. But the future is clear to me, no more PHP if I can help it. There are plenty of things that irritate me about python, but they are mostly things that you learn about, then it stays learned. PHP keeps throwing up new ways to trip you up even after years of using it. In a way I'm glad to have gone this route, in spite of the learning curve with python (and Django), I can already see it pay off when I see functions shrink to 1/3rd the size they were using PHP. The only thing really still missing from the python under apache model is a multi threaded shared state environment. That would really allow you to blow other solutions out of the water in terms of speed. Now you still have to make that round trip to the database on the next page fetch.
- zaidf 17y agoWhat python framework do you use?