At 8:52 AM +0100 2/29/08, Zoltán Németh wrote:
it's not just that, it's also a different way of thinking about your
data. for example say you have a 'user' - you always have one of that ;)
in procedural code you would store the properties of the user in an
array or whatever, and have an include
2008. 02. 29, péntek keltezéssel 10.12-kor tedd ezt írta:
At 8:52 AM +0100 2/29/08, Zoltán Németh wrote:
it's not just that, it's also a different way of thinking about your
data. for example say you have a 'user' - you always have one of that ;)
in procedural code you would store the
At 4:36 PM +0100 2/29/08, Zoltán Németh wrote:
sure, all information belonging to an object is usually in a record of a
db.
but, you mean include('user_functions.php') automatically loads that
data? based on what? a global $user_id variable? if so, I would consider
that poor design...
Whoa
tedd schreef:
At 4:36 PM +0100 2/29/08, Zoltán Németh wrote:
...
I don't like the tone here -- it appears that because I'm not agreeing
with you that my code is limited or of poor design -- because let me
assure you it's not!
So, let's just drop this -- you have your way and I have
2008. 02. 29, péntek keltezéssel 14.28-kor tedd ezt írta:
At 4:36 PM +0100 2/29/08, Zoltán Németh wrote:
sure, all information belonging to an object is usually in a record of a
db.
but, you mean include('user_functions.php') automatically loads that
data? based on what? a global $user_id
Zoltán Németh wrote:
2008. 02. 29, péntek keltezéssel 14.28-kor tedd ezt írta:
At 4:36 PM +0100 2/29/08, Zoltán Németh wrote:
sure, all information belonging to an object is usually in a record of a
db.
but, you mean include('user_functions.php') automatically loads that
data? based on what? a
Zoltán Németh wrote:
well, if classes are not convenient for you, then sure it would take
more time but only for the first time. after that, my experience is that
development time is less with classes
I do use classes, but mix it with procedural code and some function
libraries. But I'm a
At 8:57 AM +0100 2/28/08, Zoltán Németh wrote:
2008. 02. 27, szerda keltezéssel 14.02-kor tedd ezt írta:
Just about all my code was reduced to functions
and all functions were placed in files according
theme. My main was probably less than 50 lines
of code.
this is absolutely similar to
2008. 02. 28, csütörtök keltezéssel 09.12-kor tedd ezt írta:
At 8:57 AM +0100 2/28/08, Zoltán Németh wrote:
2008. 02. 27, szerda keltezéssel 14.02-kor tedd ezt írta:
Just about all my code was reduced to functions
and all functions were placed in files according
theme. My main was
Hi all,
What design patterns do you usually use?
--
Regards,
Shelley
On Wed, 2008-02-27 at 19:50 +0800, skylark wrote:
What design patterns do you usually use?
I am not sure that you are understanding what a design pattern is. It is
not a piece of software or a thing to use, but it is a set of repeatable
components that you use in whatever app you are writing.
What design patterns do you usually use?
Whatever solves the problem. Factory is quite a common one. MVC is another.
--
Richard Heyes
http://www.phpguru.org
Free PHP and Javascript code
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi guys,
What design patterns do you usually use?
--
Regards,
Shelley
2008. 02. 27, szerda keltezéssel 19.50-kor skylark ezt írta:
Hi guys,
What design patterns do you usually use?
whichever seems fit to the situation ;)
for me its most often singleton, registry, factory, activerecord
and you could also read the thread about these last week...
greets
Zoltán
Paul Scott schreef:
On Wed, 2008-02-27 at 19:50 +0800, skylark wrote:
What design patterns do you usually use?
I am not sure that you are understanding what a design pattern is. It is
not a piece of software or a thing to use, but it is a set of repeatable
components that you use in whatever
On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian [EMAIL PROTECTED] wrote:
On 2/27/08, Daniel Brown [EMAIL PROTECTED] wrote:
On Wed, Feb 27, 2008 at 6:46 AM, skylark [EMAIL PROTECTED] wrote:
Hi all,
What design patterns do you usually use?
This one:
Daniel Brown schreef:
On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian [EMAIL PROTECTED] wrote:
On 2/27/08, Daniel Brown [EMAIL PROTECTED] wrote:
On Wed, Feb 27, 2008 at 6:46 AM, skylark [EMAIL PROTECTED] wrote:
Hi all,
What design patterns do you usually use?
This one:
Jochem Maas [EMAIL PROTECTED] wrote:
Daniel Brown schreef:
On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian [EMAIL PROTECTED] wrote:
On 2/27/08, Daniel Brown [EMAIL PROTECTED] wrote:
On Wed, Feb 27, 2008 at 6:46 AM, skylark [EMAIL PROTECTED] wrote:
Hi all,
What
On Wed, Feb 27, 2008 at 10:05 AM, Wolf [EMAIL PROTECTED] wrote:
No, go with the Crushed purple velvet with the pageboy sleeves, that should
accentuate the colors of your hair...
Purple is my favorite color, actually, but I'd appreciate it if
you'd please stop peeking through my windows at
Wolf wrote:
But with the pattern you can make it bigger as needed And for them really
big sizes, contact Omar and see if he can use something other then tent
materials...
Though that flame resistant stuff might be good for those with an issue walking
and catching their knickers on
Daniel Brown wrote:
On Wed, Feb 27, 2008 at 6:46 AM, skylark [EMAIL PROTECTED] wrote:
Hi all,
What design patterns do you usually use?
This one:
http://www.vam.ac.uk/vastatic/microsites/1486_couture/create.php
It's maybe off-topic, but I like a slightly humorous note once
On Wed, Feb 27, 2008 at 9:55 AM, Jochem Maas [EMAIL PROTECTED] wrote:
besides the flower pattern doesn't really suit you, go with blue velvet ;-)
Don't touch me there, you're not my Daddy! ;-P
--
/Dan
Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?
--
Richard Heyes wrote:
What design patterns do you usually use?
Whatever solves the problem. Factory is quite a common one. MVC is another.
I have a story to kind of touch on what Jochem said about you just don't
know the name yet.
Just recently I was tasked with creating a new in-house
On Wed, 2008-02-27 at 14:48 +0100, Jochem Maas wrote:
Paul Scott schreef:
there seems to be some misunderstanding ... a design pattern is not
a component (or anything else of substance) but merely a conceptual
strategy used to tackle a problem ... ever find yourself writing code
that's
Paul Scott schreef:
On Wed, 2008-02-27 at 14:48 +0100, Jochem Maas wrote:
Paul Scott schreef:
there seems to be some misunderstanding ... a design pattern is not
a component (or anything else of substance) but merely a conceptual
strategy used to tackle a problem ... ever find yourself writing
On Feb 27, 2008, at 9:52 AM, Daniel Brown wrote:
On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian [EMAIL PROTECTED]
wrote:
On 2/27/08, Daniel Brown [EMAIL PROTECTED] wrote:
On Wed, Feb 27, 2008 at 6:46 AM, skylark [EMAIL PROTECTED]
wrote:
Hi all,
What design patterns do you usually use?
On Wed, Feb 27, 2008 at 6:46 AM, skylark [EMAIL PROTECTED] wrote:
Hi all,
What design patterns do you usually use?
This one:
http://www.vam.ac.uk/vastatic/microsites/1486_couture/create.php
--
/Dan
Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?
On Wed, Feb 27, 2008 at 10:16 AM, Aschwin Wesselius
[EMAIL PROTECTED] wrote:
Why not going with a Scottish kilt and have some cooling breeze while
showing off what you're made of? Clan-wars sometimes started with having
the wrong pattern on the kilt talking about the Bloods and the Crips
On 2/27/08, Daniel Brown [EMAIL PROTECTED] wrote:
On Wed, Feb 27, 2008 at 6:46 AM, skylark [EMAIL PROTECTED] wrote:
Hi all,
What design patterns do you usually use?
This one:
http://www.vam.ac.uk/vastatic/microsites/1486_couture/create.php
Somebody been thinking about wedding
Daniel Brown [EMAIL PROTECTED] wrote:
On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian [EMAIL PROTECTED] wrote:
On 2/27/08, Daniel Brown [EMAIL PROTECTED] wrote:
On Wed, Feb 27, 2008 at 6:46 AM, skylark [EMAIL PROTECTED] wrote:
Hi all,
What design patterns do you
Daniel Brown [EMAIL PROTECTED] wrote:
On Wed, Feb 27, 2008 at 10:16 AM, Aschwin Wesselius
[EMAIL PROTECTED] wrote:
Why not going with a Scottish kilt and have some cooling breeze while
showing off what you're made of? Clan-wars sometimes started with having
the wrong pattern on
On Wed, Feb 27, 2008 at 10:26 AM, Wolf [EMAIL PROTECTED] wrote:
OK, so now I have to ask... Where does an Irishman live that is in the
middle of Polocs working in IT?
Northeast Pennsylvania (USA). There's not much at all in the way
of IT around here, it's mostly factories and farms. I
On Wed, 2008-02-27 at 08:25 -0600, Ray Hauge wrote:
There is also such a thing as too much. I heard a talk a while ago
about code maintainability. The speaker mentioned a co-worker of his
ran into his cube almost exhausted and proclaimed, I finally did
it!.
I used every one of the
Robert Cummings wrote:
On Wed, 2008-02-27 at 15:53 +0100, Jochem Maas wrote:
Paul Scott schreef:
On Wed, 2008-02-27 at 14:48 +0100, Jochem Maas wrote:
Paul Scott schreef:
there seems to be some misunderstanding ... a design pattern is not
a component (or anything else of substance) but merely
On Wed, 2008-02-27 at 10:05 -0500, Wolf wrote:
Jochem Maas [EMAIL PROTECTED] wrote:
Daniel Brown schreef:
On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian [EMAIL PROTECTED]
wrote:
On 2/27/08, Daniel Brown [EMAIL PROTECTED] wrote:
On Wed, Feb 27, 2008 at 6:46 AM, skylark
On Wed, 2008-02-27 at 10:42 -0500, Robert Cummings wrote:
On Wed, 2008-02-27 at 10:05 -0500, Wolf wrote:
Jochem Maas [EMAIL PROTECTED] wrote:
Daniel Brown schreef:
On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian [EMAIL PROTECTED]
wrote:
On 2/27/08, Daniel Brown [EMAIL
On Wed, 2008-02-27 at 15:53 +0100, Jochem Maas wrote:
Paul Scott schreef:
On Wed, 2008-02-27 at 14:48 +0100, Jochem Maas wrote:
Paul Scott schreef:
there seems to be some misunderstanding ... a design pattern is not
a component (or anything else of substance) but merely a conceptual
Robert Cummings wrote:
No, go with the Crushed purple velvet with the pageboy sleeves, that should
accentuate the colors of your hair...
You fools... you can't just use any old design pattern anywhere. It's
really important to use the correct pattern otherwise things will just
fall
On Wed, Feb 27, 2008 at 10:42 AM, Robert Cummings [EMAIL PROTECTED] wrote:
You fools... you can't just use any old design pattern anywhere. It's
really important to use the correct pattern otherwise things will just
fall apart. This one is more aptly suited I think:
On Wed, 2008-02-27 at 10:55 -0500, Daniel Brown wrote:
On Wed, Feb 27, 2008 at 10:42 AM, Robert Cummings [EMAIL PROTECTED] wrote:
You fools... you can't just use any old design pattern anywhere. It's
really important to use the correct pattern otherwise things will just
fall apart. This
On Wed, Feb 27, 2008 at 10:58 AM, Robert Cummings [EMAIL PROTECTED] wrote:
Oh, the phallus endowment fairy passed you over eh!? Sorry to hear.
I was left with nothing but honesty and humility. Err
humiliation. Take your pick.
--
/Dan
Daniel P. Brown
Senior Unix Geek
? while(1) {
On Wed, Feb 27, 2008 at 10:37 AM, Robert Cummings [EMAIL PROTECTED]
wrote:
Surely he didn't explain OOP to you... he's anti OOP :)
ya; im waiting to see one of these 'simple' sites thats written strictly w/
functions and procedural code that does more than support a username
and password :)
Nathan Nobbe wrote:
Surely he didn't explain OOP to you... he's anti OOP :)
ya; im waiting to see one of these 'simple' sites thats written strictly w/
functions and procedural code that does more than support a username
and password :)
-nathan
I worked for a company where they maintain
On Wed, 2008-02-27 at 11:08 -0500, Nathan Nobbe wrote:
On Wed, Feb 27, 2008 at 10:37 AM, Robert Cummings [EMAIL PROTECTED]
wrote:
Surely he didn't explain OOP to you... he's anti OOP :)
ya; im waiting to see one of these 'simple' sites thats written strictly w/
functions and
Aschwin Wesselius schreef:
Nathan Nobbe wrote:
Surely he didn't explain OOP to you... he's anti OOP :)
ya; im waiting to see one of these 'simple' sites thats written
strictly w/
functions and procedural code that does more than support a username
and password :)
-nathan
I worked for a
On Feb 27, 2008, at 11:08 AM, Nathan Nobbe wrote:
On Wed, Feb 27, 2008 at 10:37 AM, Robert Cummings [EMAIL PROTECTED]
wrote:
Surely he didn't explain OOP to you... he's anti OOP :)
ya; im waiting to see one of these 'simple' sites thats written
strictly w/
functions and procedural
Jochem Maas wrote:
Aschwin Wesselius schreef:
Nathan Nobbe wrote:
Surely he didn't explain OOP to you... he's anti OOP :)
ya; im waiting to see one of these 'simple' sites thats written
strictly w/
functions and procedural code that does more than support a username
and password :)
On Wed, Feb 27, 2008 at 11:15 AM, Robert Cummings [EMAIL PROTECTED]
wrote:
On Wed, 2008-02-27 at 11:08 -0500, Nathan Nobbe wrote:
On Wed, Feb 27, 2008 at 10:37 AM, Robert Cummings [EMAIL PROTECTED]
wrote:
Surely he didn't explain OOP to you... he's anti OOP :)
ya; im waiting to
Nathan Nobbe wrote:
i understand designing for simplicity is key, however, things can only be
kept
so simple beyond reason. the more something does, the more complex it is;
period.
-nathan
Nice touch, but what I'm most afraid of is abstraction layers. It is
good to know what to abstract,
On Feb 27, 2008, at 11:42 AM, Aschwin Wesselius wrote:
No. Give me procedural code please. I can read that from top to
bottom, it sticks on 1 flow of the processing. Downside is having
some code multiple times all over the place (hence an argument for
OOP).
Wouldn't that be a perfect
On Wed, Feb 27, 2008 at 11:53 AM, Jason Pruim [EMAIL PROTECTED] wrote:
On Feb 27, 2008, at 11:42 AM, Aschwin Wesselius wrote:
No. Give me procedural code please. I can read that from top to
bottom, it sticks on 1 flow of the processing. Downside is having
some code multiple times
-Mensagem original-
De: Wolf [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 27 de fevereiro de 2008 12:06
Jochem Maas [EMAIL PROTECTED] wrote:
snip
Yeah, but I can't fit into that dress. ;-P
besides the flower pattern doesn't really suit you, go with blue
On Wed, Feb 27, 2008 at 12:07 PM, Thiago Pojda
[EMAIL PROTECTED] wrote:
Okay, this is just getting weird...
We're a very close-knit bunch. ;-P
--
/Dan
Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?
--
PHP General Mailing List (http://www.php.net/)
To
At 11:21 AM -0500 2/27/08, Jason Pruim wrote:
Procedural code just more sense to me... $this =$that makes more
sense then $this - $that or would it be $that -$this?
You and me both.
Also, this I understand:
$query = SELECT cert FROM cert eval_id = $eval_id;
$result = mysql_query($query) or
On Feb 27, 2008, at 12:07 PM, Thiago Pojda wrote:
-Mensagem original-
De: Wolf [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 27 de fevereiro de 2008 12:06
Jochem Maas [EMAIL PROTECTED] wrote:
snip
Yeah, but I can't fit into that dress. ;-P
besides the flower
On Wed, Feb 27, 2008 at 12:10 PM, tedd [EMAIL PROTECTED] wrote:
Sure, I understand that if you want to swap databases (MySQL to
whatever) having a abstract layer makes it easier. But, it don't make
it easier for me in the short term.
Or create a simple non-OOP db_query() function and
On Wed, Feb 27, 2008 at 11:42 AM, Aschwin Wesselius [EMAIL PROTECTED]
wrote:
Nathan Nobbe wrote:
i understand designing for simplicity is key, however, things can only
be
kept
so simple beyond reason. the more something does, the more complex it
is;
period.
-nathan
Nice touch,
2008. 02. 27, szerda keltezéssel 17.42-kor Aschwin Wesselius ezt írta:
Nathan Nobbe wrote:
i understand designing for simplicity is key, however, things can only be
kept
so simple beyond reason. the more something does, the more complex it is;
period.
-nathan
Nice touch, but
On Wed, Feb 27, 2008 at 12:32 PM, Zoltán Németh [EMAIL PROTECTED]
wrote:
2008. 02. 27, szerda keltezéssel 17.42-kor Aschwin Wesselius ezt írta:
Nathan Nobbe wrote:
i understand designing for simplicity is key, however, things can only
be
kept
so simple beyond reason. the more
2008. 02. 27, szerda keltezéssel 12.45-kor Nathan Nobbe ezt írta:
On Wed, Feb 27, 2008 at 12:32 PM, Zoltán Németh [EMAIL PROTECTED]
wrote:
2008. 02. 27, szerda keltezéssel 17.42-kor Aschwin Wesselius ezt írta:
Nathan Nobbe wrote:
i understand designing for simplicity is key, however,
At 6:32 PM +0100 2/27/08, Zoltán Németh wrote:
thanks to its good class structure if we need to modify something we
know which file to open and where to modify, even if that class was
originally the work of someone else in the team. how would you do that
without class structure?
greets
Zoltán
At 12:18 PM -0500 2/27/08, Daniel Brown wrote:
On Wed, Feb 27, 2008 at 12:10 PM, tedd [EMAIL PROTECTED] wrote:
Sure, I understand that if you want to swap databases (MySQL to
whatever) having a abstract layer makes it easier. But, it don't make
it easier for me in the short term.
Or
At 12:45 PM -0500 2/27/08, Nathan Nobbe wrote:
if i were going to design a system consisting largely of functions, i would
use the same practice i use for designing classes; each function would be
concise. that is, if functions became large, eg over 20 - 30 lines
One of the things I've
On Wed, Feb 27, 2008 at 2:17 PM, tedd [EMAIL PROTECTED] wrote:
At 12:45 PM -0500 2/27/08, Nathan Nobbe wrote:
if i were going to design a system consisting largely of functions, i
would
use the same practice i use for designing classes; each function would be
concise. that is, if functions
Richard Heyes schreef:
What design patterns do you usually use?
Whatever solves the problem. Factory is quite a common one. MVC is another.
anyone considered that 'function' and 'class' (given that we seem to
be flogging the old OOP v. Functions horse) are both design patterns if you
look
Daniel Brown schreef:
On Wed, Feb 27, 2008 at 12:10 PM, tedd [EMAIL PROTECTED] wrote:
Sure, I understand that if you want to swap databases (MySQL to
whatever) having a abstract layer makes it easier. But, it don't make
it easier for me in the short term.
Or create a simple non-OOP
On Wed, Feb 27, 2008 at 4:21 PM, Jochem Maas [EMAIL PROTECTED] wrote:
Daniel Brown schreef:
Most of my code is like public school on a Sunday or that one
uncle that no one in the family likes to acknowledge: no class.
that explains your taste in dresses :-)
Bite my shiny metal
Nathan Nobbe wrote:
adding layers of abstraction arbitrarily is foolish no matter what style the
code is written in. design patterns are largely methodologies for adding
abstraction but it takes time and practice to know when to use a particular
pattern and how to implement it.
one of the
On Wed, Feb 27, 2008 at 5:58 PM, Aschwin Wesselius [EMAIL PROTECTED]
wrote:
Nathan Nobbe wrote:
adding layers of abstraction arbitrarily is foolish no matter what style
the
code is written in. design patterns are largely methodologies for
adding
abstraction but it takes time and
2008. 02. 27, szerda keltezéssel 14.02-kor tedd ezt írta:
At 6:32 PM +0100 2/27/08, Zoltán Németh wrote:
thanks to its good class structure if we need to modify something we
know which file to open and where to modify, even if that class was
originally the work of someone else in the team. how
70 matches
Mail list logo