stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors


phpPatterns: Hello world in Patterns







phpPatterns: Hello world in Patterns

phpPatterns: Hello world in Patterns 04/16/2004 07:41 AM

In a "cautionary tale about design patterns", phpPatterns.com has a new article that helps developers avoid just that.




This is a GrokNews Entry: (what is grok?)





Similar Items

phpPatterns: Hello world in Patterns

Grok Headline matches for phpPatterns: Hello world in Patterns

:: phpPatterns() - Hello world in
Patterns


:: phpPatterns() - Hello world in
Patterns
04/16/2004 05:16 PM
Hello world in Patterns

phppatterns.com/index.php/article/articleview/103
track this site | 5 links


Abstractions, Patterns, and
Anti-Patterns


Abstractions, Patterns, and
Anti-Patterns
01/08/2003 04:08 PM
Success! I understand a bit of the object/interface model I'm working with--at least enough to add some functionality and not have it blow up. It compiles and runs. I've sucessfully extended my first real Java code in a meaningful way....

phpPatterns: ArgoUML Gets PHP Support


phpPatterns: ArgoUML Gets PHP Support 01/16/2004 10:58 AM
In a quick note from phpPatterns.com this morning, there's an announcement concerning ArgoUML and PHP.

phpPatterns: Testing From the Inside Out


phpPatterns: Testing From the Inside Out 03/11/2003 01:22 AM
From phpPatterns this morning, there's a new article having to do with one of the "practical facets of eXtreme programming" - unit testing.

phpPatterns: More Praise for
php|architect


phpPatterns: More Praise for
php|architect
01/24/2003 09:26 AM

phpPatterns: Taming the Wild OOP


phpPatterns: Taming the Wild OOP 02/11/2003 08:33 AM

phpPatterns: PHP, Coffee and Components


phpPatterns: PHP, Coffee and Components 12/02/2003 08:48 AM
There's a new post over on phpPatterns about a "one-on-one chat with one of PHPs core developers" and Harry F.

More (Fuzzy) Praise for phpPatterns.com


More (Fuzzy) Praise for phpPatterns.com 01/08/2003 09:03 AM

phpPatterns: The Decorator Pattern


phpPatterns: The Decorator Pattern 01/29/2003 08:58 AM

phpPatterns: the Observer Pattern


phpPatterns: the Observer Pattern 01/10/2003 09:50 AM

phpPatterns: More PEAR Productivity?


phpPatterns: More PEAR Productivity? 12/02/2003 01:36 AM
I seems as though Harry Fuecks has stumbled upon something very interesting in the PEAR site and project - a process to make the voting and inclusion of new libraries in PEAR a much simpler process.

phpPatterns: XML-RPC Hack From a
Foundation


phpPatterns: XML-RPC Hack From a
Foundation
12/02/2003 01:36 AM
phpPatterns.com has a new post this morning concerning a bit of XML-RPC fun he had when trying to make a connection between two services. Of course, none of the implementations seemed to fit quite right, but one showed promise - it just needed to be hacked a bit.

New Site: phpPatterns.com Launched!


New Site: phpPatterns.com Launched! 11/27/2002 10:38 AM

phpPatterns: Connecting XUL Forms and
PHP


phpPatterns: Connecting XUL Forms and
PHP
11/19/2003 09:19 AM
XUL, one of the more handy technologies on the web today, can be confusing for some. Once you create one application, however, you can pick up the rest quite easily. Then you can start connecting the applications together, and with the help of this new article from phpPatterns.com, it's even easier.

phpPatterns: Excel and PHP Play Nice
Together


phpPatterns: Excel and PHP Play Nice
Together
12/05/2003 09:06 AM
If you told anyone that you could take one part Excel, add a little PHP to the mix, stir gently, bake - and the result? A simple worksheet server that takes an Excel spreadsheet (complete with formulas and so on), analyzes it and generates PHP code ready for deployment on a web server.

phpPatterns: Decorator Pattern
Redecorated


phpPatterns: Decorator Pattern
Redecorated
12/18/2003 09:20 AM
On phpPatterns.com this morning, there's a visit back to an old favorite when it comes to patterns - the Decorator pattern. (If you need a refresher, see this article.) But, this time, he thinks he has it right...

phpPatterns: The Old Perl Versus PHP
Debate


phpPatterns: The Old Perl Versus PHP
Debate
12/04/2003 08:30 AM
From phpPatterns this morning, there's a new post about an older article that Harry Fuecks happened to come across, as well as some of this own comments.

phpPatterns: Rephlux (Continuous
Integration Tool)


phpPatterns: Rephlux (Continuous
Integration Tool)
05/26/2004 07:31 AM
On phpPatterns.com, there's a new posting talking about a product called Rephlux and how it can help you create a simpler development process.

Patterns for PHP


Patterns for PHP 11/27/2002 08:37 AM
PhpPatterns is just that -- a source of design patterns for PHP code. Will wonders never cease? I ran this by a Java programmer I know that I have drawn into the PHP world and her comment was "I'd have never even thought to try patterns in PHP". Just goes to show you that you can do good software engineering in pretty much any language (and language X is better than language Y debates are so lame as noted over here). There is even a good start on a form validation pattern: The Strategy Pattern is another mechanism to save endless reproduction of if / else statements. It is used in cases where there is a common "problem" which can be solved by one of many algorithms, for example validating the fields of sent by a form. As with most things object oriented, it allows for reuse and extensibility. Taking the example of form validation, we have a prime candidate for a strategy pattern. The fields submitted from a form usually need to checked in some way before acting further on them, such as inserting them into a database. How often do we find ourselves writing procedural code like; [ Go ]

More PHP Patterns


More PHP Patterns 02/06/2003 10:45 AM
More PHP Patterns Once again Harry has got another pattern example. I haven't used it in production work yet but I suspect it is up to his usual high standards: The decorator pattern provides us with a mechanism for adding functionality to objects at runtime, as an alternative mechanism to creating additional child classes. In this article we'll look at a simple use of the decorator pattern to help with sorting arrays, the example being a directory listing. For some reason most discussions of object oriented programming begin with "imagine a car...", a subject of no relevance to PHP unless perhaps you build a car classifieds website. The result is usually more confusing than helpful. But just for a moment, this discussion will begin exactly the same way. Imagine a car. A real car not a class representing a car. Once a car is built, paid for and and standing in the front drive (of our PHP mansion), what do we do if we don't like the color? Unless we've got money to burn, rather than buying a new car we simply re-spray it. The decorator pattern serves just this purpose. It allows us to do things to objects which have already been built (instantiated). [_Go_]

squidfingers / patterns


squidfingers / patterns 11/16/2003 02:31 AM
unbelievably cool background patterns .. Succumbing to the squidfingers .. Very well done pixel patterns .. neatly constructed patterns .. Paisley webpage backgrounds .. Pretty pattern on top .. patterns like this .. these

squidfingers.com/patterns
track this site | 3 links


Structural patterns in XML (xml.com)


Structural patterns in XML (xml.com) 09/05/2002 10:28 AM

Structural Patterns in XML


Structural Patterns in XML 09/04/2002 07:03 PM
Will Provost shows how design patterns in XML structures can be used to help development of W3C XML Schemas.

UI Patterns and Techniques


UI Patterns and Techniques 08/13/2002 02:06 PM

Dating Design Patterns


Dating Design Patterns 12/05/2003 12:37 PM

The geek's approach to dating: Dating Design Patterns. Funny.


NYPHP.org: OOP in PHP5 Through Patterns


NYPHP.org: OOP in PHP5 Through Patterns 06/28/2004 08:11 AM
PHP Magazine and NYPHP.org have a link this morning to George Schlossnagle's recent talk at their previous meeting concerning Object-Oriented Programming in PHP 5 Through Patterns

Design Patterns in XML Applications


Design Patterns in XML Applications 08/28/2002 01:57 AM
Adequate documentation of the experience gained during the development of XML-based systems is a prerequisite for XML's success as a widely used technology. Design patterns have proved to be a very good technique for transmitting, and to some extent formalizing, knowledge about recurring problems and solutions in the software development process. -- Fabio Arciniegas A.

"zeldman.shaver2"

J2EE Design Patterns


J2EE Design Patterns 12/02/2003 01:27 AM

New Patterns Restrict Hiring


New Patterns Restrict Hiring 03/06/2004 02:03 AM
While the economy has been expanding for six months, the nation's employers remain stubbornly reluctant to add jobs in the U.S.

Patterns for personal web sites


Patterns for personal web sites 11/11/2003 04:46 AM

Applying Java patterns


Applying Java patterns 08/09/2002 11:09 PM
CNET Aug 9 2002 10:08PM ET

Technological diffusion patterns


Technological diffusion patterns 08/09/2004 06:02 AM

I get this feeling that the diffusion of new services and technologies such as blogs and social network services are not normal. Normal diffusion patterns are sort of bell curves that track mass media attention and other factors including effort on the supply side. With social network systems, there seem to be regional explosions of users. Orkut now has more Brazilians than Americans and I have yet to hear a good explanation of why. There are very uneven proportion of bloggers in different regions. The last I looked, Poland and Iran seem to have an unnaturally high number of blogs. Does the digital word of mouth nature of social software make it's diffusion faster (viral) and non-linear? Is the diffusion of other technologies in these markets and segments that are networked also change?

Is there anyone doing good work in this area? I'm sure marketers have their theories on this. I can imagine anthropologists and sociologists also studying this. What is the right way to study this?

Comment - TrackBack

Patterns, Wikis, and APIs


Patterns, Wikis, and APIs 05/21/2004 02:11 PM
It's great to see Ward Cunningham's friendly face popping up on MSDN's Channel 9. In these segments, he connects the dots between the patterns that we increasingly use to guide software architecture, and the environments in which we formulate, discuss, and apply those patterns. ...

Design Patterns for the Open Source Era


Design Patterns for the Open Source Era 04/15/2005 12:07 PM
Tim O'Reilly has given a couple of good talks lately about design patterns for innovation. Here is a summary of his Etech talk, and here (5 MB PDF) are the slides from his presentation at the Eclipse conference....

Thanks Harry or Strategy Patterns Really
Work


Thanks Harry or Strategy Patterns Really
Work
01/08/2003 08:02 AM
Thanks Harry or Strategy Patterns Really Work I know that we all see references to different things on blogs all the times where someone says "It's Cool" but then you always wonder "Does it Work?". Well yesterday I put my $$$ where my mouth (typing) is and decided to find out. A month or so ago I blogged about a PHP programming technique called "Strategy Patterns" for validating user input. I took a quick look at the code (which was good) and looked at the author's reputation (which was good) and gave it a recommendation. [_Go_] Yesterday I hit a point where I needed to code exactly that type of situation -- so I decided rather than yet another set of if statements, I'd try it out. So I surfed over to the location above, the Go link, and copied the code into VI. It just plain worked. And that's really the highest praise I can give -- when code just plain works, that's awesome. Then I found out that my model for usernames was a little different so I quickly hacked in a change to one of the regex's. And that just plain worked. And then I realized that any username must not only fit an existing format (say 6 characters, any alpha, number, . or @ but also needs to NOT exist int the database already -- I actually knew this but Harry's code didn't allow for it. So I was able to add that in just a few minutes. And, best of all, it was neater and more elegant than the way I would have handled it. So I have to say "Thanks Harry" -- Harry Fueckes is the cool guy who wrote this and it was much appreciated. Nice Job! You can bet that I'll be visiting PHP Patterns more often. He has more recently added a piece about Data Access which looks quite good. [_Go_]

Patterns provide the key to Web site
development


Patterns provide the key to Web site
development
03/14/2003 02:46 AM
CNET Mar 14 2003 1:24AM ET

PHPMath.com: Patterns for PHP Math
Packages


PHPMath.com: Patterns for PHP Math
Packages
05/28/2004 01:50 PM
Paul Meagher wrote in to tell us about a new posting on PHPMath.com discussing some Design Patterns for PHP-based Math Packages

RELAX NG: The power is in the patterns
(XML Journal)


RELAX NG: The power is in the patterns
(XML Journal)
07/10/2002 01:42 PM

Service directory patterns and UDDI


Service directory patterns and UDDI 08/16/2004 03:06 AM
CNET Aug 16 2004 7:13AM GMT
Grok Description matches for phpPatterns: Hello world in Patterns
GrokA matches for phpPatterns: Hello world in Patterns

phpPatterns: Hello world in Patterns

The following phrases have been identified by the grok system as matching this entry:

















Also check out:


Grok

Ipod Porn on the
Rise

Brief Abstract of
Wikipedia's
Mesothelioma Cancer
page

Get first aid
instructions in your
cell phone

IE is crap
JSPWiki gains
podcasting support

Last elves fired
from Santa's HQ
(Reuters)

The Bank, the Bag, a
Bomb Threat and an
Old Lady (Reuters)

Kill Mom But Don't
Hurt TV, Teen Tells
Hitman (Reuters)

Weird Financial News
(The Motley Fool)

Nokia shares take a
beating amid
disappointing
results (AFP)

RealNetworks wants
to sing along with
Apple (USATODAY.com)

AT&T Wireless Will
Now 'Name That Tune'
(AP)

Study Finds Internet
Yellow Pages
References Hit 1.6
Billion in 2003

PCs infested with 30
pieces of spyware

UK spammers set to
avoid prosecution
until 2005

Intel Boosts Xscale
Chips for Mobile
Media

Review: A Spartan
But Serviceable PC

Meadoweb to offer
remote IT support

Coming to you - most
dangerous PC bug yet

Google's
neighbourhood watch
to push local ads

IBM confident SCO
case will never make
it to trial

Cash prize for the
web's inventor

Bin Laden Tape Piles
Pressure on U.S.
Companies

French Mosque
Vandalized, Daubed
with Swastikas

Blasts in Iraq's
Kufa, Militias Rush
to Fight

EU's Monti stands
behind Microsoft
fine

Dr. Dobb's Data
Compression
Newsletter Issue #43
- June 2003

Overhaul Has Injured
Workers Nervous (Los
Angeles Times)

Rumsfeld says recent
losses not foreseen
(USATODAY.com)

Kerry launching ads
as Bush drive ends
(USATODAY.com)

Population boom
taking toll on
city's cleanup
effort
(USATODAY.com)

Area a model of
air-quality control
after years of smog
(USATODAY.com)

Iraq duty deters
re-enlistment
(USATODAY.com)

Kerry Hopes to
Cement Image With
New Ads
(washingtonpost.com)

Saudi Arabia
Criticizes U.S.
Mideast Policy Shift
(Reuters)

Blasts in Iraq's
Kufa, Militias Rush
to Fight (Reuters)

Extreme Skiing May
Cause Law Overhaul
(AP)

AP: Book Alleges
Secret Iraq War Plan
(AP)

Zapatero to Become
Spanish Prime
Minister (AP)

Perplexed in Paris
"The Punisher"
"Connie and Carla"
"Kill Bill, Vol. 2"
Outsourcing the war
Highways of horror
Turning into Israel?
US to embrace Wi-Fi
- not 3G - for data

Proxim results
disappoint

Arnie comes to aid
of Hollywood

Lens effect reveals
distant world

Hammam banned for
speeding

Women missing out on
cancer tests

Car recovered in
murder inquiry

Police inquiry into
late abortion

New vetting for
Royal Family jobs

what is grok?