Proof of Concept?

May 12, 2010

Well, it took quite a bit longer than expected, and it still isn’t wat I wanted it to be.
Currently I’m trying to connect to the competition server WinPHP gave me, but I do not seem to be able to connect though.
I’m afraid there will be no working example of the Proof of Concept today…

Also JavaScript seems to be more a pain in the ass then I expected;
building html isn’t that hard, but when it comes to setters/getters and functions…
Some good reads about setters/getters are Testing getters and setters and Set your Setter and Get your Getter.

I now do have some PHP Classes and bit of JavaScript.
Together these scripts can ‘build’ an html page, but all the extra possibilities OOfA is all about are still not in there :(

Hopefully the coming days will bring me some more luck.

The schema

April 21, 2010

Well, here it is, an image of the layers I want to cover, and wat kind of “datatype” I will be using in each layer.

Currently I’m making a proof-of-concept, and I hope to be able to show it within a few days.
Though it may take up to a week again (wednesdays are my only days with a bit of spare time).

Hello world! 2

April 14, 2010

From my background as a Flash Developer I’m used to a more strict way of Object Oriented programming. Also I’m used to be able to do object movements within the object itself.

Since the visual part of a website is typically something for the client-side, we mostly use JavaScript to handle the movement. To merge this into one object, we will have to make some kind of conversion from PHP to JavaScript. But this shouldn’t be just it. Data needs to be written to the server too.

Getting data from a server and sending it towards a server isn’t something new. XML is a well-known way to get data from one place to another, and AJAX is used a lot nowadays.

A few weeks ago I stumbled upon JSON. JSON isn’t new either, but because it is the JavaScript Object Notation it can easily become an object in JavaScript (by using the eval() function).

The JSON-schema doesn’t allow functions, but in my opinion a true (for programming purposes) object needs to be able to contain functions. Thomas Frank already wrote something about this almost four years ago called Classy JSON and two months later he posted a better version of his code (Classier JSON).

In the coming days I will study Thomas Frank’s way of ‘converting’ and make an image of the layers that will be covered.

Hello world!

April 1, 2010

Introduction

Before I’ll explain what my application is about, I’ll introduce myself a bit.

I’m Nathan Meulenberg, Junior Webdeveloper at CreaBea, I’m 22 years old now and I live in the Netherlands. I’m a student at The Hague University, which requires me to go to The Hague for two evenings a week.

About the application:

OOfA (One Object of All) is a way to do several sides of building a website in one object notation.

This includes the clientside (like animating with Javascript), the serverside (like building a user login in PHP) and the database connection (like a MySQL database for your user administration).

This sounds both easy and dangerous; easy because you don’t have to switch all the time between the different languages, and dangerous because the clientside could now easily do changes to your database. This danger should of course be taken out of the application before it can be deployed in commercial projects (for example by using some kind of filter).

My main focus will be on the Javascript integration into PHP and the connection to the database will be more like an add-on.


Follow

Get every new post delivered to your Inbox.