SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 42 of 42
  1. #26
    SitePoint Addict
    Join Date
    May 2003
    Location
    Calgary, Alberta, Canada
    Posts
    275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    // Brenden and the Dr both make $200/week
    $money = new Money(200);

    $brenden = new Person('Brenden');
    $brenden->earnMoney($money);

    $drLivingston = new Person('Dr. Livingston');
    // Dr was good and got a bonus this week
    $drLivingston->earnMoney($money->add(new Money(50)));

    // How much money did each person earn?
    // If money was not an immutable value object
    // both people would unintentionally have $250 
    Buy Jason's book .

  2. #27
    SitePoint Enthusiast Stryderjzw's Avatar
    Join Date
    May 2002
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just wanted to say. I also bought this book and am really enjoying it. I like the testing approach it takes and the examples provided are good as well.

    Good work.

  3. #28
    eschew sesquipedalians silver trophy sweatje's Avatar
    Join Date
    Jun 2003
    Location
    Iowa, USA
    Posts
    3,749
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by tetsuo shima
    Ordered it, got it, loved it. But darn... I didn't know at all that it had been written by a SPF member... Probably missed it if it was written somewhere in the book.

    Great stuff.

    Well... In the Acknowledgments section of the Introduction I did say:

    Quote Originally Posted by Me
    Another source of inspiration, ideas and experience is the SitePoint (http://www.sitepoint.com/) forums. In particular, the regular contributors to the “Advanced PHP forum” have a great wealth of experience and knowledge, which they regularly share in one of the most generous and helpful communities I’ve found on the Internet. It was through this resource I located SimpleTest (http://simpletest.sf.net/), WACT (http://wact.sf.net/) and numerous other PHP projects that I’ve found invaluable. I hope SitePoint continues to be a great resource for PHP developers for many years to come.
    But seeing as nearly everyone skips the boring intruction to get to the meat of the chapters right away, I can see how one could overlook it.

    And just to reiterate, I meant every word I said there. Thank you to everyone who posts here at SitePoint and has helped to formulate my thoughts and experiences around PHP, you all have contributed to this work!
    Jason Sweat ZCE - jsweat_php@yahoo.com
    Book: PHP Patterns
    Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
    Detestable (adjective): software that isn't testable.

  4. #29
    Non-Member
    Join Date
    Jan 2003
    Posts
    5,748
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your example helps a lot, thanks

    Buy Jason's book
    Umm...

    I'll think about it, but in the meantime...

  5. #30
    eschew sesquipedalians silver trophy sweatje's Avatar
    Join Date
    Jun 2003
    Location
    Iowa, USA
    Posts
    3,749
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dr Livingston
    but in the meantime...
    Go download the source code under discussion?
    Jason Sweat ZCE - jsweat_php@yahoo.com
    Book: PHP Patterns
    Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
    Detestable (adjective): software that isn't testable.

  6. #31
    Non-Member
    Join Date
    Jan 2003
    Posts
    5,748
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm busy at the moment...

  7. #32
    eschew sesquipedalians silver trophy sweatje's Avatar
    Join Date
    Jun 2003
    Location
    Iowa, USA
    Posts
    3,749
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In case folks here had missed it, Harry put up a fairly detailed review up on the phppatterns site.
    Jason Sweat ZCE - jsweat_php@yahoo.com
    Book: PHP Patterns
    Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
    Detestable (adjective): software that isn't testable.

  8. #33
    Non-Member
    Join Date
    Jan 2003
    Posts
    5,748
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. Btw Jason, your book arrived yersterday but not had the time to read it

  9. #34
    SitePoint Zealot Quadzoola's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I received your book from amazon last Friday Jason, I'm just finishing off Cockburn's Surviving Object-Oreneted Projects before I dive in.
    Jeff Busby

  10. #35
    Non-Member melancholic's Avatar
    Join Date
    Nov 2004
    Location
    Australia
    Posts
    447
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You make MockObjects sound exciting. lol

    "Special forces of the testing world" indeed. I've yet to write my own mock objects, but I thought this style of writing will help you sell books.

    <goof>
    on your next book (fingers crossed), please do ones of super invincible samurai that cut through stuff... with super powers!!! and they go around the php world solving crime. :: nods profoundly :: this could be something big.
    </goof>

    'gards,

    'cholic

  11. #36
    SitePoint Enthusiast
    Join Date
    Oct 2005
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I bought the book from Amazon, and like others here I can't put it down. I too have often struggled with reading an introduction to Design Patterns which illustrates examples with Java or C++ code only, or at best PHP 5 (which I'm still slowly getting to grips with!). It's really well written, and just the right pacing for me.

    Only one question - seeing as I went for the cheap option and bought the book from Amazon, is there any way at all I can now get the PDF for free? I'd love to test out each of the code snippets as I read about them, but all that typing.......
    ____________________


    George

  12. #37
    eschew sesquipedalians silver trophy sweatje's Avatar
    Join Date
    Jun 2003
    Location
    Iowa, USA
    Posts
    3,749
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by gcrawford
    Only one question - seeing as I went for the cheap option and bought the book from Amazon, is there any way at all I can now get the PDF for free? I'd love to test out each of the code snippets as I read about them, but all that typing.......
    I believe the PDF version is only sold by phparch. You can however download the code bundle from the phparch site and that should take care of most of your cut and paste needs. Scroll to the bottom of this page for the code download.

    Regards,
    Jason Sweat ZCE - jsweat_php@yahoo.com
    Book: PHP Patterns
    Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
    Detestable (adjective): software that isn't testable.

  13. #38
    SitePoint Enthusiast
    Join Date
    Oct 2005
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Man - that took you almost 15 minutes to reply. What shoddy service. Last time I'm buying one of your books!

    Thanks so much - I didn't spot that little link at the bottom of the page! It's miles more useful to me than a PDF!
    ____________________


    George

  14. #39
    SitePoint Enthusiast
    Join Date
    Sep 2004
    Location
    Malmö, Sweden
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by gcrawford
    Man - that took you almost 15 minutes to reply. What shoddy service. Last time I'm buying one of your books!
    I totally agree...

    I must say that having the opprotunity to talk directly to the author beats everything!

    Keep up the great work Jason!
    //jan
    Jan Bolmeson, M.Sc. Engineering Physics, ZCE
    Join my network @ LinkedIn.com

  15. #40
    Umm. PHP Guru....Naaaah jaswinder_rana's Avatar
    Join Date
    Jul 2004
    Location
    canada
    Posts
    3,193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I want contribute too. I bought his book and got it yesterday. Bought it from Amazon though. Din tget any PDF, but hey they were having sale for like 34% off.

    I am on first chapter as i started yesterday and its going through my mind really easily.
    Nice examples and vocabulary used is really simple.

    Good work Jason and keep it up.
    ---------------------------
    Errors = Improved Programming.
    My Site

  16. #41
    eschew sesquipedalians silver trophy sweatje's Avatar
    Join Date
    Jun 2003
    Location
    Iowa, USA
    Posts
    3,749
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by melancholic
    You make MockObjects sound exciting. lol

    "Special forces of the testing world" indeed. I've yet to write my own mock objects, but I thought this style of writing will help you sell books.

    <goof>
    on your next book (fingers crossed), please do ones of super invincible samurai that cut through stuff... with super powers!!! and they go around the php world solving crime. :: nods profoundly :: this could be something big.
    </goof>
    If you liked that, and you ever want to learn Ruby, you must start with Why’s (Poignant) Guide to Ruby. I believe I have a firmer grip on sanity than _why, but I believe you would enjoy learning Ruby this way.
    Jason Sweat ZCE - jsweat_php@yahoo.com
    Book: PHP Patterns
    Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
    Detestable (adjective): software that isn't testable.

  17. #42
    SitePoint Guru
    Join Date
    May 2005
    Location
    Finland
    Posts
    608
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sweatje
    If you liked that, and you ever want to learn Ruby, you must start with Why’s (Poignant) Guide to Ruby. I believe I have a firmer grip on sanity than _why, but I believe you would enjoy learning Ruby this way.
    Why's guide is funny as hell (chunky, bacon), but while it works well as a linear starters' guide to Ruby, it's sometimes hard to extract something concrete from the examples and next to impossible to use as any kind of reference (when I tried, I realised there was just too much babble in it to quickly find the certain spot that said something useful). Not to say you should skip the book because of that, but as a mere warning.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •