PMD - Finding copied and pasted code
patrick — Wed, 2010-10-13 10:08
A great way to find duplicate code. Has built in handlers for Java, JSP, C, C++, Fortran and PHP and has instructions on how to add a handler for your favorite language if it's not included.
Terry Chay
patrick — Thu, 2010-09-09 09:26
The Woodwork
You tell that other boy, not to touch the woodwork…
ORM is only a subset of the Model in MVC
patrick — Fri, 2010-08-20 00:58
I've been trying to put my finger on why I think a particular set of classes a previous programmer wrote to interact with a payment gateway annoys the hell out of me. At first I just felt overwhelmed by the number of classes and their interactions. I then listed out the classes and used a simple diagram to show basic interaction. Class A has a process that uses data from Class B, runs it through Class C, dumps the results into Class D, & somewhere along the line Class E gets used as well.
Sitepoint Helping Victims of Recent Australian Bushfires
patrick — Wed, 2009-02-11 23:59
Quick details:
- Offer ends on Friday 13th February (2009).
- 100% of the proceeds from this sale will be donated to victims of the recent Australian bushfires.
- Choose any 5 books (in PDF format) and pay $29.95 USD.
A friend of mine just sent me an email today with the subject line of SitePoint 5 for 1 Bushfire Relief Sale
and all the body contained was the link http://5for1.aws.sitepoint.com/. Copy/pasting the link into firefox dropped me at a page showing a fireman giving a koala a drink of water - how cute. Scrolling farther down the page past the form for selecting the PDFs you want I found the Why is SitePoint doing this?
section and I'm stunned! Wow! Over 170 dead, 5000 now homeless... I hope my friends in Australia are all ok.
Re: 10 Dirty Little Web Development Tricks
patrick — Thu, 2008-12-04 04:37
This post is in response to my friend who pointed this out to me via Facebook/StumbleUpon - 10 Dirty Little Web Development Tricks by Yongfook. I may come back later and add the header names for each item, until then each of mine relate directly to the items in the article.
PHP Sucks, But It Doesn't Matter - partial rebuttal
patrick — Fri, 2008-05-23 14:27
It's funny that after Ravi pointed out PHP Sucks, But It Doesn't Matter at some point I came across Blogging Horror... While I've found a lot of posts on coding horror funny & horrifying over the years I find the issues being pointed at in the bulleted list under the Blogging Horror
sub section absolutely horrifying as well. Credibility starts going out the window especially with Atwood's example of MVC :(
I initially started this as an email, but considering the number of people I'd end up forwarding this to I think I'll just slap it up here... Long story short I initially left ASP (and felt it sucked) because the community wrote crap code and I could never find any articles about advanced programming concepts. Although the PHP community contains a lot of crap code (hell, I think hotscripts started with just PHP crap code and has since added crap code from other languages) I found several people with lots of articles on advanced programming concepts and covering security issues.
PEAR just isn't normal
patrick — Mon, 2008-02-04 17:48
While working at RCS (see Jobs, Jobs, & More Jobs - Part 1) one of the projects I ended up working on was trying to figure out a way to upload streaming video to Amazon's S3. Googling around I found several articles, but only about 3 different PHP implementations for S3 - all 3 used at least 1 PEAR library. After wasting half a day trying to find something that didn't use PEAR I started a conversation with the lead programmer. What he said revealed a lot.