473,573 Members | 2,627 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1485
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(l ocalhost,userna me,password);
3. @mysql_select_d b(database) or die( "Unable to select database");
4. $query="SELECT * FROM contacts";
5. $result=mysql_q uery($query);
6. mysql_close();
7. $i=0;
8. while ($i < mysql_numrows($ result)) {
9. $name=mysql_res ult($result,$i, "name");
10. $phone=mysql_re sult($result,$i ,"phone");
11. echo "<b>$name</b><br>Phone:$ph one<br><br><hr> <br>";
12. $i++;
13. }
14. ?></body></html>
In Gluon (<-- their system):
1. def contacts():
2. return
HTML(BODY(H1('R ecords'),SQLTAB LE(db().select( db.contacts.ALL )))).xml()

</quote>
Have a look at the silly PHP-code.
I like the handling of $i the best. ;-)
Also the $name=mysql_res ult($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.d epaul.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('sqlit e://file.db')
db.define_table ('images',SQLFi eld('file','upl oad'))
def index():
form=SQLFORM(db .images)
if form.accepts(re quest.vars,sess ion): 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
2015
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 following errors are being dispayed 5:21:26 PM Error Message: OperationInstance: SoapException Stack Trace:...
3
20654
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 SDK (English) is currently suspended. You must undo the changes made by that installation to continue. Do you want to undo those changes?
18
3013
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 from the world of 'agile development': stop making so many decisions and start writing some actual code!" -- Peter Hansen Scott David Daniels and...
6
2069
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 article: Microsoft Knowledge Base Article - 819267 INFO: HTTP GET and HTTP POST Are Disabled by Default ...
9
3189
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 questions are below... "David Good" wrote: > We have a network running both Win2k and Win2k3 webservers and our web sites > reside on a UNC network...
1
2249
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 v1.1.4322.573 which is supposed to be 1.1 with no service packs.
3
3056
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 understand that the ASP.Net version is the version of ASP.Net that the current site is running under and it can be retreived with...
3
6602
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
6632
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 Framework Service Pack 1 in order to use ASP.net 1.1 and the net Framework 1.1...
8
1897
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 to keep intact. Will upgrading my development box to Framework 3.5 preclude any development or functionality in the 2.0 environment I am...
0
7668
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8179
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8035
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5257
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3698
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3694
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2166
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1269
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
992
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.