WordPress, PHP, Anti-Intuitive Reality, ...
When was the last time we thinked?
Had an interesting conversation at the stuff meeting this past last Wednesday, i.e., 3 days ago:
Me: Hi, I started to read your blog.
Nathan: I've noticed. I did spend some time tweaking it. It was fun.
Me: It's quite polished.
Brad: Who's hosting it?
Nathan: I'm hosting it myself.
Brad: What software do you use?
Nathan: WordPress.
Me: Isn't that written in PHP?
Nathan: Yes. And it's quite an easy language.
Me: Didn't they put PHP code right there in the HTML pages?
Nathan: They do.
Me: Didn't we say that's bad?
Nathan: Apparently they are doing alright. Lots of people are using WordPress.
Me: And look at us. We tried so hard to separate our stuff into layers and all that and still can't manage the complexity. We have so many frameworks yet not anything as popular as WordPress.
Nathan: Not everyone needs the scalability. How many hits can I get?
Brad: You are hosting your blog in Java, right.
Me: Yes. I use Pebble with Tomcat. I like it a lot. A well designed tag library is a joy to use.
But why is this? Why do people (at least some people) flock to something like PHP, which we Java people know is "bad" (or at least were told is bad)?
Could it be because that Java, although good, is too hard?
Could it be because Java is not available out of the box? (If you want to do ASP.NET, you get a Windows server. If you want to do PHP, you get a Linux server. If you want to do Java, you get a what?)
Could it be because the Java implementations on different platforms are incompatible? (What's the latest version of Java on Mac OS X? on Solaris 7? 8? 9? 10? on Free BSD? On AIX? HP-UX? Tru64)
Could it be because the Java stuff is too hard to set up right for end-users? True that I can setup Pebble in five minutes, but that's assuming I have a working Tomcat environment. And that is in itself a non-trivial task.
Could it be because what we have been told this past ten years were wrong. That PHP is really superior to Java?
Could it be because contrary to what we believed and what we've been told by our bosses, we aren't that bright, and couldn't see something that is so plain to the PHP product vendors and users. Doesn't that Joel on Software guy have a product that's ASP on Windows and PHP on UNIX? I wonder why he did not use Java?
Fooled us, those @#$%s!
Re: WordPress, PHP, Anti-Intuitive Reality, ...
Re: WordPress, PHP, Anti-Intuitive Reality, ...
In terms of dynamism, PHP is actually better than Java. The moment you change your page or module code, it taks effect immediately. Thus PHP favors incremental development, no need for an IDE, no separate compile step.
Although I understand the point of having .war or .ear for deployment, do you find yourself using exploded war directory more at development time? That's exactly because it's more fluid and easier to change. The fluidness is a typical characteristic of dynamic language, and it happens to be in PHP's gene.
Java web apps of course only run on JVM. And JVM does not scale down to small (embedded) systems as well as other runtime environment.
And another problem of java web apps development is that too many small languages are involved. Remember that's in addition to HTML and the main programming language. In the case of PHP, it's at least two languages mixing, but also at most two.
Re: WordPress, PHP, Anti-Intuitive Reality, ...
For a lot of people 90% is fantastic. When I first used Micro$oft Visual Studio's UI designer tool (in the late 90's) I almost fell out of my chair when the tool had absolutely no concept of a layout manager (!). You set the size of the dialog, pasted the UI components where you wanted them and were done. Then I thought about it.. I had met very few users who would think to resize a window. Until the current age of dynamic content almost no one (outside of programmer geeks like me) resized windows! This is a perfect example of what I am talking about.
Java is bloated beyond comprehension. PHP is simple. Spin back to 1990. VAX/VMS has everything meticulously documented and tested. Unix is made up of a small set of simple tools. Which one is still around 15 years later. Hmm...
I'm not losing any sleep over this whole PHP thing. 15 years from now I will be too busy trying to figure out how to store my 400Gb rt.jar file (Java 10 release 1.7_21 which, of course, includes a fully functional air traffic control, and accounts receivable API) on my new pen drive..
Re: WordPress, PHP, Anti-Intuitive Reality, ...
Does anyone know of a blogging package based on Tapestry? By using the HTML templates and CSS the users could customize all day long and still have something that could be maintained.