473,769 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1623

"Paul" <lo*@invalid.co mwrote in message
news:bv******** **********@bign ews7.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.c omwrote:
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.c omwrote:
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.c omwrote:
>
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 characterizatio ns. 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.c omwrote:
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@phpPeanu s_RemoveThis.or gwrote 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 characterizatio ns. 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
2000
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
9269
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 C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
136
9447
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 code was littered with document.all and eval, for example, and I wanted to create a practical list of best practices that they could easily put to use. The above URL is version 1.0 (draft) that resulted. IMO, it is not a replacement for the FAQ,...
2
1411
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 framework as a step in the regular apps' installation if the user doesn't have the framework. however, when i include the dotnetfx redistributable the size of the download is about 23mb as opposed to 300k for my app.
10
3482
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 somewhere that each folder under the "web site" is compiled in separate assembly. I however, did not find that the "web site" creation in vs.net 2005 created any AssemblyInfo.cs file.
8
1572
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 want to know the information in the exception.... That being the case do I just not catch it and let the user of the class catch it and get all the information? I know I could catch it and throw my own, but I'd have to tell them the same
122
7904
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 has largest community/buzz about it?
2
6115
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 development machine's Assembly Cache. The assemblies version appears to be 1.1.0.0. I changed the project reference to the newly compiled EnterpriseLibrary DLLs. The Web.Config of my application root, I also have the following <configSections>. I...
3
1102
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 tight. a recommendation is v v v appreciated.
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7413
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3965
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
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.