Entries in php (3)

8:23AM

Let Them Eat Cake(PHP)

At work, we recently had a request for a mobile app for our university to use...and the kicker was that we also wanted other universities to use it and adapt it. As a result, we couldn't use our standby for web applications, Ruby on Rails....

Click to read more ...

6:26AM

When Developers Should Reinvent the Wheel

Developers cut from a certain cloth should know that they should not reinvent the wheel, which is essentially, go out of their way to implement something if it has already been done before.

For instance, if you're interested in writing an IM program, you wouldn't reimplement the communication protocol - you would use libpurple, which provides those libraries for you. 

This is an important part of the open source movement - why build your kernel?  Just use the linux kernel. 

However, as developers, the thought of a bad developer is one who reinvents the wheel.  They're the ones whose code gets sent to websites like the Daily WTF, and someone such as Jeff Atwood tells you how horrible you are, and tells you to not reinvent the wheel.

However, I'm going to say that if a better solution exists, you should use it.  However, you should be encouraged to reinvent the wheel, if either the solution exists but is not useful (such as a horrific implementation of the solution), or if the solution is unfriendly for you use. Then you should reinvent the wheel to develop a better, solution.  The most important part of this is that you should release this into the public domain.

Of course, if there is a standard library implementation, I'd encourage you to not take that advice.  I'm specifically talking about function implemented by a library, or a certain module of your program (like a kernel in an OS, or a communications protocol).   You should learn it if it's in the domain of the language that you're using, unless it's horrifically insecure.

Of course, in the case above, there are numerous of good libraries to reinvent PHP's less secure features, so you don't have to reinvent the wheel in the first place.

So, in short - reinvent the wheel if the current solution doesn't work for you, unless it's a standard library implementation of something, which in case you should use that unless it's insecure, because you should learn the implementations in the language you are using.  Unless you're using PHP, in which case, you might have to use an external library, anyways.

5:09PM

Sam

Sam is an idea I have for an automated package that creates sign up pages and some sort of administrative console to manage people who sign up.

The name will probably change, as now it stands for “Signups Automated Manually”.

The idea is a program that’ll create those pages dynamically based on what the user wants.  All the user needs to do is have a MySQL account set up.

The PHP can be set up to listen for modules that can add functionality to the console itself – so that if the user needs for instance a function that can grab the telephone numbers of people who signed up and pipe that to Yahoo! Pipes to his Grand Central account,* then he can make a PHP script that can do that.