 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Padraic Brady's Blog: A Domain Specific Language for Behaviour Driven Development (BDD) in PHP
by Chris Cornutt July 21, 2008 @ 11:13:35
Padraic Brady has posted about a part of his PHPSpec library, the domain specific language.
PHPSpec implements a domain specific language (DSL) in PHP for specifying the behaviour of functional units such as methods and objects. The purpose of a DSL was to move away from the xUnit style declaration of tests towards a specification language centred on describing behaviour.
He illustrates with a bowling example - described with a sample class (with a itShouldScore0ForGutterGame test) and how to use it to fit his proposal:
My proposal therefore is to re-implement the current programming language DSL as a specification language - i.e. a new (extremely limited and narrow!) language capable of being parsed by PHPSpec into its PHP equivalent. [...] Using a specification DSL, we can simply ignore the existence of classes in PHP (well, the pretense is nice). Instead the DSL would incorporate a syntax for denoting shared behaviours.
voice your opinion now!
behaviour driven development phpspec domain specific language
John Rockefeller's Blog: PHP Tricks How To Handle Multiple Domains
by Chris Cornutt May 27, 2008 @ 11:11:01
John Rockefeller has a tip he'd like to share with all of the other PHP developers out there - a little method he's come up with to host multiple domains off of the same code.
This is really handy for those of us who have the same code handling multiple sites or multiple sub-domains. A case in point: When I coded NetBoardz (my free forum hosting service now defunct), I had one codebase handling all 250 forums. How? Simple. When the code runs, it determines which site the user is loading and does different things (like using different databases) dynamically.
He shows the two key points to dividing things up - grabbing the domain and subdomain they were trying to access. This can be fed into a script that can switch things like layout or even functionality based on which site they've chosen.
voice your opinion now!
trick multiple domain same codebase subdomain hostname
Nexen.net: PHP Statistics for April 2007
by Chris Cornutt May 03, 2007 @ 12:04:00
Damien Seguy has kept up the good work and has posted this month's PHP statistics for the past month's data (April 2007).
Here are the PHP stats for March 2007. To learn about methodology, read la section phpversion. 10.1 millions servers hosted on 2.3 millions IP were surveyed during December, and 22.8 were used for stats : domaines without web sites, those unreachable, ISP, shared hosters or domain parkings were not considered.
Highlights for the month:
- 5.2 is about to be the 3rd most popular version
- PHP 5 is more often chosen on larger domains
- In April, web sites are bracing for the next versions
- Doesn't seem to be much impact from MOPB : have to wait for this month's to see it.
Stats cover a wide range of topics including:
Also, be sure to check out the evolution stats for the past month, showing some of the trends for the past months as compared to April.
voice your opinion now!
statistic monthly evolution usage country domain ipaddress statistic monthly evolution usage country domain ipaddress
Nexen.net: PHP statistics for March 2007
by Chris Cornutt April 04, 2007 @ 12:12:00
Nexen.net has posted the latest PHP statistics for the month of March 2007 today including the PHP version distribution, the usage of different versions of PHP, PHP 5 adoption by country, and much more.
Here are the PHP stats for March 2007. To learn about methodology, read la section phpversion. 10.1 millions servers hosted on 2.3 millions IP were surveyed during December, and 22.8 were used for stats : domaines without web sites, those unreachable, ISP, shared hosters or domain parkings were not considered.
Also included are the evolution statistics comparing PHP to two other languages - ASP amd Masque. Interestingly enough, the growth pattern almost directly matches the inverse of the ASP results.
voice your opinion now!
statistics march2007 usage adoption version domain host statistics march2007 usage adoption version domain host
|
Community Events
Don't see your event here? Let us know!
|