![]() ![]() The m// actually works in the same fashion as the q// operator series.you can use any combination of naturally matching characters to act as delimiters for the expression. When above program is executed, it produces the following result − First time is matching For example, to match the character sequence "foo" against the scalar $bar, you might use a statement like this − Example Let’s not forget that IIS only works on Windows – I’d like to see a comparison of known exploits between Windows and pretty much any other OS out there.The match operator m// in Perl, is used to match a string or statement to a regular expression. And despite the article on ASP.net, the reliance on IIS is a major issue. Sites written in PHP can be written very fast indeed which is a consideration. Which means that PHP is great for small sites, alright for medium sites, and not suited to professional and enterprise sites. As a result you need a lot of discipline. inconsistent session_start()’s, lots of cryptic require_once()’s etc.). It’s very easy to write very messy code with it (e.g. The real problem with PHP (speaking as someone who just did a pretty major piece of work in it) is that it’s a bit too free-form. I’ve been using OOP with PHP4, and other than a few minor niggles, there’s been no problems. It doesn’t take the total-OOP style of languages like C# or Java but it’s good enough for most programming needs. The OOP side of things is getting a solid makeover in PHP5. The Asp.net article was a bit too quick to brush it aside. Yes it’s not OOP, but that’s hardly a major issue, and it’s thoroughly documented (possibly the best I’ve ever seen). However, in fairness to it, PHP does have a very good function library. It sort of is on the level with Visual Basic – but it’s an improved pile of crap that I rather use (and see other people use) than any of the other technoligies mentioned above. Heaps of people who shouldn’t be let near programming tasks use it wich gives it a huge community – it’s easy to find ‘help’. ![]() However – the language itself is extremly simple (wich in itself is a limitation – it’s not suitable for complex tasks). It’s a nightmare (just try to use it in a threaded webserver) for many reasons. Now, PHP blows monkey ****s through a straw. The problem, of course, is the syntax hell.įORTRAN had the worst syntax of any language ever in that it was ambigous – of course, at the time, perl was not yet invented. Just try to find one piece of perl code out there (longer than on line) that sports some sort of consistant code base. Perl is quite useful, it’s actually quite powerfull. The list of things I loath in ASP is too long to mention. writing applications ontop of HTML & co.).ĪSP is just horror. On the plus side, JSP and it’s likes is a decent solution to a bad problem (i.e. You need to know quite a lot apart from Java. There are however issues with both JSP, ASP and what not. PHP 5 is… a slightly better lousy hack than it used to be. ASP.NET is incredibly advanced over old, hackish ASP. JSP 2.0 with JSTL (and possibly JSF, which I haven’t had a chance to really try) is amazingly better than old, hackish JSP. At least when Sun ripped off ASP with the original JSP spec, they had the decency to graft it on top of fundamentally sound technologies.īut not only is PHP bad in comparison to other antiquated techniques, it doesn’t even bear comparison with modern development methods. It’s a horrid little hack of a platform that nobody in their right mind would ever want to use - it’s as if somebody saw ASP (a horrid little hack in its own right) and made a cheap rip-off without even bothering to develop a proper language in which to embed their page-template stuff. I mean, c’mon, PHP? Back in 1996, when I was writing CGI apps in Perl, I would’ve turned up my nose at PHP. ![]() That Oracle article was one of the lamest, most preposterous pieces of cheerleading I’ve seen since Dave Massy said that he was afraid to use non-IE browsers for security reasons.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |