|
Sponsored Link
|
Latest PEAR Releases:
Net_IPv6 1.2.1b1
Log 1.12.5
DB 1.7.14RC2
Config 1.10.12
old blog archives: Finished wrangling with the data dump of the ex-WordPress blog (including proper 301 redirects - o hai search engines!). All the pre-Tumblr blog archives can be found in the archives now, in all their n00b CSS glory.
(Instead of obsessively importing my old blog posts to here, I'll just mention some of the highlights.)
Angering Database Gods was one of my conference talks. It was was basically a knee-jerk reaction to people not going the distance and instead leaning on frameworks to interact with databases, which meant being mean to databases.
To everyone who participated in the Christmas Conundrum, I hope you enjoyed this little dose of holiday fun. :-)
Congrats to everyone who solved it. If you're curious, here are the first seven people who solved it, in order:
Christer Edvartsen
Terry Matula
Derick Rethans
Andrei Zmievski
Patrick Springstubbe
Helmut Hummel
Krzysztof Kotowicz
If you want the solution, keep reading.
I created the puzzle before going to bed Tuesday night. I had a lot of ideas, but I kept coming back to the idea of...
When people ask why PHP doesn't have this or that cool feature which allows to do some tricky mind-bending function and requires a dozen pages of manual to describe it, I find this quote from Brian W. Kernighan is very appropriate:
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
Corollary of that is that some clever tricks are better left not done and some cool things may not...
Pay It Forward was a 2000 romantic drama featuring Kevin Spacey, Haley Joel Osment, and Helen Hunt. Decently well-received, I found it a good, heart-warming, thought-provoking movie.
It is also an allegory for how open source works.
read more
As I write this on Christmas Eve, Chris
is putting the finishing touches on
PHP Advent 2010.
A brief search of my site indicates that I haven't actually blogged about
PHP Advent since 2007, when I was lucky enough to write the first article. That
first year, Chris put the
advent articles
up on his blog (and we do
intend to copy them over to phpadvent.org, eventually). Sensing that Chris had
entirely too much work to do, curating, and since we were
working together by the time the season
came around in...
wall of text inc: I'm in a good mood today, holidays and all, so perhaps it's simple serendipity that some omg h4x0r kids found that one of a million WordPress vulnerabilities and posted a lolpost on my blog. Not a frequent blogger, I still wrote blogging software for myself (PHP, baby!), but that was lame, and made me realize that I like to use a pretty UI for posting stuff on my blog. So I got MovableType, but srsly, Perl? Not very customizable (it is a write-it-and-forget-it language after all). So...
Happy Holidays, everyone!
Most developers have heard of "The Joel Test" to help improve the quality of their software and the processes surrounding it. Joshua Thijssen has taken this one step further and created his own set of questions to act as a test for software development managers to make sure they're doing the right things for their group.This post is not so much for developers as it is for the managers and bosses from those developers. As you probably know by now, managing software engineers (or programmers) is not an...
On CodeForest.net there's a new tutorial showing you how to set up a WAMP (Windows/Apache/MySQL/PHP) server that uses multiple virtual hosts.Virtual hosting is a method for hosting multiple domain names on a computer using a single IP address. This allows one machine to share its resources, such as memory and processor cycles, to use its resources more efficiently. This is often found on shared hosting servers. [...] We can use Virtual hosts on Windows to deal with this problem. As I am using WAMP server...
Derek Allard has a quick post for the CodeIgniter users out there with some styling you can use on the default CI calendar.A project I'm working on needs a monthly calendar. Naturally, I'm using CodeIgniter as the base of it. [...] My needs were something more akin to the interface iCal provides; broad, spacious, subtle. Obviously, the default is just an unstyled base that CI provides as a starting grounds. The Calendar library documentation provides some insight into how we can start changing this up.He...
In a new post to his blog today Hannes Magnusson talks about the benefits of doing a code review and getting your eyes on as much other people's code as possible (and a bit about a pleasant side effect of it).Reading code is not only fun, its also a great way to exercise your brain - not to mention a fantastic way to discover new ways to solve problems. At work (we are hiring btw!), for example, I read pretty much every single commit (and merge requests, for that matter) - and I'm subscribed to several...
On the Mayflower blog today there's a new post about an extension that's been released for Eclipse environments that lets you work with the error output from your continuous integration server right in the IDE.Cinder is a plug-in for your eclipse-based IDE (eclipse, Zend Studio, etc.) to display results of your Continuous Integration environment right inside your IDE. [...] You open the XML file containing the errors and warnings of your build (for us that's typically the PHP_CodeBrowser XML generated by...
Note: I have tested this in PHPUnit 3.4.1 and haven't tried it out in 3.5.
Anyone who has worked with PHPUnit has most likely worked with expected exceptions and mock objects. The nice thing about working with expected exceptions is that we have access to a handy @expectedException annotation. I've gotten into the habit of using this for exceptions my fixtures should throw but also for when I'm using a mock object to verify a method call. So my tests usually expect foo_exception for fixture throws and...
Popular posts from PHPDeveloper.org for the past week:Ibuildings techPortal: lessphp: PHP implementation of Less CSS
SitePoint.com: Introduction to Unit Testing in PHP with PHPUnit
Community News: ElePHPants - the Next generation
Zend Developer Zone: Book Report: A Beginner's Guide to Zend Framework
WebSpeaks.in: Cross Domain Posting using PHP and JavaScript: ITS POSSIBLE!
Bence Eros' Blog: Life without static in PHP
StackExchange.com: What features would you like to have in PHP?
Brian Swan's Blog: Video...
Reading code is not only fun, its also a great way to exercise your brain - not to mention a fantastic way to discover new ways to solve problems. At workA (we are hiring btw!), for example, I read pretty much every single commit (and merge requests, for that matter) - and I'm subscribed to several different OSS commit lists. I can't say I read every commit to PHP, I focus on the areas I care about, but I do skim over the rest - if only just to see when new features are added.
The PHP project has a good...
When working on a web app with coworkers or
fellow volunteers, few things are more important within the group than trust.
Trust among developers enables them to work confidently, eases communication
between team members, and empowers each of them to make good decisions.
With the actual app, however, that trust should never come easily.
With today's web apps, you can't trust anything. You can't trust
input from the user, you can't trust your code, you can't trust your
processes, and you can't trust your...
On the Query7 blog there's a new tutorial that will step you through making a module for the Kohana3 framework - a replacement for the Kohana_View view layer included with the framework.We will be building a module that replaces Kohana's own view layer (Kohana_View). It will use the PHP template library Twig. We want our own view layer to be API compatible with Kohana's view layer. This will ensure that other modules work out of the box and that the only code the developer will need to alter in their...
In my previous post on using the Fuel framework I looked at the basics behind getting a site up and running. This time I want to take it a step further and tell you a bit about my experiences getting a Fuel application to talk to a database (in my case MySQL). To learn the process, I fell back on one of my standby sites that's been rewritten in a few different frameworks now including Solar and a really, really old version of the Zend Framework. It's not an overly complex site, but the version is...
|
|