473,326 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

new MVC web framework

I apologize for the intrusion but I thought you may be interested in
this: http://mdp.cti.depaul.edu
Here is a creencast: http://www.vimeo.com/428474
Dec 20 '07 #1
4 1477
mdipierro wrote:
I apologize for the intrusion but I thought you may be interested in
this: http://mdp.cti.depaul.edu
Here is a creencast: http://www.vimeo.com/428474
LOL, Bad spam.
I had a look at the site for you all and here is my impression.

1) It is written in Python, not PHP
2) It contains totally unfair comparisons to PHP in a desperate attempt
to look more cool/advanced than PHP.
Only newbies/idiots program PHP in the way they use in their comparison.

An example:
from http://mdp.cti.depaul.edu/examples/default/gluon_vs_php

<quote>
Gluon vs PHP

In PHP:

1. <html><body><h1>Records</h1><?
2. mysql_connect(localhost,username,password);
3. @mysql_select_db(database) or die( "Unable to select database");
4. $query="SELECT * FROM contacts";
5. $result=mysql_query($query);
6. mysql_close();
7. $i=0;
8. while ($i < mysql_numrows($result)) {
9. $name=mysql_result($result,$i,"name");
10. $phone=mysql_result($result,$i,"phone");
11. echo "<b>$name</b><br>Phone:$phone<br><br><hr><br>";
12. $i++;
13. }
14. ?></body></html>
In Gluon (<-- their system):
1. def contacts():
2. return
HTML(BODY(H1('Records'),SQLTABLE(db().select(db.co ntacts.ALL)))).xml()

</quote>
Have a look at the silly PHP-code.
I like the handling of $i the best. ;-)
Also the $name=mysql_result($result,$i,"name"); is very usefull in this
context.
Why not use it at once in the echo?

They really did a good job increasing the number of lines needed.
They also left conveniently out their own db-connection stuff.

Last observation: They are very proud of their SQLTABLE-function, that
parses any resultset in a table! WOW! How many seconds does an
experienced PHP programmer need to build such a function against mysql?
five? 10 max?

If that piece of PHP-code is a sample of their codequality, I don't have
to see their Python-code.

Really, if you want to push your MCV thingy in a php newsgroup, at least
make a fair comparison.

LOL.

Regards,
Erwin Moller
Dec 21 '07 #2
Sorry, it really was not my intention to spam. I assumed PHP programmers are
interested in new frameworks for web devlopment even if not in PHP. I also
wanted to give you a chance to reply to my criticism of PHP. If you want to
send me a better piece of code to compare with the Gluon one, I will use it.
Anyway, I agree this discusson does not belog here so I am dropping it.

Dec 22 '07 #3
NC
Back in the old days, everyone wanted the world to see their CMS; now
everyone wants to write an MVC framework...

On Dec 20, 10:46 am, mdipierro <mdipie...@cs.depaul.eduwrote:
I apologize for the intrusion but I thought you may be interested
in this:http://mdp.cti.depaul.edu
Here is a creencast:http://www.vimeo.com/428474
OK, but give me a reason to bother... Why do you think you product is
better than, say, CakePHP, Symfony, or CodeIgniter?

Cheers,
NC
Dec 24 '07 #4
Gluon was originally developed as a teaching tool with emphasys on
easy to use, although it evolved beyond that and it has some unique
feaures:

1) no installation (it is a single executable), no configuration
files, no shell commands, and all developement, deployment and
maintenance is done via a web interface (see screencast)
2) has a ticketing system. if your app has a bug it is logged, the
user is notified and ticket is issued so hat administrator can analyze
the log via the administrative interface.
3) Try the following complete code:

db=SQLDB('sqlite://file.db')
db.define_table('images',SQLField('file','upload') )
def index():
form=SQLFORM(db.images)
if form.accepts(request.vars,session): response.flash='image
uploaded'
return dict(form=form)

what does it do?
creates the database, creates the table (if it does not exists) or
alters the table (if description does not match), creates a web page
called index with an upload form for the image. When the visitor
clicks submit, the file is uploaded, renamed in a safe way, stored in
a file serverside, the name is stored in the database, and the user is
a notified. It also creates a session and handles it via a cookie.

Anyway, as I said, I agree with a previous post that this discussion
does not belong here. I am ansewring your post but I invite you to
submit further posts on the subject to the google gluon group list.

Merry Christmas.
Dec 25 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ravindra | last post by:
Well I installed the framework provided by microsoft , the problem is I am able to activate the smart tag in the doc file but when I Click on the Show Detils option in the information bridge the...
3
by: CMan | last post by:
Hi, We are currently trying to install .Net Framework v.1.1 on a server which already has v1.0. We are receiving the following error. Error 1704.An installation for Microsoft .NET Framework...
18
by: Cameron Laird | last post by:
QOTW: "... So I started profiling the code and the slowdown was actually taking place at places where I didn't expect it." -- Guyon Mor?e (and about twenty-three thousand others) " suggestion...
6
by: Joseph Geretz | last post by:
I recently upgraded my server to Windows 2003. The first thing I noticed is that my sample WebService pages no longer worked. The Invoke test button is missing. This is addresed by the following KB...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
1
by: Harry Simpson | last post by:
I know I drilled down into the Windows folder\Microsoft.net\Framework\v1.1.4322 folder and looked at the version of Mscorcfg.dll to get the SP level from the version number: Mine shows...
3
by: Shadow Lynx | last post by:
At the bottom of the default Error page that appears when Unhandled Exceptions occur, what exactly is the difference between the "Microsoft ..Net Framework Version" and the "ASP.NET Version"? I...
3
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
13
by: dancer | last post by:
I have made a new post because when I try to respond to another, I get the error, "Article Rejected -- Ill-formed message id" This is in response to the advice of Juan Libre to install Net...
8
by: Blasting Cap | last post by:
I'm using VS 2005, and have a dll in some code (system.core.dll) that was included in something someone sent me to run on my system. I have production on a server using Framework 2.0 that I want...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.