473,405 Members | 2,287 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,405 software developers and data experts.

best practices confusion between framework v.templating ?

I have been coding apps with PHP for several years. But I am getting more
involved in larger and more complicated PHP applications and want to use
best practices.

I use Eclipse's PHP IDE. I doubt I am using it to its full extent but I want
to learn more about, and compare and contrast, frameworks versus IDE versus
templating systems and MOST IMPORTANTLY learn what is going to save me time.

I know technically the IDE is the tool in which you code but there are
frameworks associated with IDE - for example the PHP IDE for Eclipse.

Can you use a any framework within any templating system?

I want to learn now what is going to save time later. Please help
straighten me out amd let me know what libraries, frameworks and/or
templating systems you think saves you time.

Many thanks!
Apr 17 '07 #1
7 1598

"Paul" <lo*@invalid.comwrote in message
news:bv******************@bignews7.bellsouth.net.. .
|I have been coding apps with PHP for several years. But I am getting more
| involved in larger and more complicated PHP applications and want to use
| best practices.
|
| I use Eclipse's PHP IDE. I doubt I am using it to its full extent but I
want
| to learn more about, and compare and contrast, frameworks versus IDE
versus
| templating systems and MOST IMPORTANTLY learn what is going to save me
time.
|
| I know technically the IDE is the tool in which you code but there are
| frameworks associated with IDE - for example the PHP IDE for Eclipse.
|
| Can you use a any framework within any templating system?
|
| I want to learn now what is going to save time later. Please help
| straighten me out amd let me know what libraries, frameworks and/or
| templating systems you think saves you time.
|
| Many thanks!

yeah...my money is on notepad. the rest is just fluff.
Apr 17 '07 #2
On Apr 17, 9:41Â*pm, "Paul" <l...@invalid.comwrote:
I have been coding apps with PHP for several years. But I am getting more
involved in larger and more complicated PHP applications and want to use
best practices.

I use Eclipse's PHP IDE. I doubt I am using it to its full extent but I want
to learn more about, and compare and contrast, frameworks versus IDE versus
templating systems and MOST IMPORTANTLY learn what is going to save me time.

I know technically the IDE is the tool in which you code but there are
frameworks associated with IDE - for example the PHP IDE for Eclipse.

Can you use a any framework within any templating system?

I want to learn now what is going to save time later. Â*Please help
straighten me out amd let me know what libraries, frameworks and/or
templating systems you think saves you time.

Many thanks!
smarty, FCS,cakephp.......

Apr 18 '07 #3
On Apr 17, 6:41 pm, "Paul" <l...@invalid.comwrote:
I have been coding apps with PHP for several years. But I am getting more
involved in larger and more complicated PHP applications and want to use
best practices.

I use Eclipse's PHP IDE. I doubt I am using it to its full extent but I want
to learn more about, and compare and contrast, frameworks versus IDE versus
templating systems and MOST IMPORTANTLY learn what is going to save me time.

I know technically the IDE is the tool in which you code but there are
frameworks associated with IDE - for example the PHP IDE for Eclipse.

Can you use a any framework within any templating system?

I want to learn now what is going to save time later. Please help
straighten me out amd let me know what libraries, frameworks and/or
templating systems you think saves you time.

Many thanks!
You can have lots of framework around you.... Like Mojavi, Sympony and
lot more... I am currenly using Mojavi and Symfony. And I found
symfony is really good with lots of inbulid support of AJAX, Admin and
lot more. try for that.

Apr 18 '07 #4
C.
On 17 Apr, 14:41, "Paul" <l...@invalid.comwrote:
>
I use Eclipse's PHP IDE. I doubt I am using it to its full extent but I want
to learn more about, and compare and contrast, frameworks versus IDE versus
templating systems and MOST IMPORTANTLY learn what is going to save me time.
I would have thought that the templating system/framework were
completely seperate from the IDE you use. I suppose a framework could
have debug built-in - which would then affect your your choice of IDE
or vice versa but AFAIK none do.
>
Can you use a any framework within any templating system?
Most PHP frameworks tend to provide a full range of functionality
(authentication, access, ORM, DB abstraction, and templating) so it
rather depends on the framework you use. Actually most PHP frameworks
are really just libraries so even where if your framework of choice
does have a templating system this may not preclude use of a different
one.
I want to learn now what is going to save time later. Please help
straighten me out amd let me know what libraries, frameworks and/or
templating systems you think saves you time.
erk. It rather depends how apposite the framework is to your
application and development methodology. I'd recommend looking at
PHPPeanuts (automates development but can be tricky to customize)
Prado (XML based meta language system)
Seagull (library type system with sensible functionality)
Zend (likely to be favoured in commercial web 2.0 type apps)
Blueshoes (lots of javascript eye candy)
CakePHP (very OO)
Horde (PEAR based)

See also http://www.phpit.net/article/ten-dif...hp-frameworks/
....although you've asked about frameworks, I've got to plug PfP Studio
here - its a toolkit for developing forms.

In some circumstances it may be more appropriate to base your
developing around a CMS - in which case do check out Joomla and
TikiWiki

HTH

C.

Apr 18 '07 #5
C. wrote:
PHPPeanuts (automates development but can be tricky to customize)
Prado (XML based meta language system)
Seagull (library type system with sensible functionality)
Zend (likely to be favoured in commercial web 2.0 type apps)
Blueshoes (lots of javascript eye candy)
CakePHP (very OO)
Horde (PEAR based)
Very nice, these characterizations. I am planning to evaluate my own
framework (phpPeanuts) against other frameworks, this is a nice
shortlist to start with. Thanks!
PHPPeanuts (automates development but can be tricky to customize)
The automation is most effective with applications that mainly store and
retrieve data (including searching). Currently i count with a
productivity between 9 and 22 function points per hour* depending on the
amount of custom tasks they require.

I agree customization does take quite some knowledge of the framework
and browsing through its code, but OTOH, you can still resort to
'manual' development of the parts that are too hard to customize or
simply not available.

However, the assumptions the framework makes about naming conventions
with respect to keys and foreing keys of your database tables are not
customizable, if you can not follow them it won't work.

Greetings,

Henk Verhoeven,
www.phpPeanuts.org.
* I currently estimate this kind of development as follows:

hours per
-----------------------------------
1 datatype (not counting pure n-m relation tables)
0,5 1-n relation
1 n-m relation
0,25 data field
2 custom data entry layout
0 simple search option
0 page/window
0 standard report

Then i add time for non-standard development tasks, for communication
with the customer, for integration testing and for delivery/installation.

In order to measure my productivity i relate this to function points
counting as follows:

points per
----------------------------------
8 datatype
4 1-n relation
8 n-m relation
4 data field
1 custom data entry layout
2 simple search option
4 page/window
6 standard report

For example phase two of the application i am currently building
consists of 14 datatypes, 11 1-n relations, 6 n-m relations, 44 data
fields, 1 custom data entry layout, 44 simple search options, 44 pages,
42 reports and custom task. It is estimated to take 40 hours. This
application phase counts for 896 function point, so i am doing 22.4
function points per hour.

Now of course the more custom tasks i have the lower is productivity:
the third phase is estimated at 270 points in 30 hours, which is only 9
fp/hr.
(These function points are based on measured productivity when i started
automating development. I define productivity by then as 1 function
point per hour) (we are talking 1996, GUI based applications using an
IDE with a screen painter, a O-R mapping class library and event-based
programming in Visual Smalltalk).

Apr 19 '07 #6
On Apr 17, 7:41 am, "Paul" <l...@invalid.comwrote:
I have been coding apps with PHP for several years. But I am getting more
involved in larger and more complicated PHP applications and want to use
best practices.

I use Eclipse's PHP IDE. I doubt I am using it to its full extent but I want
to learn more about, and compare and contrast, frameworks versus IDE versus
templating systems and MOST IMPORTANTLY learn what is going to save me time.

I know technically the IDE is the tool in which you code but there are
frameworks associated with IDE - for example the PHP IDE for Eclipse.

Can you use a any framework within any templating system?

I want to learn now what is going to save time later. Please help
straighten me out amd let me know what libraries, frameworks and/or
templating systems you think saves you time.

Many thanks!
>From my experiences, a lot of frameworks have a templating system
built-in or support specific templating systems, such as smarty. I
prefer frameworks like Xaraya (http://xaraya.com). Xaraya has it's own
templating built-in, but they are html-based files with a few name
space variables to load in the data. Xaraya is mainly used as a CMS,
but it is intended to be a framework. It has saved me weeks of work.

One thing to note, most frameworks, especially the ones that will do
most of the work for you if you let them, have a rather steep learning
curve.

Apr 21 '07 #7
very interesting productivity measurement! thanks
"Henk verhoeven" <news1@phpPeanus_RemoveThis.orgwrote in message
news:f0**********@news4.zwoll1.ov.home.nl...
C. wrote:
PHPPeanuts (automates development but can be tricky to customize)
Prado (XML based meta language system)
Seagull (library type system with sensible functionality)
Zend (likely to be favoured in commercial web 2.0 type apps)
Blueshoes (lots of javascript eye candy)
CakePHP (very OO)
Horde (PEAR based)

Very nice, these characterizations. I am planning to evaluate my own
framework (phpPeanuts) against other frameworks, this is a nice shortlist
to start with. Thanks!
>PHPPeanuts (automates development but can be tricky to customize)

The automation is most effective with applications that mainly store and
retrieve data (including searching). Currently i count with a productivity
between 9 and 22 function points per hour* depending on the amount of
custom tasks they require.

I agree customization does take quite some knowledge of the framework and
browsing through its code, but OTOH, you can still resort to 'manual'
development of the parts that are too hard to customize or simply not
available.

However, the assumptions the framework makes about naming conventions with
respect to keys and foreing keys of your database tables are not
customizable, if you can not follow them it won't work.

Greetings,

Henk Verhoeven,
www.phpPeanuts.org.
* I currently estimate this kind of development as follows:

hours per
-----------------------------------
1 datatype (not counting pure n-m relation tables)
0,5 1-n relation
1 n-m relation
0,25 data field
2 custom data entry layout
0 simple search option
0 page/window
0 standard report

Then i add time for non-standard development tasks, for communication with
the customer, for integration testing and for delivery/installation.

In order to measure my productivity i relate this to function points
counting as follows:

points per
----------------------------------
8 datatype
4 1-n relation
8 n-m relation
4 data field
1 custom data entry layout
2 simple search option
4 page/window
6 standard report

For example phase two of the application i am currently building consists
of 14 datatypes, 11 1-n relations, 6 n-m relations, 44 data fields, 1
custom data entry layout, 44 simple search options, 44 pages, 42 reports
and custom task. It is estimated to take 40 hours. This application phase
counts for 896 function point, so i am doing 22.4 function points per
hour.

Now of course the more custom tasks i have the lower is productivity: the
third phase is estimated at 270 points in 30 hours, which is only 9 fp/hr.
(These function points are based on measured productivity when i started
automating development. I define productivity by then as 1 function point
per hour) (we are talking 1996, GUI based applications using an IDE with a
screen painter, a O-R mapping class library and event-based programming in
Visual Smalltalk).



Apr 23 '07 #8

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

Similar topics

13
by: istvan.albert | last post by:
Hello All, I thought it would make sense to write up some of my experiences with python based web frameworks: http://www.personal.psu.edu/staff/i/u/iua1/python_reviews.html best, Istvan.
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
2
by: Krish | last post by:
hi all, i'm wondering if there are any best practices for distributing apps which require the .net framework to run. i've read about using the .net bootstrapper which will install the .net...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
8
by: SStory | last post by:
When I right a class, I am wondering what are the best practices for error handling? Do I try..catch and trap the error and if so what do I do with it? Because most likely the class user will...
122
by: seberino | last post by:
I'm interested in knowing which Python web framework is most like Ruby on Rails. I've heard of Subway and Django. Are there other Rails clones in Python land I don't know about? Which one...
2
by: js | last post by:
I got this error when I moved my application to a new Windows 2003 server. I installed and recompiled the 'Microsoft.Practices.EnterpriseLibrary - June 2005" then added these assemblies to the...
3
by: Mahdi | last post by:
Guys! I need to develop a medium-sized database web application for my company. Given that: I don't know much about building web UI(s) but i have fair knowledge about HTML & My schedule is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.