473,416 Members | 1,698 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,416 software developers and data experts.

Need advices in choosing approach

I am a student and are required to build a website that provide
services (client-server).

I need advice in choosing approach or to be exact the methodology that
appropriate for such development. I am still new in design and
analysis, so any extra informations are greatly appreciated. Right
now, it is the initial phase, planning. So I need to decide which to
adapt. I had been read some of the open source projects code, and
majority seems to be adapting procedural programming, althought mostly
because they were build prior to PHP5, anyhow, is it a bright decision
to do it object-oriented way?
Dec 16 '07 #1
14 1541
Leah wrote:
I am a student and are required to build a website that provide
services (client-server).

I need advice in choosing approach or to be exact the methodology that
appropriate for such development. I am still new in design and
analysis, so any extra informations are greatly appreciated. Right
now, it is the initial phase, planning. So I need to decide which to
adapt. I had been read some of the open source projects code, and
majority seems to be adapting procedural programming, althought mostly
because they were build prior to PHP5, anyhow, is it a bright decision
to do it object-oriented way?
Not necessarily.

With OOP you need to spend a lot of time analysing the problem before
coding to get the objects correctly defined.

In many cases this takes longer than writing procedural, and fixing it
slightly as issues arise.

Unless you are familiar with and like coding OOP, I would stay clear of
it. Unless again the problem falls naturally into objects..i.e. don't
force the problem to conform to one way of looking at it or another..see
which approach suits the problems - and the skill set of the programmers
you will be using.

Dec 16 '07 #2
Leah wrote:
I am a student and are required to build a website that provide
services (client-server).

I need advice in choosing approach or to be exact the methodology that
appropriate for such development. I am still new in design and
analysis, so any extra informations are greatly appreciated. Right
now, it is the initial phase, planning. So I need to decide which to
adapt. I had been read some of the open source projects code, and
majority seems to be adapting procedural programming, althought mostly
because they were build prior to PHP5, anyhow, is it a bright decision
to do it object-oriented way?
I think you're getting the cart ahead of the horse, here. You should
have your site planned first, to find out what you need. Then make a
selection of your methodology based on those needs. IOW, pick the right
tool for the job. Don't let the tool drive the job.

And contrary to other claims here, I've been doing OOAD for almost 20
years - before Booch, Rumbaugh and the rest became popular. And no, it
does not take more time to build an OO design than it takes to write
procedural code. In fact, I've found virtually every project where you
have experienced OO designers and programmers, the entire project from
design through final test takes less time and has fewer bugs than than
similar projects done procedurally.

But, of course, it takes time and energy to learn how to do OO properly
and become efficient at it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Dec 16 '07 #3
Jerry Stuckle wrote:
In fact, I've found virtually every project where you
have experienced OO designers and programmers, the entire project from
design through final test takes less time and has fewer bugs than than
similar projects done procedurally.

But, of course, it takes time and energy to learn how to do OO properly
and become efficient at it.
The two statements would appear to be mutually exclusive, Jerry.
Dec 16 '07 #4
On Dec 16, 7:25 pm, The Natural Philosopher <a...@b.cwrote:
Unless you are familiar with and like coding OOP, I would stay clear of
it. Unless again the problem falls naturally into objects..i.e. don't
force the problem to conform to one way of looking at it or another..see
which approach suits the problems - and the skill set of the programmers
you will be using.
Sorry, I think I had hit the wrong reply method....previously replied
posts not appeared.

While I had some experienced with Java. But when I move and imagine
the web development, I couldn't get an idea how it should be *solved*
using OO. I don't know why, perhaps it just happened to just me, it
seems to be very abstract in such context, afterall it merely used to
generate chunk of HTML codes, unlike Java's AWT or Swing that
extensively use OO specifically inheritance to model the packages
framework, correct me if I am wrong.

Any suggestions?

Dec 16 '07 #5
On Dec 16, 9:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
I think you're getting the cart ahead of the horse, here. You should
have your site planned first, to find out what you need. Then make a
selection of your methodology based on those needs. IOW, pick the right
tool for the job. Don't let the tool drive the job.
I am preparing proposal, and need to specify which methodology to use,
although OOAD is preferred since it s covered in the course module.
The problems is, as I replied The Natural Philosopher in 3rd post.
And contrary to other claims here, I've been doing OOAD for almost 20
years - before Booch, Rumbaugh and the rest became popular. And no, it
does not take more time to build an OO design than it takes to write
procedural code. In fact, I've found virtually every project where you
have experienced OO designers and programmers, the entire project from
design through final test takes less time and has fewer bugs than than
similar projects done procedurally.

On Dec 16, 7:25 pm, The Natural Philosopher <a...@b.cwrote:
For this reason I tend to take a "mostly OO" approach. I put as much
code as possible in classes, but simple utility code that might be
needed anywhere in the package in unreleated classes may just end up
in standard functions.
While it seems to be logically fine to code using both procedural and
OO to mix around, but which methodology it is actually refering to?
Dec 16 '07 #6

"The Natural Philosopher" <a@b.cwrote in message
news:11****************@proxy00.news.clara.net...
Jerry Stuckle wrote:
> In fact, I've found virtually every project where you have experienced
OO designers and programmers, the entire project from design through
final test takes less time and has fewer bugs than than similar projects
done procedurally.

But, of course, it takes time and energy to learn how to do OO properly
and become efficient at it.

The two statements would appear to be mutually exclusive, Jerry.
it's a jerry-ism. you have to get into jerry's mind for him to make
sense...and that's a lot of work without much benefit. the rest of us just
see such a statement as having mutual exclusive conclusions where one of
them ("fewer bugs") is non sequitur to the claims they support ("does not
take more time to build an OO design"). like i said, just treat it as a
jerry-ism and leave it at that. otherwise, he'll just call *you* stupid and
troll you until the cows come home. it's something to do with insecurity i
think.
Dec 16 '07 #7
Steve wrote:
"The Natural Philosopher" <a@b.cwrote in message
news:11****************@proxy00.news.clara.net...
>Jerry Stuckle wrote:
>> In fact, I've found virtually every project where you have experienced
OO designers and programmers, the entire project from design through
final test takes less time and has fewer bugs than than similar projects
done procedurally.

But, of course, it takes time and energy to learn how to do OO properly
and become efficient at it.
The two statements would appear to be mutually exclusive, Jerry.

it's a jerry-ism. you have to get into jerry's mind for him to make
sense...and that's a lot of work without much benefit. the rest of us just
see such a statement as having mutual exclusive conclusions where one of
them ("fewer bugs") is non sequitur to the claims they support ("does not
take more time to build an OO design"). like i said, just treat it as a
jerry-ism and leave it at that. otherwise, he'll just call *you* stupid and
troll you until the cows come home.
Two can play at that game ;-)
it's something to do with insecurity i
think.
Something like that I expect.
>
Dec 16 '07 #8

"The Natural Philosopher" <a@b.cwrote in message
news:11****************@demeter.uk.clara.net...
Steve wrote:
>"The Natural Philosopher" <a@b.cwrote in message
news:11****************@proxy00.news.clara.net. ..
>>Jerry Stuckle wrote:
In fact, I've found virtually every project where you have experienced
OO designers and programmers, the entire project from design through
final test takes less time and has fewer bugs than than similar
projects done procedurally.

But, of course, it takes time and energy to learn how to do OO properly
and become efficient at it.

The two statements would appear to be mutually exclusive, Jerry.

it's a jerry-ism. you have to get into jerry's mind for him to make
sense...and that's a lot of work without much benefit. the rest of us
just see such a statement as having mutual exclusive conclusions where
one of them ("fewer bugs") is non sequitur to the claims they support
("does not take more time to build an OO design"). like i said, just
treat it as a jerry-ism and leave it at that. otherwise, he'll just call
*you* stupid and troll you until the cows come home.

Two can play at that game ;-)
he, he, he.
>it's something to do with insecurity i think.
Something like that I expect.

Dec 16 '07 #9
Leah wrote:
On Dec 16, 7:25 pm, The Natural Philosopher <a...@b.cwrote:
>Unless you are familiar with and like coding OOP, I would stay clear of
it. Unless again the problem falls naturally into objects..i.e. don't
force the problem to conform to one way of looking at it or another..see
which approach suits the problems - and the skill set of the programmers
you will be using.

Sorry, I think I had hit the wrong reply method....previously replied
posts not appeared.

While I had some experienced with Java. But when I move and imagine
the web development, I couldn't get an idea how it should be *solved*
using OO. I don't know why, perhaps it just happened to just me, it
seems to be very abstract in such context, afterall it merely used to
generate chunk of HTML codes, unlike Java's AWT or Swing that
extensively use OO specifically inheritance to model the packages
framework, correct me if I am wrong.

Any suggestions?

I use OO all over the place. Anywhere from database implementation
displaying information.

For instance - one type of non-database related classes I use is for
forms. It generates the form (sans some formatting) and handles the
input posted back. Common routines look for required vs. non-required
fields, and parse data based on specified criteria.

It all works quite well, and removes a lot of the validation code
normally necessary.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Dec 17 '07 #10
The Natural Philosopher wrote:
Jerry Stuckle wrote:
> In fact, I've found virtually every project where you have
experienced OO designers and programmers, the entire project from
design through final test takes less time and has fewer bugs than than
similar projects done procedurally.

But, of course, it takes time and energy to learn how to do OO
properly and become efficient at it.

The two statements would appear to be mutually exclusive, Jerry.
Not at all. Someone inexperienced in either will be slow in either.

And if you're experienced in procedural programming, you will generally
find programming in that can be faster for you. But when you take the
time to gain experience in OO programming, that's even faster.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Dec 17 '07 #11
Leah wrote:
On Dec 16, 9:27 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>I think you're getting the cart ahead of the horse, here. You should
have your site planned first, to find out what you need. Then make a
selection of your methodology based on those needs. IOW, pick the right
tool for the job. Don't let the tool drive the job.

I am preparing proposal, and need to specify which methodology to use,
although OOAD is preferred since it s covered in the course module.
The problems is, as I replied The Natural Philosopher in 3rd post.
Well, if this is for a course, then you need to be specifying what the
course expects. In the real world, you determine the requirements for
the project, and let those determine the methodology, language, etc. to
be used. Of course, this also assumes you have personnel equally
qualified in all methodologies and languages. But since that is almost
never the case, things like those have to be taken into consideration, also.
>And contrary to other claims here, I've been doing OOAD for almost 20
years - before Booch, Rumbaugh and the rest became popular. And no, it
does not take more time to build an OO design than it takes to write
procedural code. In fact, I've found virtually every project where you
have experienced OO designers and programmers, the entire project from
design through final test takes less time and has fewer bugs than than
similar projects done procedurally.


On Dec 16, 7:25 pm, The Natural Philosopher <a...@b.cwrote:
>For this reason I tend to take a "mostly OO" approach. I put as much
code as possible in classes, but simple utility code that might be
needed anywhere in the package in unreleated classes may just end up
in standard functions.

While it seems to be logically fine to code using both procedural and
OO to mix around, but which methodology it is actually refering to?
I prefer an OO approach. I can do things more quickly in OO than most
procedural programmers. And the larger a project grows, the more I find
I reuse OO code. OTOH, I see comparatively little reuse of procedural
code (unless you count copy/paste).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Dec 17 '07 #12
On Dec 17, 10:34 am, Jerry Stuckle <jstuck...@attglobal.netwrote:
>
On Dec 16, 7:25 pm, The Natural Philosopher <a...@b.cwrote:
For this reason I tend to take a "mostly OO" approach. I put as much
code as possible in classes, but simple utility code that might be
needed anywhere in the package in unreleated classes may just end up
in standard functions.
While it seems to be logically fine to code using both procedural and
OO to mix around, but which methodology it is actually refering to?

I prefer an OO approach. I can do things more quickly in OO than most
procedural programmers. And the larger a project grows, the more I find
I reuse OO code. OTOH, I see comparatively little reuse of procedural
code (unless you count copy/paste).
Thanks for the great input.

Basically, to sum up, I supposed that PHP is a hybrid language, just
like C++, you can code in procedural and revert back to OO whenever
you like, of course not considering the code maintenance or reuse.
Will that be a serious problem in PHP just like 'do C++
procedurally' ?

Sorry if this question sound stupid.
Dec 17 '07 #13
Leah wrote:
On Dec 17, 10:34 am, Jerry Stuckle <jstuck...@attglobal.netwrote:
>>On Dec 16, 7:25 pm, The Natural Philosopher <a...@b.cwrote:
For this reason I tend to take a "mostly OO" approach. I put as much
code as possible in classes, but simple utility code that might be
needed anywhere in the package in unreleated classes may just end up
in standard functions.
While it seems to be logically fine to code using both procedural and
OO to mix around, but which methodology it is actually refering to?
I prefer an OO approach. I can do things more quickly in OO than most
procedural programmers. And the larger a project grows, the more I find
I reuse OO code. OTOH, I see comparatively little reuse of procedural
code (unless you count copy/paste).

Thanks for the great input.

Basically, to sum up, I supposed that PHP is a hybrid language, just
like C++, you can code in procedural and revert back to OO whenever
you like, of course not considering the code maintenance or reuse.
Will that be a serious problem in PHP just like 'do C++
procedurally' ?

Sorry if this question sound stupid.
No, not at all stupid.

Yes, PHP is a hybrid language - it started out as a procedural language,
but is acquiring more and more OO features with each release.

And yes, you can mix the two, and you need to to a certain extent. For
instance, you need some code which is in no function or class just to
execute on your page. So while you can have a purely procedural system,
you can't have a purely OO one.

I strive to have as much OO code as is applicable, but I don't try to
force everything into an OO mold.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Dec 17 '07 #14
Leah wrote:
On Dec 17, 10:34 am, Jerry Stuckle <jstuck...@attglobal.netwrote:
>>On Dec 16, 7:25 pm, The Natural Philosopher <a...@b.cwrote:
For this reason I tend to take a "mostly OO" approach. I put as much
code as possible in classes, but simple utility code that might be
needed anywhere in the package in unreleated classes may just end up
in standard functions.
While it seems to be logically fine to code using both procedural and
OO to mix around, but which methodology it is actually refering to?
I prefer an OO approach. I can do things more quickly in OO than most
procedural programmers. And the larger a project grows, the more I find
I reuse OO code. OTOH, I see comparatively little reuse of procedural
code (unless you count copy/paste).

Thanks for the great input.

Basically, to sum up, I supposed that PHP is a hybrid language, just
like C++, you can code in procedural and revert back to OO whenever
you like, of course not considering the code maintenance or reuse.
Will that be a serious problem in PHP just like 'do C++
procedurally' ?

Sorry if this question sound stupid.
Not at all.

I use it entirely procedurally. Simply because that's the way I learnt
programming and I don't have the time in smaller projects to do the
necessary design work for OOP.

OOP comes into its own with large projects where project specification
is split off from the actual coding.

To just put together a few websites its not really that necessary.

Dec 17 '07 #15

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

Similar topics

2
by: Joh | last post by:
Hello, (sorry long) i think i have missed something in the code below, i would like to design some kind of detector with python, but i feel totally in a no way now and need some advices to...
28
by: Jed | last post by:
Hello to all! I have a couple of projects I intend starting on, and was wondering if someone here could make a suggestion for a good compiler and development environment. My goals are as...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
0
by: Gildas Garcia | last post by:
Hello ! I need to build a intranet website which will manage all materials (computers, cars, printers, ...) for all centers of my company. Actually, I know c# and have already built some...
1
by: Ben | last post by:
Hi, I come from classic asp and i need some advice for this application. It's about a computer reservation system in a school. I want a page where a student can see his own made reservations,...
3
by: vijaykokate | last post by:
Our company http://www.softnmation.com/ offers its customers a great variety of products. Everything you need can be found in this site. Web Template, CSS Template, Logo Template, Corporate...
15
by: Gan Quan | last post by:
I'm writing a c++ program that has many (100+) threads read/write files simultaneously. It works well if not considering the efficiency. The file i/o seems to be the bottleneck. This is my code...
1
by: murdla | last post by:
Hello. I am working on a project where users can automatically create personnel advices on the mainframe through a .NET Web Service. My current problem is that I am trying to call a...
6
by: smk17 | last post by:
I've spent the last few minutes searching for this question and I found an answer, but it wasn't quite what the client wanted. I have a simple online form where the user needs to fill out five...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.