Jump to content

TravisJRyan

Members
  • Posts

    28
  • Joined

  • Last visited

    Never

About TravisJRyan

  • Birthday 08/07/1980

Profile Information

  • Gender
    Male
  • Location
    Las Vegas, NV

TravisJRyan's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I think that is why I like Zend over the others I have used. You dont HAVE to use everything it offers or even use their MVC. Just like you said tho, its mor eof a library. . hell, isnt the folder name its packaged with named library? haha. Zend all the way. I do like cake and symphony for its ability to create a basic template to start with. "Scaffolding" but really only useful for administrative type sites, well for what I have done with them.
  2. __get & __set break encapsulation just as he was arguing. . .so php has an inconsistency with its magic methods. What happens when you reference a private property of an object? It goes to __get() or __set() where you CAN break the theory of encapsulation. If a property is private, "why provide a means of accessing it?" After discussions at work and everything, its come down to that. Allow the break in encapsulation in one method, why not all of them? or fix the others.
  3. I tried expr "sama*ntha" on this test case "sammntha" no matches
  4. So would you agree that calling a method of an object that id declared as private should not throw and exception if the __call magic function is present in the class and can be called if the object's method it is calling is out of its scope?
  5. Cake is pretty sweet. I used to for several simple apps in the past but most recently got into ZF obviously from all the plugs I have been giving it. Promise ill quit. . haha. It really is an easy framework to learn, but cakePHP is just as easy, tab bit slower from what I have read.
  6. because its doing this match literally "sam" match "a" optionally and as many times match literally "ntha" http://www.regular-expressions.info/ And check out regex buddy. Handy tool
  7. haha. .agreed, and ya, I would probably think that as well. I suppose my example was pretty lame.
  8. Give Zend Framework a try, word has it they are partnering with dojo javascript framework, so your ajax app may be really simple with that one.
  9. In this particular case today we have something in our application that sends various emails. Every method requires similar parameters and the responses should be the same. So the idea was to create a simple script that ripped through all the method names, pass in an id, get a response. Easily logged with a script or debugger during development agreed. The scope of a private/protected method inside of a class seems off point however. Its not a requirement of knowledge on how a class is implemented, but perhaps a "convenience" option should you need that type of information..
  10. I believe that yes, a debugger works just as well, but is a waste of time stepping through crap. If I can dump stuff on run time and be quick about things, Id rather do that on my dev box then step through crap. I have the zend debugger installed on my dev box but I think have used it a handful of times. What fundamental flaw are you referring to? --------------------- What it gets down to is this. A private method shouldn't and isn't accessible by any other object...right? Would that mean Object A looking at Object B's private method be ok? (this sounds horrible) Shouldn't a private method but invisible so to speak to anything outside of itself. With that thought: Why would we throw a fatal error when trying to call it if according to object A, the private method in object B isn't accessible. Wouldn't it make sense in the case that it is not visible by something outside itself to invoke the __call() magic method even if __call simply calls the private method by that name? I suppose the real question isn't my clouded jankie way of unit testing (which for the record I never did, just made it up for discussion sake. . . lol ) or debugging, but whether or not PHP is operating as it should when it tosses a fatal on attempts to access a defined method in a class that is either protected or private when a __call method is present.
  11. Have you tried one yet? Zend is probably the easiest. . a few hours reading and im sure you will be a 5-10 in php knowledge AND zend framework, its well documented. and has a cool search documentation feature. Dont worry about the planning out all the classes. . there are tons of people who did that for you. CodeIgnitor Symfony Zend Framework CakePHP
  12. Try Zend Framework, or your choice in php frameworks for rapid OOP/MVC development
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.