Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: web applications: what is the correct way to realise web applications

by tercoz (Acolyte)
on Dec 30, 2011 at 14:00 UTC ( [id://945636]=note: print w/replies, xml ) Need Help??


in reply to Re: web applications: what is the correct way to realise web applications
in thread web applications: what is the correct way to realise web applications

There are many rumours about MVC and that things like cgi::application force a programmer to follow definite rules as he design his application, I have read about this way of making applications and didn't find any advantage in this way.

MVC that's what make me curious, is it really better than simply using single scripts for single tasks

  • Comment on Re^2: web applications: what is the correct way to realise web applications

Replies are listed 'Best First'.
Re^3: web applications: what is the correct way to realise web applications
by Anonymous Monk on Dec 30, 2011 at 21:07 UTC

    There are many rumours about MVC and that things like cgi::application force a programmer to follow definite rules as he design his application, I have read about this way of making applications and didn't find any advantage in this way.

    MVC that's what make me curious, is it really better than simply using single scripts for single tasks

    Reading is never as convincing as understanding :) and the right kind of exercise can promote understanding

    I remember reading about MVC before I did any OOP, and I didn't see any benefits either :)

    Its like trying to understand the benefit of stick-frame-housing-in-earthquake-zones when you're living in a cave :) You mean to tell me I have to cut trees down, then nail them ... but the cave is right there :)

    Based on this thread along with is this script secured enough from internet attacks, I believe you need to read/write more code, more programs, more big and OO programs, before you can appreciate the benefits of MVC or scaffolding like mojo/dancer/catalyst/cgi-app

    Oh look, a single script for a single task, without MVC or OOP, admin.cgi

    use MyShinyPoodle::Admin::CGI; MyShinyPoodle::Admin::CGI->run;

    Now you can test MyShinyPoodle::Admin , and it doesn't depend on any html templates or protocols like CGI

    See also Object Oriented Orientation

    Good luck

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://945636]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-18 08:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found