Michael Kimsal has release the last podcast of his MySQL Conference series of interviews with other attendees. In this episode, he interviews Brian Moon of the Phorum project (employed at DealNews.com).
Brian was kind enough to review both of his presentations which go in to great detail about the scaling issues he's faced both with DealNews.com and the Phorum forum software project (which recently turned 10 years old!) [...] Thanks to Brian for going over things in such detail!
You can download this latest episode from the WebDevRadio site as well as check out Brian's slides from his MySQL conference presentation.
Everybody who writes object-oriented code knows about constructors. You need them so the program knows how to instantiate objects, right? And you especially need them when a lot of things have to be done while instantiating an object. [...] So why would I be skeptical of public constructors?
The solution, as he sees it, is to make a "constructor" that's actually called statically with parameters that returns an instance of the class it's in as well as performing the action. He argues that this can help make the code much more readable for some types of method calls.
In a new blog entry today, David Coallier has posted about two new offerings that are in the works for a web-based frontend to XDebug:
For quite a while in the PHP Community (And even myself) I have heard people asking about either an online tool to work on cachegrind output files or a cross platform tool that would have the ability to do what KCacheGrind does on Linux but for Windows and OSX.
He mentions the origin of the idea for a cachegrind app as a part of the Google Summer of Code (that did get accepted and will be worked on by Chung-Yang Lee). The other, Webgrind is an independent project from the other but looks
Welcome to the eighth episode in our series on Perl Lists and Hashes. In this article we will discuss how to add a record to a hash as well how to remove a record from one. We will also cover how to check to see if a record already exists in our hash how to write the data contained in one to a file and quite possibly go over the basics of multidimensional lists.... Build IT Knowledge with Current & Trusted Content Helps Employees
PHPBuilder.com has continued their series looking at building an Ajax-driven shopping cart with part two posted today (part one here). Last time they laid the PHP foundation for the example app, this time they add another layer - the Ajax functionality to manage the currentcontents of the cart.
Finally, a link to the shopping cart is provided, although you could just as easily have displayed the cart contents on the same page. For the sake of brevity I'll just show you how to integrate the add feature, and will leave the subtraction mechanism to you as an
Zend_Formhas been lauded by many as a welcome addition to Zend Framework, and aflexible solution to the problem of forms. That said, one point offlexibility it offers has proved to be a pain point for many developers:decorators. This tutorial aims to shed some light on decorators, as well asprovide strategies for creating your own decorators and combining them increative ways to customize the output your forms generate.
I’ve found many of my friends struggling with the validation of integers i.e. the numbers with only digits in PHP. Some of them were wondering why is_int() or is_integer() functions of PHP sometimes works and sometimes won’t.If you become clear with the concept of integer and string in PHP then you’ll obviously come to know [...]
Everybody who writes object-oriented code knows about constructors. You need them so the program knows how to instantiate objects, right? And you especially need them when a lot of things have to be done while instantiating an object. And personally, I've never considered visibility restrictions important enough to be a major argument against those languages that have lacked them (PHP 4). So why would I be skeptical of public constructors?
I got the idea after reading Joshua Kerievsky's book Refactoring to Patterns. One of his refactorings is called Replace Constructors with Creation Methods. In Java, unlike PHP, you can have multiple constructors that are distinguished only by the number and type of arguments. That may be practical sometimes, but as Kerievsky's example shows, it be m