ASP vs. PHP

Status
Not open for further replies.

krimhorn

Ars Legatus Legionis
39,865
[url=http:/civis/viewtopic.php?p=27388781#p27388781:10ellitz said:
Violynne[/url]":10ellitz]For us, the biggest boost to .NET was web clients using AJAX, which removed a considerable number of postbacks.
The AJAX toolkit for ASP.NET Webforms was a hacky solution (on top of a hacky web dev solution) to get something that looked like AJAX working in webforms. If you like working with real AJAX then moving to ASP.NET MVC will feel a whole lot better than adding UpdatePanels into your forms, cluttering up your pages and making reading your pages a whole lot harder.

The most basic use of ASP.NET MVC would be a single controller, multiple actions/views to present a basic app. It's not really great but you could fairly easily convert a basic webforms app into MVC using that pattern. That's probably the best way to get started. I can say that when I first started working with ASP.NET MVC it took a bit of a mindset switch but once I'd done that the framework is so much easier to work with than WebForms. I went from never having used MVC to rebuilding an app that took a couple of months of work the first time (in WebForms) in about two weeks. The first one was learning, the second was implementing.

IF you're happy using HTML and fairly static links between pages then you could build a front-end that doesn't worry about routing and use query strings into a WebAPI controller/action via AJAX to get data onto/from your pages. WebAPI lets you use all of the good AJAX oriented aspects of MVC without worrying about the additional components that handle page routing and views.
 

mortress

Seniorius Lurkius
6
Web Developer by trade, 9 yrs paid. Hobbyist since Webtvs came out and yes, I had a geocities site in the old days - who didn't.
There is only one logical reason to use .net and that's that you want to package the software as an executable and resell it.
Otherwise PHP is competent for everything I've done. The language itself has more character which can annoy some purists like the use of camel case and underscore in function names but I've built some awesome sites using PHP. I've even made them for financial based clients where numbers are crucial.
I used .net for about a year and found it annoying. The form controls bugged me and the debugging was slower that what I could do in PHP. Also, the grid type of controls can cause validation errors and I like to have a valid site when tested against W3C standards. When given a choice, I prefer PHP. I've used it with Oracle, MS SQL, and MySQL databases too without issue. I really like the cURL functions it has too and the multiple XML parsing libraries. As for AJAX, I use that too. I use the standards method of httprequest - there is no add-on or extra for it. It's part of what the standards board gives us.

In college they taught us ASP (classic) and acted like PHP wasn't even worth a mention. I had to learn it once I left the textbooks. Because it gets mentioned in textbooks, I think more people will tell you to use .net.

Especially for a beginner though, I see many similarities in the basic usage of perl, javascript, and php so those 3 learned together give you lots of cross-over. Whatever you do, don't bloat your site up with Javascript libraries like jQuery. Learn real Javascript and you'll learn the power of the DOM then be king of your scripting instead of waiting on a library to implement something. You don't need that abstraction layer - IE 10 and 11 are catching up to the standards after all their years of being slack.
 

krimhorn

Ars Legatus Legionis
39,865
[url=http:/civis/viewtopic.php?p=27417147#p27417147:2v467n20 said:
SituationSoap[/url]":2v467n20]That was a joke post, right?
Either that or he writes "Microsoft" with a $.

That's the only reason that I can think of to choose PHP over ASP.NET if a Microsoft stack is in play or likely to be used.

PHP over Classic ASP? Sure.
PHP over ASP.NET webforms? Ok, they're both terrible but in different ways.
PHP over ASP.NET MVC? :confused: *


*Again, if a Microsoft stack is either involved or likely to be involved. I wouldn't expect someone who's expecting to run a non-Microsoft stack to contort themselves to use a .NET technology. At least, not until Mono is further improved.
 

mortress

Seniorius Lurkius
6
[url=http:/civis/viewtopic.php?p=27418173#p27418173:1zvoh7pz said:
SituationSoap[/url]":1zvoh7pz]I figured it might be a joke at "the language has some character", as if a poorly designed and horribly engineered standard library is somehow a redeeming characteristic that some people just don't get.
Oh yipee. My first post on this forum and I found someone who wants to argue. Well, two of you.

You mean a "poorly designed and horribly engineered standard library is somehow a redeeming characteristic" in the first two iterations of ASP can be wiped away because you both seem to see MVC as your savior?

I gave good reasons why I liked PHP and it does perform even if you don't like the way it's built or structured.

What is this love of MVC anyway. There won't be three people working on this one person's code. Can you explain why they need MVC at all? They don't have a team where they are trying to work in different places which is the heart of why you want separation. It's not specific to MS you know, it does exist in PHP too. The whole Zend Framework which started in PHP is MVC. We have a site where someone is using that and no less than 4 developers have hated it. MVC to me says bloat. Why do you need thousands of files for a 50 page website. For me, I'd have to overcome the use of the term as if it's superior without reasoning behind it especially for a solo project. Just saying it's better because MS is involved and not PHP isn't reason enough.

I'm not a MS hater. I'm probably the only person saying anything nice about them finally supporting SVG in the recent IE versions - all everyone else screams is more canvas support.
 

CanSpice

Ars Tribunus Angusticlavius
7,147
[url=http:/civis/viewtopic.php?p=27418877#p27418877:1u9jtdc5 said:
mortress[/url]":1u9jtdc5]Oh yipee. My first post on this forum and I found someone who wants to argue. Well, two of you.

I had written up a response to your first post but didn't submit it because I thought it was too negative.

You mean a "poorly designed and horribly engineered standard library is somehow a redeeming characteristic" in the first two iterations of ASP can be wiped away because you both seem to see MVC as your savior?

"First two" as in "not the current version"? Because the current version of PHP is still poorly designed and horribly engineered.

I gave good reasons why I liked PHP and it does perform even if you don't like the way it's built or structured.

None of the reasons you gave are unique to PHP. You can write standards-compliant webpages in any language, not just PHP, just as you can write web pages that aren't standards-compliant in PHP. You can connect to multiple types of databases in nearly any language, not just PHP. You can do cURL-like commands in nearly any language, not just PHP. And I'm not sure why multiple XML-parsing libraries are a good thing. Why not just one? Which do you choose under which conditions?

Thousands of files for a fifty-page website? Strawman much? If you or your fellow developers think you need thousands of files for a fifty-page website, well, you're doing it wrong.

And the whole thing about "Whatever you do, don't bloat your site up with Javascript libraries like jQuery." -- seriously? Your posts reek of Poe's Law.
 

wallinbl

Ars Legatus Legionis
14,336
Subscriptor
[url=http:/civis/viewtopic.php?p=27414359#p27414359:2ffkq64f said:
mortress[/url]":2ffkq64f]In college they taught us ASP (classic) and acted like PHP wasn't even worth a mention. I had to learn it once I left the textbooks. Because it gets mentioned in textbooks, I think more people will tell you to use .net.
What textbooks teach .net? I've seen c and java in CS texts, but haven't seen c#, and even if it were there, I doubt they'd be teaching the framework (.Net).
 

mcmnky

Ars Tribunus Militum
2,625
Subscriptor
[url=http:/civis/viewtopic.php?p=27419421#p27419421:2pixlo02 said:
wallinbl[/url]":2pixlo02]
[url=http:/civis/viewtopic.php?p=27414359#p27414359:2pixlo02 said:
mortress[/url]":2pixlo02]In college they taught us ASP (classic) and acted like PHP wasn't even worth a mention. I had to learn it once I left the textbooks. Because it gets mentioned in textbooks, I think more people will tell you to use .net.
What textbooks teach .net? I've seen c and java in CS texts, but haven't seen c#, and even if it were there, I doubt they'd be teaching the framework (.Net).

I had textbooks in school using c# and included the .Net framework.

Of course, it was a course in c# and .Net, and the textbooks were just Microsoft Press books. ;)

But yeah, I doubt there are many folks teaching CS or general algorithms using c#.

I'm more concerned about the timing. Teaching ASP (classic) after the introduction of .Net is negligence.
 

krimhorn

Ars Legatus Legionis
39,865
[url=http:/civis/viewtopic.php?p=27418877#p27418877:1njwa875 said:
mortress[/url]":1njwa875]
You mean a "poorly designed and horribly engineered standard library is somehow a redeeming characteristic" in the first two iterations of ASP can be wiped away because you both seem to see MVC as your savior?
For one my post did not ignore "the first two iterations" (ASP and ASP.NET Webforms). In fact I gave you that in the choice between Classic ASP and PHP I'd lean towards PHP. In the Webforms vs PHP battle it's not quite so clear cut. Both are terrible in different ways. PHP falls down in structuring the developer toward clean, clear and under control maintainable server code while ASP.NET Webforms falls down hard WRT HTML "correctness" and its Postback heavy, event-driven server model.

What is this love of MVC anyway. There won't be three people working on this one person's code. Can you explain why they need MVC at all?
I believe that most of us indicated that ASP.NET MVC (BTWs if this were Stack Overflow you'd be getting shouted down that it's not "MVC". "MVC" is a design pattern and ASP.NET MVC is a framework that implements that design pattern ;) ) instead recommending WebAPI. WebAPI is lighterweight than ASP.NET MVC (it has the full request pipeline support but otherwise it's only a light routing engine and controller factory) while still providing the core server-side functionality.

They don't have a team where they are trying to work in different places which is the heart of why you want separation.
I'd argue maintenance, extensibility and reusability are all bigger and more important reasons to have separation of concerns then you have more than one developer working on a project. SoC is important no matter the size of the team or project and the needs of the project will drive just how fully you develop with the SOLID principles in mind.

It's not specific to MS you know, it does exist in PHP too. The whole Zend Framework which started in PHP is MVC.
Which is why I softly took you to task above for simply referring to "MVC" ;)

We have a site where someone is using that and no less than 4 developers have hated it.
Without knowing the developers or the framework I can't provide reason why they would have hated it. When I transitioned from ASP.NET to ASP.NET MVC it was night and day. Instead of spending days developing a page that was maintainable, extensible and robust (generally using the MVP pattern) it took hours. Doing so within the pattern provided (breaking from the MVC pattern will do nothing but break your application). That adherence to a pattern may be why the developers you worked with hated the MVC implementation that was used. I've found that a lot of older, fixed-in-their-ways programmers that didn't learn/gain experience with design patterns tend to dislike being forced to use a pattern. Even when someone can demonstrate to them the importance of same.

MVC to me says bloat. Why do you need thousands of files for a 50 page website
Thousands of files? At its core an MVC pattern doesn't require any more files in your website than a well-designed application is already going to have. Per page you'll have an HTML, Javascript and CSS file. You'll have a Model and Controller code file per route (models won't necessarily require a unique file if you've designed things with reusability in mind). If you're using .NET you'll have a few application setup files (global.asax and routeConfig.cs) and, of course, the application configuration file (web.config). You'll include a few framework references that provide the webserver hooks and you're off to the races.
 

krimhorn

Ars Legatus Legionis
39,865
[url=http:/civis/viewtopic.php?p=27419421#p27419421:2ns39l91 said:
wallinbl[/url]":2ns39l91]What textbooks teach .net? I've seen c and java in CS texts, but haven't seen c#, and even if it were there, I doubt they'd be teaching the framework (.Net).
Teaching a general programming course you won't often see a language that's so framework dependent as C# (or ObjC, Swift, etc.). It's kind of like teaching GUI development a decade or so ago was: you really didn't see it as they focused on the theory of programming instead of practical applications. Though you might have had a few weeks learning how to learn a GUI framework (my Uni spent all of a week with MFC).
 

krimhorn

Ars Legatus Legionis
39,865
[url=http:/civis/viewtopic.php?p=27420443#p27420443:1bi2q0gx said:
mortress[/url]":1bi2q0gx]Uh yeah. I see that this is not the place for me in these forums.
Someone questioned learning Javascript over using jQuery.
We are never - ever going to agree on anything. That is just ridiculous. It's unbelievable to read.
I'm sorry, I mistook this place for something other than it was.
If you thought that this was a place that encouraged random, unsupported, claims for or against any given technology and would embrace you for a random pro PHP post with no substance then, yeah, this isn't the place that you thought it was. You came in here with what amounts to rejecting .NET based web technologies with little more than "PHP is just alright for me" (set that to this tune ;) ) while leaning on an extremely weak Argument from Authority ("Web Developer by trade, 9 yrs paid.").

You want to support PHP in the question? Great! Support your argument. You want to support PHP over .NET based technologies? Great! Support your argument. "I used .net for about a year and found it annoying." is not supporting your argument. The next couple of sentences come close to a start at supporting your argument but they aren't specific enough. For one, no one here's suggesting using Classic ASP or even ASP.NET Webforms. Those of us who were advocating .NET technologies were advocating the modern ASP.NET MVC or WebAPI. Both of which completely cover your concerns about HTML validation and poor server-side controls (you have full control over the HTML generated in ASP.NET MVC and WebAPI is nothing more than a server-side API framework, so you're using as pure HTML as you want). You'll have to become conversant in the technologies involved in the discussion if you want to argue against them.

As to your Javascript comment
Whatever you do, don't bloat your site up with Javascript libraries like jQuery. Learn real Javascript and you'll learn the power of the DOM then be king of your scripting instead of waiting on a library to implement something.
shows a very real and disturbing ignorance of simple, good development practices. You want to advocate really learning Javascript? That's great. Advocate it for the right reasons. Knowing how to effectively use Javascript closures is important to writing good Javascript is just one good argument for that. The above quote is most definitely not. Libraries exist to minimize redundant code, minimize boilerplate, prevent developers from reimplementing solved problems and help them avoid mistakes that they might not have seen but a well-designed and tested library will have. Even if you were re-implementing everything in JQuery or other libraries yourself you should be implementing all of that into a set of libraries for yourself for all of the reasons above.

Ultimately, it's about the simple fact that most of us (yourself included) are not as smart as we think we are. In fact we're most definitely not as smart as the teams of developers that work on many of these open-source libraries. Specifically when we consider them in the aggregate. How are you going to solve the problem of having to wait on the DOM to be fully loaded and ready before you begin operating on it with Javascript code? It's probably not going to be as good a solution as JQuery has and it's likely to miss cases that JQuery, with it's long standing development with many people looking over, has considered. It's also going to be a considerable amount of work when $(document).ready(function() { }); serves to get you into solving your domain specific problems much, much faster.

If you've made it this far, congradulations. You've just read through the kind of post (though perhaps a bit longer winded than many) we expect here. Present your argument or position and support it. I guarantee that you will find people who will disagree with you, but I also guarantee that many of those who do disagree with you will respect your position if you take the time to support it with a clear argument and (when applicable) evidence. You got snarky follow-up posts because your post was bad (for reasons already stated) and because we simply couldn't tell what you were trying to say (other than PHP > C#?). Take the time in the future to write good posts and, while I can't guarantee there won't be snark (hello, this is the internet ;) ), you will find a better overall reception than with your first post here. Even when everybody disagrees with you. Which will happen. From time to time.

Oh, and Welcome to Ars.
 

wallinbl

Ars Legatus Legionis
14,336
Subscriptor
[url=http:/civis/viewtopic.php?p=27420443#p27420443:1nq7nu3b said:
mortress[/url]":1nq7nu3b]Uh yeah. I see that this is not the place for me in these forums.
Someone questioned learning Javascript over using jQuery.
We are never - ever going to agree on anything. That is just ridiculous. It's unbelievable to read.
I'm sorry, I mistook this place for something other than it was.
You've made a number of rash statements that you haven't supported at all. I'm really not sure what you expected. Many of the people posting in this forum know quite a lot, and you're not going to get away with making unsubstantiated comments, especially if those comments are going against the general consensus. If you want to engage in a more detailed technical discussion about the merits of PHP vs ASP.Net MVC, you'll get a good one here, provided that someone is around to hold up the PHP end.
 
[url=http:/civis/viewtopic.php?p=27418877#p27418877:1p2n97zm said:
mortress[/url]":1p2n97zm]seem to see MVC as your savior?

I just wanted to touch on this, a second, because I think it's worth elucidating: I don't see ASP.NET MVC as any kind of a savior. I've got working code in my past written in Perl, PHP, Java, Clojure, Scala, Python, Ruby, Javascript, C++, C# and Visual Basic. That's not the longest or most impressive list of languages anyone's ever used, but it also qualifies me to say that PHP is particularly bad. It's not the only bad language I've ever used (if you'd scrolled back to the first page, you would've seen me bagging on perl in this thread). I don't write any .NET right now, because my whole technology stack is (and is likely to stay) on Linux. I don't view ASP.NET MVC as any kind of savior. It's a solid framework, the one time I used it I was able to throw together a fully functional website with database backing in a couple of nights without any prior practice. Given the choice, I write my personal code in python. My professional code right now is written in Java, though I'll go back to python next week.

Not liking PHP doesn't mean that I'm some kind of hater or abject lover of a particular framework, it just means that I've got a solid, intelligent view of the shortcomings of individual languages and I recognize that PHP has many, many more than its share. No one here is going to coddle your, or the language you love to write. I'm just about the only passionate defender of ruby around these parts, but that doesn't mean that people here are haters or fans of something else, it just means that they have different opinions than I do. Someone disagreeing with you on the internet is not a bad thing. You throwing a hissy fit about it and quitting the board before you're even established is.
 
[url=http:/civis/viewtopic.php?p=27424389#p27424389:luiliaid said:
Horatio[/url]":luiliaid]If you reject jQuery, and you claim to be a "web developer (9 years paid)", then you are unhireable.

Yeah. I mean, I'm not on the anti-php bandwagon that most developers extol, it works for what little you "should" use it for and it is free - (this is coming from a primarily .NET developer) - but you lost me at the jQuery part.

If you're doing anything in javascript and you're not using jQuery, then you really and truly do not know javascript. Seriously.

Oh, and welcome to Ars. ;)
 
[url=http:/civis/viewtopic.php?p=27425671#p27425671:1ea01eb0 said:
DSF1942[/url]":1ea01eb0]
[url=http:/civis/viewtopic.php?p=27424389#p27424389:1ea01eb0 said:
Horatio[/url]":1ea01eb0]If you reject jQuery, and you claim to be a "web developer (9 years paid)", then you are unhireable.

Yeah. I mean, I'm not on the anti-php bandwagon that most developers extol, it works for what little you "should" use it for and it is free - (this is coming from a primarily .NET developer) - but you lost me at the jQuery part.

If you're doing anything in javascript and you're not using jQuery, then you really and truly do not know javascript. Seriously.

Oh, and welcome to Ars. ;)

jQuery is a dom manipulation and animation library; there are other JS frameworks that are far better for other use cases. When you start writing client-server apps with over ~1k lines of code jQuery becomes a mess.
 

Denzinger

Ars Centurion
379
Subscriptor++
[url=http:/civis/viewtopic.php?p=27419899#p27419899:1uxi5kxu said:
Pont[/url]":1uxi5kxu]
I'm more concerned about the timing. Teaching ASP (classic) after the introduction of .Net is negligence.
Welcome to the sorry state of vocational education.

Springfield Community College Extension, or something like that?

In the high school where I work, the (now former) web dev teacher was teaching HTML (version < 4), CSS, and pre-.Net ASP last school year. He threw something resembling Javascript in for good measure.

Remember...it can always be worse.
 

puffinus

Ars Praefectus
4,381
Subscriptor
[url=http:/civis/viewtopic.php?p=27414359#p27414359:2i41ha3k said:
mortress[/url]":2i41ha3k]
Otherwise PHP is competent for everything I've done. The language itself has more character which can annoy some purists like the use of camel case and underscore in function names but I've built some awesome sites using PHP.

In case you're still around...

What do you mean by a language having "character"?

I've done professional PHP development and by preference it's really not my cup of tea.

Just as an example of the type system issues, we're talking about a language which needs a huge documentation page like this for what happens when you do basic comparisons to reach a true/false evaluation:
http://php.net/manual/en/types.comparisons.php

Even then, there are lots of little gotchas like boolean operations not necessarily being transitive.

I can understand why pragmatists use PHP as a tool.

I'd have a hard time accepting an argument that it's a good language.
 

Pont

Ars Legatus Legionis
26,160
Subscriptor
[url=http:/civis/viewtopic.php?p=27424389#p27424389:3hksvwfs said:
Horatio[/url]":3hksvwfs]If you reject jQuery, and you claim to be a "web developer (9 years paid)", then you are unhireable.
I can understand rejecting jQuery in a classroom setting for the purpose of learning how to do it the hard way and thus appreciating jQuery more.

Doing straight DOM out of some misguided sense of minimalism is just stupid. It's the equivalent of editing code C code in Notepad and then checking in without making sure it actually builds in terms of being unprofessional.
 

Pont

Ars Legatus Legionis
26,160
Subscriptor
[url=http:/civis/viewtopic.php?p=27427697#p27427697:o05e16ch said:
Denzinger[/url]":eek:05e16ch]
[url=http:/civis/viewtopic.php?p=27419899#p27419899:o05e16ch said:
Pont[/url]":eek:05e16ch]
I'm more concerned about the timing. Teaching ASP (classic) after the introduction of .Net is negligence.
Welcome to the sorry state of vocational education.

Springfield Community College Extension, or something like that?

In the high school where I work, the (now former) web dev teacher was teaching HTML (version < 4), CSS, and pre-.Net ASP last school year. He threw something resembling Javascript in for good measure.

Remember...it can always be worse.
I'm not usually a fan of the saying, "those who can't, teach", but bad vocational teachers are the source of that rule.

They dabbled in web development 10 years ago, so they have "web development" on their resume. They land a small contract job teaching "web development", but of course can't be bothered to update their skills before teaching it, so they teach what they know.
 

Marco

Ars Scholae Palatinae
1,346
I remember when PHP was all the rage, but that was what, 15 years ago? Seems like people have moved on for the most part.

I don't think it's a bad language per se (it has some merits at least), but it's so full of inconsistencies that I can see where people, especially 'hardcore' programmers with a lot of experience in other languages, would have problems with it. A lot of the time there will be multiple functions that more or less do the same thing (and the documentation will invariably say "DANGER! DEPRECATED! DON'T USE THIS" for about half of them), and I agree with the sentiment that it promotes bad and sloppy code. And who the hell comes up with stuff like this?

Code:
$var = 0;
$isEmpty = empty($var); // $empty = true

It's not empty, damnit. :p
 

wallinbl

Ars Legatus Legionis
14,336
Subscriptor
[url=http:/civis/viewtopic.php?p=27436711#p27436711:2abqqmnt said:
Pont[/url]":2abqqmnt]
I don't think it's a bad language per se (it has some merits at least),
What merits does the language have?

The platform is ubiquitous and has cheap hosting. There's a lot of code written for it. There are a lot of tutorials. But none of those are actually merits of the language.
Currently? None, really. At one time, it was better than using classic ASP. Those days are long gone.
 

DBlackborough

Ars Scholae Palatinae
746
Subscriptor
[url=http:/civis/viewtopic.php?p=27436711#p27436711:3q60t8m0 said:
Pont[/url]":3q60t8m0]
I don't think it's a bad language per se (it has some merits at least),
What merits does the language have?

The platform is ubiquitous and has cheap hosting. There's a lot of code written for it. There are a lot of tutorials. But none of those are actually merits of the language.

Merits? only one I can think of is I can always find well paid contracts.

Been a PHP developer for 12 years, had enough, trying to learn other languages in my free time, have to put PHP behind me now it is getting too irritating.

Say trying more because it is difficult to make time, working on a long term project (PHP based) and feel I need to concentrate fully on it.
 

Pont

Ars Legatus Legionis
26,160
Subscriptor
PHP works. Rather, it can be made to work. Being OSS and widely used, it's had its critical bugs fixed. It's not as bad as some closed source, proprietary package from a dead company that was last updated in 2007.

Facebook has tons and tons of money and young developers to throw at the problem to make PHP work for them. And they don't particularly have a great engineering track record. The fact that Facebook uses PHP isn't really a ringing endorsement.
 

Richard Berg

Ars Legatus Legionis
43,037
Subscriptor
Isn't Facebook largely written in PHP? If so that would suggest to me it's not all bad?
Hypertext Processing is not a very interesting/hard problem. Replying to http requests with html is "embarrassingly parallel", kinda hard to screw up, at least relative to Facebook's real engineering challenges.

All that said, I'd you asked then now whether they'd like to turn back the clock and pick a saner front-end platform, I'm sure they'd jump at the chance.
 

puffinus

Ars Praefectus
4,381
Subscriptor
[url=http:/civis/viewtopic.php?p=27440481#p27440481:2o1cwb5h said:
Slim Jim[/url]":2o1cwb5h]I am a mere amateur so I have no grounds on which to enter this argument.

However. Isn't Facebook largely written in PHP? If so that would suggest to me it's not all bad?

Many years back, sometimes they'd serve you the PHP script that was supposed to generate the page instead of the actual page. I think that happened to me twice.

It was pretty bad. That's not an attack against the quality of their devs; I just don't think the PHP of the time made it very easy to do clean, maintainable, and testable designs for relatively complicated projects.

note: Nothing special done, just logging in as a regular user (which is what I was, not connected in any other way to them) and that's what came up. Someone must have screwed up configuring server directories/extensions. Didn't keep a copy but it didn't look like life as a maintance coder there would have been fun.
 

Ardax

Ars Legatus Legionis
19,795
Subscriptor
Well, since we're having this PHP discussion here, and I just found this little nugget...

[url=http://news.php.net/php.internals/70691:2p4zcfdi said:
Rasmus[/url]":2p4zcfdi]Back when PHP had less than 100 functions and the function hashing mechanism was strlen(). In order to get a nice hash distribution of function names across the various function name lengths names were picked specifically to make them fit into a specific length bucket. This was circa late 1994 when PHP was a tool just for my own personal use and I wasn't too worried about not being able to remember the few function names.
(emphasis mine)

;_;
 
[url=http:/civis/viewtopic.php?p=27441939#p27441939:1a8cpxoe said:
puffinus[/url]":1a8cpxoe]
[url=http:/civis/viewtopic.php?p=27440481#p27440481:1a8cpxoe said:
Slim Jim[/url]":1a8cpxoe]I am a mere amateur so I have no grounds on which to enter this argument.

However. Isn't Facebook largely written in PHP? If so that would suggest to me it's not all bad?

Many years back, sometimes they'd serve you the PHP script that was supposed to generate the page instead of the actual page. I think that happened to me twice.

It was pretty bad. That's not an attack against the quality of their devs; I just don't think the PHP of the time made it very easy to do clean, maintainable, and testable designs for relatively complicated projects.

note: Nothing special done, just logging in as a regular user (which is what I was, not connected in any other way to them) and that's what came up. Someone must have screwed up configuring server directories/extensions. Didn't keep a copy but it didn't look like life as a maintance coder there would have been fun.

They also used to have a graphviz based friend network viewer. IIRC I got served up the code which generated the graphiz and ran graphviz's neato on it a couple times for that and saved it somewhere that has been lost to time :(
 

ShuggyCoUk

Ars Legatus Legionis
10,388
Subscriptor++
[url=http:/civis/viewtopic.php?p=27442887#p27442887:2shu4utr said:
Ardax[/url]":2shu4utr]Well, since we're having this PHP discussion here, and I just found this little nugget...

[url=http://news.php.net/php.internals/70691:2shu4utr said:
Rasmus[/url]":2shu4utr]Back when PHP had less than 100 functions and the function hashing mechanism was strlen(). In order to get a nice hash distribution of function names across the various function name lengths names were picked specifically to make them fit into a specific length bucket. This was circa late 1994 when PHP was a tool just for my own personal use and I wasn't too worried about not being able to remember the few function names.
(emphasis mine)

;_;

I think I threw up a little
 
Status
Not open for further replies.