Singleton and Factory Design Patterns in PHP

[url=http://www.devshed.com/cp/bio/Alejandro-Gervasio/]Alejandro Gervasio[/url] at [url=http://www.devshed.com/]Dev Shed[/url] gives a nice introduction to using the singleton and factory design patterns in PHP to build forms. This 5 part series takes the reader from an introduction to PHP classes and design patterns to creating a form using a form generator class and singleton and factory design patterns.

The five parts of the series:
1. [url=http://www.devshed.com/c/a/PHP/The-Singleton-and-Factory-Patterns-in-PHP-Building-objectoriented-forms/]Building object-oriented forms[/url]
2. [url=http://www.devshed.com/c/a/PHP/The-Singleton-and-Factory-Patterns-in-PHP-designing-an-object-factory/]Designing an object factory[/url]
3. [url=http://www.devshed.com/c/a/PHP/The-Singleton-and-Factory-Patterns-in-PHP-a-rendering-capable-factory-class/]A rendering-capable factory class[/url]
4. [url=http://www.devshed.com/c/a/PHP/The-Singleton-and-Factory-Patterns-in-PHP-Working-With-Singletons/]Working with Singletons[/url]
5. [url=http://www.devshed.com/c/a/PHP/The-Singleton-and-Factory-Patterns-in-PHP-Building-a-Form-Generator-Class/]Building a form generator class[/url]

Aspect Oriented Programming in PHP

From the “Just because you can” department:

Who says you need to be a java-head to play with the cool stuff? Some of you may have heard of an “extension” to Object Oriented design called Aspect Oriented Programming. ([i]I seem to recall something about it in the classic text “The Pragmatic Programmer.”[/i])

Well, it was only a matter of time, but someone built a framework for it in PHP:
http://freshmeat.net/projects/aophp/

[quote]This package can be used to implement aspect oriented programming (AOP) by executing the code of classes that enable orthogonal aspects at run- time. The intention is to provide a means to implement orthogonal aspects in separate classes that may be an interesting add to the application, like logging, caching, transaction control, etc., without affecting the main business logic. The package provides base classes for implementing defining point cuts where the code of an advice class is called to implement actions of the orthogonal aspects that an application may need to enable.[/quote]

I only have some idea what he just said, but I’m sure that plenty of you will find this very cool! You go Dmitry!

5.0 Arives : LAMP gets major upgrade.

Another great day for LAMP development! If you have been waiting for features in MySQL such as:

  • Stored Procedures and SQL Functions
  • Triggers
  • Views
  • Cursors
  • XA Distributed Transactions
  • SQL2003 Compliance
  • And much much more!
  • Check out the [url=http://www.mysql.com/news-and-events/news/article_976.html]MySQL 5.0 Release notes[/url] for more information.

    Zend Collaboration Project

    There are times when you go to conferences, and you have a great time. Then there are those other times when you decide “Hmmm…maybe next year” then kick your self when something really big is announced.

    While I was lucky enough to see the announcement of OpenOffice at OSCON a few years back, this week I missed what may one day become the NextBigThing for the PHP Community from Zend.

    If you haven’t yet heard of the [url=http://www.zend.com/collaboration/]PHP Collaboration Project[/url], you may want to go check out Zend’s website for it. From their FAQ:
    [quote]The PHP Collaboration Project is an open source initiative through which the PHP community and partners will create an industrial-grade PHP Web application development and deployment environment.[/quote]

    Sure, at the moment it is just an announcement. However, if anyone is going to be able to muster the open source [i]and[/i] big-business backing to actually pull off a decent/universal programming platform for PHP it would be Zend.

    Good luck guys!

    October 2005 :: Using Image_Graph

    [img align=right]http://www.kcpug.org/doghouse/2005_oct/gradient_pie-200.png[/img]
    Want to make cool graphs? Check out today’s presentation [url=http://www.kcpug.org/doghouse/2005_oct/image_graph.swf]Using Image_Graph[/url].

    Also, be sure to check out some of the great information on the web:

  • [url=http://pear.veggerby.dk/documentation.php]Documentation[/url]
  • [url=http://pear.veggerby.dk/samples/index.php]Samples graphs and code[/url]
  • [url=http://pear.speedpartner.de/talks.php]Stefan Neufeind’s presentation on Image_Graph[/url]
  • [url=http://pear.php.net/package/Image_Graph]Image_Graph on PEAR[/url]
  • The topic of WYSIWYG HTML Editors for Linux came up. While it isn’t WYSIWYG, [url=http://bluefish.openoffice.nl/index.html]bluefish[/url] came to mind. We also thought of [url=http://nvu.com/screenshots.html]Nvu[/url], and it certainly looked full-featured.

    This discussion lead us into a chat on CSS and web-standards based design. The websites [url=http://www.alistapart.com/]A List Apart[/url] (for info) and [url=http://www.csszengarden.com/]CSS Zend Garden[/url] (for inspiration) both came up. I also had to show off the [url=https://addons.mozilla.org/extensions/moreinfo.php?id=60]Web Developer Toolbar[/url] for Firefox…a web-coder’s best tool.

    See you next month!

    KCOUG Training Day 2005

    [i]Maggie Tompkins of the KCOUG submitted the following.[/i]

    The Kansas City Oracle Users Group (KCOUG) Training Day 2005 is fast approaching. Join 300 Oracle and technology professionals for a great day of networking and technical sessions. Please forward to colleagues who may be interested. Thank you.

    Respectfully,
    Maggie Tompkins
    Kansas City Oracle Users Group (KCOUG)

    [i]Read on for more Detail[/i]

    ———————————————————————-
    From: KCOUG Administration [mailto:[email protected]]
    Sent: Monday, October 03, 2005 2:28 PM
    To: TOMPKINS, MARGARET
    Subject: KCOUG Training Day 2005 presentation schedule.

    Online registration for KCOUG TRAINING DAY 2005 (with secure payment by PayPal) is now available at http://www.kcoug.org (left-hand KCOUG TRAINING DAY 2005 block)

    KCOUG Training Day 2005 Schedule
    NOTE: Please check http://www.kcoug.org for last-minute schedule changes.

    ——————————————————————-

    Monday, October 24th, 2005
    7:00 am – 8:30 am
    Registration and Continental Breakfast

    8:30 am – 8:45 am
    Opening Session

    8:45 am – 10:00 am
    Keynote (One session – 1 hour and 15 minutes)
    Rich Niemiec, TUSC – Exceptional Leadership; Be the Uncommon Leader!

    10:15 am – 12:15 pm
    Four Two-Hour In-Depth Technical Sessions
    #1 – Rich Niemiec, TUSC – Tuning 9i & 10g – Tuning Oracle has Radically Changed
    #2 – Paul Dorsey, Dulcian – Avoiding Landmines as you “Struts Your Stuff” through J2EE Development Using JDeveloper
    #3 – Dan Vlamis, Vlamis Software Solutions, Inc. – OracleBI and Oracle OLAP–What’s All This About?
    #4 – Shannon Mayfield, Noetix Corporation – Accelerated Reporting for Oracle Applications

    12:15 pm – 1:30 pm
    Box Lunch – Attendee Networking (1 hour and 15 minutes)

    1:30 pm – 2:30 pm
    Six One-Hour Regular Sessions
    #1 – Rich Niemiec, TUSC – Oracle Internals at the Block Level; Beginners, Go Away!
    #2 – Paul Dorsey, Dulcian – Repository-Based Application Development
    #3 – Bill Inmon, Inmon Data Systems – Managing Unstructured Data and the Bridge to the Structured World
    #4 – Dan Hotka, Independent Consultant – Tuning SQL When You Can’t Change the Code
    #5 – Matt Larson, Confio Software – Blame the DBA: How Improper Wait Event Analysis Leads to the DBA Blame Game
    #6 – David Fuston, IRUS Group – OSA, OFA, DBI, EPB, or Discoverer — Which Reporting Tool is Right For Me?

    2:45 pm – 3:45 pm
    Six One-Hour Regular Sessions
    #1 – TBD, BraveSoft Technologies – Technical Presentation (BraveSoft Technologies)
    #2 – TBD, Embarcadero Technologies – Technical Presentation (Embarcadero Technologies)
    #3 – David Welch, House of Brick – Approachable RAC
    #4 – Rizwan Jaka, Oracle Corporation – Update on new versions of Portal called Instant Portal and New Features of HTMLDB 1.6/2.0
    #5 – Virgil Flack, RingMaster Software – Maintaining Your Oracle Applications in Less Time With the Simplified ACME Approach
    #6 – Srinivas D. Talagadadeevi, Black & Veatch – Upgrades, Patches, Critical Issues and Changed Priorities: Providing Useful User Support!!

    3:45 pm – 4:15 pm
    Break – Cookies and Soft Drinks (30 minutes)

    4:15 pm – 5:15 pm
    Six One-Hour Regular Sessions
    #1 – Nick Roppolo, Core Ops, Inc. – Implementing Oracle Discoverer 10g
    #2 – Shaun O’Brien, TUSC – Web Application Development with Jdeveloper 10g, ADF and Struts
    #3 – Greg Matus, Maverick Solutions – The Leap From PL/SQL to Java: More than Just Syntax
    #4 – Prabhakar Gongloor, Oracle Corporation – Performance Diagnostics Demystified: Best Practices for Oracle Database 10g
    #5 – Paul Murray, BraveSoft Technologies – Installing Oracle 10g on a Linux Fedora Platform – How to Acquire Valuable DBA Skills at Home
    #6 – Swapan Golla, Gallup Organization – Scalable OLAP Web Applications

    5:15 pm – 5:30 pm
    Wrap-up and Door Prizes

    ———————————————————————-

    PHP 5 Objects, Patterns and Practice, reviewed on the dot.

    Part shameless plug, part book review notification: I just wanted to announce that my review of [url=http://www.amazon.com/exec/obidos/tg/detail/-/1590593804/qid]PHP5OPP[/url] is now available on slashdot.org. I loved this book so much, and believe in it so completely that I wanted the review to get as much exposure as possible.

    If you have been wanting to give your programming skills an object oriented upgrade but don’t really know where to take the plunge–go check out [url=http://books.slashdot.org/books/05/08/16/0434205.shtml?tid=169&tid=6]my review of PHP 5 Objects, Patterns and Practice[/url] from Apress.

    Is PHP growing in Kansas City?

    As Dan mentioned in his meeting summary, we discussed numerous available PHP jobs during the last meeting that we knew about that had not been filled. I just added another to our [url=http://www.kcpug.org/site/modules/newbb/viewforum.php?forum=6]Jobs and Opportunities Forum[/url], which already has several posted.

    A quick search on Monster.com found 5 or 6 jobs in just the Olathe and Overland park areas. And a search on CareerBuilder.com yielded several more in KCMO and KCK. It seems that there are just as many (or more) PHP job postings as there are ASP.NET or JSP job postings.

    What do you guys think? Is this a sign that businesses in the midwest are finally embracing PHP as their preferred development language? Or am I crazy?

    Has anyone noticed an increase in PHP usage among area businesses?