Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
fundamental dispatcher strategy flawed?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  22 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
kaceong@gmail.com  
View profile  
 More options May 25 2006, 11:57 pm
From: "kace...@gmail.com" <kace...@gmail.com>
Date: Thu, 25 May 2006 20:57:16 -0700
Local: Thurs, May 25 2006 11:57 pm
Subject: fundamental dispatcher strategy flawed?
I am new to Cake but have prototyped a few simple apps.

I am puzzled by the dispatcher strategy that maps URL directly into
function names.

e.g. http://mycakeapp/control1/action1
       maps into a direct method call on action1 of class control1

This means that many function names that cannot be overloaded in
PHP cannot be used as action names.

e.g. an action "list" mapping to a method "list" is not possible
because "list" cannot be used as a method name

I suppose you can create aliases to circumvent this problem but it
seems
a contradiction to the mantra of specifying everything once.

Other frameworks solve this problem by mapping "action1" into a
function name "action_action1" which is clearer and is valid for any
word.

It also makes it easier when reading the source code to pick out
which methods are invokable as an action, and which methods are
for internal use.

Kace


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
100rk  
View profile  
 More options May 26 2006, 7:17 am
From: "100rk" <lubomir.st...@gmail.com>
Date: Fri, 26 May 2006 04:17:54 -0700
Local: Fri, May 26 2006 7:17 am
Subject: Re: fundamental dispatcher strategy flawed?
Try to read more about routes:

http://manual.cakephp.org/chapter/4


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nate  
View profile  
 More options May 26 2006, 9:38 am
From: "nate" <nate.ab...@gmail.com>
Date: Fri, 26 May 2006 13:38:02 -0000
Local: Fri, May 26 2006 9:38 am
Subject: Re: fundamental dispatcher strategy flawed?
I don't see how that's more clear.  The fact that you'd have to
explicitly prefix actions with "action_" is redundant in itself, as all
public controller methods are implicitly actions already.  Also, you'll
note that controller methods prefixed with _ are considered private,
and therefore inaccessible via the Dispatcher, which is a much more
sensible way to organize things.

The fact that you can't use a few words out of an entire language
(absent a small configuration change) is a minor inconvenience at best,
and hardly reason enough to change the way Dispatcher works.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kaceong@gmail.com  
View profile  
 More options May 27 2006, 5:11 am
From: "kace...@gmail.com" <kace...@gmail.com>
Date: Sat, 27 May 2006 02:11:57 -0700
Local: Sat, May 27 2006 5:11 am
Subject: Re: fundamental dispatcher strategy flawed?

nate wrote:
> The fact that you can't use a few words out of an entire language
> (absent a small configuration change) is a minor inconvenience at best,
> and hardly reason enough to change the way Dispatcher works.

Unbelievable!  If that is the attitude of developers on this platform,
I won't
be pinning much hope on the future of cake.

Any strategy that works sometimes and not sometimes is fundamentally
flawed.  It's not a minor inconvenience, because it creates a situation
where the undesirable behaviour need to be explicitly documented.

And as far as I can see, no one has bothered to document it.  Is that
why
the mailing list is full of people complaining how difficult cake is to

understand???

Kace


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
AD7six  
View profile  
 More options May 27 2006, 5:28 am
From: "AD7six" <andydawso...@gmail.com>
Date: Sat, 27 May 2006 09:28:19 -0000
Local: Sat, May 27 2006 5:28 am
Subject: Re: fundamental dispatcher strategy flawed?
Hi Kaceong,

Have you invesigated what you would need to do to use the url
"/controller/list" ..?

Writing one line in the routes file means that you DON'T need to write
action_ in front of every method ( using the suggestion above ). It can
quickly become tiresome writing things that you don't need to ;).

Cheers,

AD7six
For info:
http://es2.php.net/manual/en/reserved.php#reserved.keywords


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gwoo  
View profile  
 More options May 27 2006, 6:42 am
From: gwoo <g...@rd11.com>
Date: Sat, 27 May 2006 06:42:39 -0400
Local: Sat, May 27 2006 6:42 am
Subject: Re: fundamental dispatcher strategy flawed?
@Kace:
Developers have opinions, as you have clearly expressed.
PhpNut, Nate and I, along with others regularly discuss our  
differences of opinion.
This is actually what makes Cake work so well. As AD7six pointed out  
twice, routes
is the answer to your question.

Count how many people have trouble and then comeback saying "I  
figured it out"
or "wow, this is neat" or as pat recently said "i may be getting a  
hang of this"
and you will find that there are many people enjoying Cake.

That said, it  sounds to me like you are looking for reasons not to  
use a framework.
Understand that each framework is one of personal tastes. You say any  
strategy that
works sometimes and not sometimes is fundamentally flawed, when in  
fact this is the purpose
of the 80% rule that most frameworks live by. For the other 20%, you  
could always modify
things to your liking.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
100rk  
View profile  
 More options May 27 2006, 12:58 pm
From: "100rk" <lubomir.st...@gmail.com>
Date: Sat, 27 May 2006 09:58:10 -0700
Local: Sat, May 27 2006 12:58 pm
Subject: Re: fundamental dispatcher strategy flawed?

> ...how many people have trouble and then comeback saying...

I think it is caused by MVC rules, which not everyone is prepared to
follow. There is many people in this fast-living world who try to ommit
time with printed manual and/or study foreign code.

@Kace: I really don't think 'mailing list is full of people complaining
how difficult cake is to understand' ;-) Show me those threads which
aren't finished by solution. I think routes could satisfy Your needs.
If not, be more detailed, pleace - there is surely possible way (or
You're trying to use CakePHP by way it is not supposed to).


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bret Kuhns  
View profile  
 More options May 27 2006, 3:30 pm
From: "Bret Kuhns" <bku...@gmail.com>
Date: Sat, 27 May 2006 12:30:39 -0700
Local: Sat, May 27 2006 3:30 pm
Subject: Re: fundamental dispatcher strategy flawed?
I completely agree with 100rk. MVC can be a design paradigm that people
don't quite grasp right away. There are lots of people who don't
understand Rails because of the same reason. But once those people
start getting answers on the group/IRC/manual/API/etc and play with
cakePHP more, they will begin to understand it as qwoo pointed out
(isn't that how everything works?). Kace's question comes from a lack
of understanding of how cake works, and his reponse to nate's solution
shows he's not willing to learn. It's people that aren't willing to
accept the paradigm and won't spend the time to understand how to
utilize it that hurts cake... not the developers.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nate  
View profile  
 More options May 27 2006, 5:19 pm
From: "nate" <nate.ab...@gmail.com>
Date: Sat, 27 May 2006 21:19:56 -0000
Local: Sat, May 27 2006 5:19 pm
Subject: Re: fundamental dispatcher strategy flawed?
Strategy?  That's a pretty weighty word for something so minor,
There's nothing in this situation that needs to be documented.  If you
know how to use PHP, you know what the reserved words are.  If you know
how to use Cake, you know how to write a route to get around that.

@All: just goes to show you that you can't make everybody happy *and*
develop good software.  If you want to go over to the land of flowers
and butterflies where everyone is happy all the time, and all
development happens be group consensus, go use the Zend Crapwork.

@Kace:
You can't always get what you want.
No you can't always get what you want.
You can't always get what you want.
But if you try sometimes,
well you might just find,
you get what you neeeeed!!
Ahhh yeah!

And really, that's the point of opinionated software.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kaceong@gmail.com  
View profile  
(1 user)  More options May 30 2006, 10:37 pm
From: "kace...@gmail.com" <kace...@gmail.com>
Date: Tue, 30 May 2006 19:37:04 -0700
Local: Tues, May 30 2006 10:37 pm
Subject: Re: fundamental dispatcher strategy flawed?
To all who responded:

It is not true I don't understand MVC.  In fact I have been using MVC
as the
basis of my own software development for past 5 years, and I have coded
in
many programing languages from Java to Python.

So I do understand what frameworks are for.  Please stop projecting
your
own psychoanalytic interpretations onto someone else.

I come to Cake to find a well thought out php MVC frameworks
out of so many bad versions.

A good framework removes most of the quirks and gotchas from the
environment, so that application writers can focus on the meat of the
apps.  That is why frameworks take care of caching, sanitising inputs,
database handling, sessions etc, and hiding the PHP dependencies
in version and underlying libraries.

A framework is not just a library, because a framework has a default
execution path, which means it is a fully runable application.
Plugging
in the application-specific parts turns it into a real app.

My original perception of Cake was that the developers seem to have
deeper understanding of what MVC frameworks should and can do,
and also a good understanding of enterprise application patterns.
That I hope resulted in codes that are more systematic, orthogonal,
and elegant.

It took a month of experimentation using bad documentation and
tutorials that don't work to figure out what I now understand: cake
is not as elegant as it could have been.  The default execution
path strategies are prone to be broken without warning, e.g.
in my case, if you try to create an action called "list" in a
controller.

>Strategy?  That's a pretty weighty word for something so minor,
>There's nothing in this situation that needs to be documented.  If you
>know how to use PHP, you know what the reserved words are.  If you know
>how to use Cake, you know how to write a route to get around that.

If you cannot rationally accept there are things that need fixing in
this software, how can you ever progress?

There is definitely something big and nasty that needs to be fixed, or
documented, or preferably both.  Unless cake is not meant to be used by

serious developers, in which case I rest my case.

Kace


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Larry E. Masters aka PhpNut  
View profile  
(1 user)  More options May 30 2006, 11:31 pm
From: "Larry E. Masters aka PhpNut" <php...@gmail.com>
Date: Tue, 30 May 2006 22:31:37 -0500
Local: Tues, May 30 2006 11:31 pm
Subject: Re: fundamental dispatcher strategy flawed?

Kace,

I rarely reply to threads on this list since it is more user to user support
but you got my attention here, with what seems to be a blatant attack on the
project and the developers I have working with me.

How many times have you sent an email to this list in that "month" that your
where "studying" Cake, asking how to do something?

I only see one email which happens to be sent on the same day you joined the
group, and that is not a question but more of a statement saying that we
have a flawed routing system.

Or have you stopped by the IRC channel looking for help?
Maybe even opened a ticket on our trac site stating that something is not
clear in the documentation.

I will ask you another question now "oh god of coding".
What is more of a contradiction to the mantra of specifying everything once
as you put it.
Adding prefixes to all method names, or writing one route to do what you
need?

You ask why we do not do things like others, my answer is we are not like
others, as is obvious with the way we have taken our code.
Adding prefixes to methods is nothing but redundancy that is not needed, nor
will it ever be added. You stumbled upon a reserved word in php and
therefore need a workaround, why should we add prefixes to all methods for
these few words in php?

Cake is for people who are willing to learn and use the conventions we have
wrote for it, simplicity is the key.

--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On 5/30/06, kace...@gmail.com <kace...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nate  
View profile  
 More options May 31 2006, 12:00 am
From: "nate" <nate.ab...@gmail.com>
Date: Wed, 31 May 2006 04:00:45 -0000
Local: Wed, May 31 2006 12:00 am
Subject: Re: fundamental dispatcher strategy flawed?
Wow.  I mean, wow.  Clearly your head is a bit too big for it's own
good.  I don't usually go this far, but it has at this point become
apparent to me that you've come here looking for a fight, and just need
to be put in your place.  I have been developing software for over 12
years in as many different languages.  As such, I'm reasonably
confident that I know more than you.  End of discussion.  Stop trying
to compensate for your lack of self-esteem.

Now, I will grant you that there are places where Cake could use
improvement, but this is not it.

Also, you'll have to excuse me if I have a hard time believing that you
have "experience" applying principles like MVC and convention over
configuration, since thus far you've raised most of the same objections
that we see on this list from n00bs on a regular basis.

In conclusion, please stop using Cake.  Also, go away.  In fact, go use
Symfony, you'll be able to over-code to your heart's content.  I truly
believe you'll be happier there.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kaceong@gmail.com  
View profile  
 More options May 31 2006, 3:23 am
From: "kace...@gmail.com" <kace...@gmail.com>
Date: Wed, 31 May 2006 00:23:58 -0700
Local: Wed, May 31 2006 3:23 am
Subject: Re: fundamental dispatcher strategy flawed?
Nate and Larry

I definitely do not intend to use Cake now that I see how inflated the
developer's ego is, that they cannot take any criticism of their
application.

What I brought up in this forum is to bring up my experience
encountering
an aberration in the framework, and all I get in return are
(1) denial (2) personal attack.

I have not attacked anyone, only the architectural design decision
which
I found to be less than orthogonal.  Those who take offence have
inferred their own proximity to the issue and inflicted
it upon themselves.

I don't know which developer made the decision to tie the name of an
action to the name of a method as a default execution path.  This is
not
safe nor universally workable.  But I did not attack him or her, only
the
strategy itself.

Whether or not anyone agrees with me, there is no denying that
such a decision has made the framework less than robust, and
requires additional code in route construction and additional
documentation to point this out to new developers.

My email raised this and nothing more.  Everything else
coming from you are overreactions because you cannot
separate the programmer's ego from his project.

Pulling out your resume to see who's balls are bigger?  How
terribly immature.

So, before I sign off from this cesspool, let me just draw
your attention to everything mentioned on Cake website's
frontpage and let you know that my experience has shown
exactly the opposite.

-- "Active Friendly community" -- nope, not what I have seen

-- "Extremely simple" -- just a few gotchas that nobody bother to
document,
  because you can sure figure out for yourself.  If not, you must be
insulted.

-- "Rapid development" -- if this is so, how come until now there isn't
any major
   non-toy application like blog, albums, ecommerce, CMS created yet in
   the forge?  

-- "No configuration" -- far from it

Kace


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Zimmerman [gmail]  
View profile  
 More options May 31 2006, 3:37 am
From: "John Zimmerman [gmail]" <john.z...@gmail.com>
Date: Wed, 31 May 2006 00:37:33 -0700
Local: Wed, May 31 2006 3:37 am
Subject: Re: fundamental dispatcher strategy flawed?

Lets all agree to just leave this thread alone.

Both sides have a point.  The Cake Devs didn't feel the issue brought up was
a problem.

Both sides are one developer's opinion.

Cake Devs are free to do with the code as they like.

Kace is free to use what he likes.

Most of us are happy with what the Cake Devs are doing and will run with it.

The thread can go on an on, but basically it is what it is.

On 5/31/06, kace...@gmail.com <kace...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Larry E. Masters aka PhpNut  
View profile  
 More options May 31 2006, 3:50 am
From: "Larry E. Masters aka PhpNut" <php...@gmail.com>
Date: Wed, 31 May 2006 02:50:23 -0500
Local: Wed, May 31 2006 3:50 am
Subject: Re: fundamental dispatcher strategy flawed?

Kace,

Your opinion why it is flawed is still lacking any proof.
Until you have proof that this is truly a flaw in our design and not your
opinion, which like assholes everyone has one, I would keep it to yourself.
Maybe if you would have approached this topic with a little less arrogance,
you would have received a better response, but dude you came pissing into
the wrong house.

You must think it is more productive to duplicate a prefix over all methods
in a class, which is not the case. You think you lose robustness by adding a
route vs. adding prefixes and having to check these prefixes?

Cake has conventions that are used for method names the only prefixes are _
and __ . Since PHP 4 does not have private and protected methods we use
these to block access to "private" and "protected" methods in the url.

And please explain the non toy application comment?
You have no clue what your talking about.

We have just completed a project thorough the foundation
http://www.cakefoundation.org/pages/clients

Not to say there are plenty others out there.
One that comes to mind is:
http://blog.usweb.com/archives/phps-answer-to-ruby-on-rails-cakephp/

Do a little research before coming here pulling your dick out, you might
save yourself the embarrassment.
You might want to do a little research on me also while your at it, I have
been around the open source community much longer then your 5 years of
software development, and back up my arrogance with proof and code.

--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
flasheru  
View profile  
 More options May 31 2006, 4:37 am
From: "flasheru" <cosmin.cim...@gmail.com>
Date: Wed, 31 May 2006 08:37:46 -0000
Local: Wed, May 31 2006 4:37 am
Subject: Re: fundamental dispatcher strategy flawed?
Hello!

I am far from even 5 years of PHP development but anyway the subject of
this topic is also far from the content.
I just want to answer to kaceong's last points on this group and point
out that they're, well "fundamentally flawed".

"Active Friendly community" - now that comes with a price and that's
usually "a friendly approach" mind you.

"Extremely simple" - true, Cake is not as simple as asking a question.
But darn close. And asking usually implies not trying to discredit
anyone for their hard work.

"Rapid development" - 1.0 stable was relased May 2'nd so one month for
a huge and serious app would be in the "Lightning Fast Development"
area. Cake just goes for "Rapid".

"No configuration" - well the truth is that if you go with the standard
install there's none. But as we're developers with habits here each one
of us has his own setup more or less.

As I've already said it here:
http://cosmincimpoi.blogspot.com/2006/05/now-you-can-have-your-cake-a...
I personally love Cake and am willing to bet my next project's success
on it. So anyone has any problems with the community or the framework
can just move on from my point of view.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sonic  
View profile  
 More options May 31 2006, 5:59 am
From: "Sonic" <psychiesl...@gmail.com>
Date: Wed, 31 May 2006 09:59:40 -0000
Local: Wed, May 31 2006 5:59 am
Subject: Re: fundamental dispatcher strategy flawed?

found the community nothing less than extremely Active, Friendly and
Helpful. Since I started I have been constantly asking questions on the
IRC channel and have found that there is always someone there willing
and able to help, no matter how stupid the question (I've had a lot of
late nights lately). I have found cake to be so appealing and
interesting that I have decided to switch my current project over to
the cake framework mid way through. I have no doubt in my mind that
this was good decision. Cakeforge is constantly growing and judging
from the conversation on the IRC channel, there are number of large
scale projects being developed using the CakePHP framework.

As for your comments about the documentation, well for the amount of
time CakePHP has been available, as well as the small size of the core
developers and documenters, I'm surprised it's so well documented at
all! Sure there are gaps but these are constantly being filled as they
are found. Besides what some of us believe, the team are actually only
human and therefore can only do so much, so well, in a given time.

For me, CakePHP is one of those things, like your favourite song, you
wish you were the one who had written it. Serious respect goes out to
the team.

Sonic.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kaceong@gmail.com  
View profile  
 More options May 31 2006, 9:40 am
From: "kace...@gmail.com" <kace...@gmail.com>
Date: Wed, 31 May 2006 06:40:59 -0700
Local: Wed, May 31 2006 9:40 am
Subject: Re: fundamental dispatcher strategy flawed?
This will be my last post on this thread.  Rational discussions simply
don't seem to register in this forum.

To John, thanks for the first clear-headed response.  Yes everyone
should do whatever he or she prefers, and not try to convince anyone
else.  It was my mistake to think I could discuss a design issue
rationally with fanboys.

To Phpnut, I don't need to prove there is a flaw -- I just call it as
I saw it.  A textbook hello-world app does not work when the action
name was called "list", but works with another name "lists".
Whose fault?  Perhaps PHP.  But since the list of reserved function
names in PHP is dependent on version and installed modules, this
is a poor way to spec out a default behaviour for a framework that
might have to support multiple hosting environment.

Mathematically one counter-example is all it takes to "disprove"
a framework.

I already said I don't want a pissing contest, and you still persist
in doing so.  For the record, I said I have 5 years of coding MVC,
not 5 years of coding.  I started coding at 13 and I am 43 years
now, so that's 30 years of IT experience beginning with PDP-11.
I won't stop pulling out my dicks when I need to since I do know
what I am talking about.

Originally I have prepared a list of 25 design issues to raise in this
forum, together with my own source code changes.  But now it
is clear to me how resistant to criticism the cakesters are, so I
won't be bothering.

For those who are watching on the side and who likes Cake,
I say more power to you.  My only interest is to study the
framework and learn about it -- a framework that started with
so much promise and accolade, I was not prepared for the
denial attitudes.  To be honest the quality of source code is
not bad, which is why it is a big shame.

This is my last post and the Marie Antoinettes in this forum
can continuing telling people to eat cake, but in my opinion
a little humility and reality check is sorely needed for the cake
community to move ahead.  A community that does not
allow critics to exist will never see the truth in the
emperor's new clothes.

Kace
sign off


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Larry E. Masters aka PhpNut  
View profile  
 More options May 31 2006, 9:51 am
From: "Larry E. Masters aka PhpNut" <php...@gmail.com>
Date: Wed, 31 May 2006 08:51:20 -0500
Local: Wed, May 31 2006 9:51 am
Subject: Re: fundamental dispatcher strategy flawed?

Did you read my post?
If you would have approached this originally with some respect I think you
would have received a better welcome.

As I stated before, I do not reply to this mail list often, as I am busy
working on the project full time. And when I saw your attacks on this list
it pissed me off, so step back take a breath and think before posting here.

You where given the correct ways to deal with these reserved words, that is
the proper way to do it, not by adding a prefix to a method name. Convention
over configuration, would say do not use the word list if you know it is
reserved. And if you must then this falls outside of above concept, since
you are doing something the language would not normally allow anyway.

So this is not a flaw in the dispatcher, I WILL REPEAT AGAIN, it is not a
flaw in the design of the dispatcher.

I am on the IRC channel almost 24 hrs a day so stop in there and discuss
this.

--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On 5/31/06, kace...@gmail.com <kace...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gwoo  
View profile  
 More options May 31 2006, 10:57 am
From: gwoo <g...@rd11.com>
Date: Wed, 31 May 2006 07:57:38 -0700
Local: Wed, May 31 2006 10:57 am
Subject: Re: fundamental dispatcher strategy flawed?
@Kace:
No one is averse to design discussions, but you came at it from the  
wrong angle. You did not ask why the dispatcher was designed the way  
it is. You came out and said it was flawed. This approach rarely wins  
you any followers. I believe I answered pretty clearly in very early  
on in this thread warning you that you were approaching the  
discussion from a place that could piss people off.

-"Mathematically one counter-example is all it takes to "disprove" a  
framework."
but the point is that your example does not work because there is an  
optional route you can use. Again, why prefix everything when there  
are few reserved words?

In any case, we have an RFC procedure on https://trac.cakephp.org  
that is reserved for design discussions. Its pretty simple, you  
submit a ticket marked RFC and someone replies to it. The google  
group is not where development takes place. BTW, We are working on  
2.0 which reworks some of 1.0 and adds much more. Constructive  
criticism is welcome, but the approach is as important as the  
content. Do not tell people who work extremely hard and have spent a  
tremendous amount of time thinking about the design that they are  
flawed, when you yourself just joined the list the day of your first  
post and the time you spent inspecting the framework is only a week.  
It will not get you very far.

Good Luck.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bkuhns || (crash)  
View profile  
 More options May 31 2006, 1:43 pm
From: "bkuhns || (crash)" <bku...@gmail.com>
Date: Wed, 31 May 2006 17:43:38 -0000
Local: Wed, May 31 2006 1:43 pm
Subject: Re: fundamental dispatcher strategy flawed?
Kace wrote:

"A textbook hello-world app does not work when the action name was
called "list", but works with another name "lists". Whose fault?
Perhaps PHP"

If you've been using PHP long enough to develop a few sites/apps
*without* cakePHP, you should have come across the lovely list() [
http://php.net/list ] function which will take enumerated values from
an array and place them into variables for you. Even in traditional
development without cakePHP, you would never create your own list()
function since it already exists. This is perhaps a flaw of PHP because
of the lack of namespaces for the core functions, but it also adds to
PHP's ease of use.

Cake is not wrong for this, it's something you just shouldn't do in PHP
even without a framework. Most PHP developers would know this and would
refrain, but clearly you don't have the experience; which is fine, but
you went about your original message the wrong way.

Just because you don't understand both the language and the framework
doesn't mean the system is flawed. Obviously nothing is perfect, and
yes both Cake and PHP have their flaws, but by understanding your
environment you can walk around most of these problems. It's not a big
deal to write a specific route for yourself, and it's more of a deal to
require every other cakePHP developer to start putting something like
"action_" in front of every single one of their action methods. The
issue you have is not a design flaw with Cake because the majority of
developers are not affected, and the ones who are have a very simple
configuration available to resolve the problem.

I don't work on Cake, and I haven't even been using MVC for very long,
but as gwoo said, it's very easy to see you went about discussing this
the wrong way. The community has been good to me, and if you submit
your development insights in the appropriate place with the correct
demeanor, I'm sure your suggestions will be considered with open arms.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Zimmerman [gmail]  
View profile  
 More options May 31 2006, 2:03 pm
From: "John Zimmerman [gmail]" <john.z...@gmail.com>
Date: Wed, 31 May 2006 11:03:23 -0700
Local: Wed, May 31 2006 2:03 pm
Subject: Re: fundamental dispatcher strategy flawed?

For the sake of productive discussions I suggest we let this thread die.

The more time that is spent on this thread the less time is spent trying to
solve "solvable" problems in other threads.

Life will go on.  So will Cake.

On 5/31/06, bkuhns || (crash) <bku...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google