cf.Objective() 2010 – Day 3

Part three of my cf.Objective 2010 series.  Again I arrived a little late today.  Just over tired.  I got to Terry Ryan’s ORM talk about half way through.  When I walked in he was talking about lazy loading, extra lazy, and eager.  He mentioned how you can actually do a eager join when you load an object which instead of running separate queries two get all of the data you need it Hibernate will create a ‘large’ join statement that will pull all of the data in one query.  This was something I hadn’t previously heard of and sounded like it might have some good uses.  He went on to talk about Caching, Event Handling and Table Generation.

Read the rest of this entry »

Retweet

cf.Objective() 2010 – Day 2

Part two of my cf.Objective 2010 series.  I was a bit worried this day was going to be rough as I had been at the office until almost 10pm the night before.  I was a little late the first session and missed breakfast but for the most part I was more awake than I expected.  It helped that the first couple sessions weren’t entirely boring.  Actually the session on Flex 4 was pretty interesting, but still wasn’t earth shattering information.

Read the rest of this entry »

Retweet

Apple < Microsoft

Short rant about how pissed I am with Apple.  People who think that Apple is less ‘evil’ than Microsoft are ignorant.rottenapple2

I own an iPhone and for the most part I really like it.  I have few complaints, and most of them are a result of greedy mobile carriers.  iPad comes out and now I am really interested in developing apps for the iPhone and iPad.  I think it would be fun as well as a way for me to branch out from web development.  So I go to the Apple website and register as an Apple Developer.  It wasn’t until after I registered that I found Apple has made it virtually impossible for you to develop apps for the app store if you do not have a computer running OSX.  On top of that it has to be running on an Intel platform, so one of their newer model machines.

Screw you Apple.

OSX blows you elitist bastards.  You develop a great mobile platform, the iPhone OS, and then you tell me because I prefer *insert favorite not apple OS here* I am not worthy of developing applications for your platform.

As if that wasn’t enough they updated there App store terms of use to eliminate Adobes efforts of circumventing this proprietary BS.

I guess it is time for me to start looking at Android or the Win Mobile 7 OS.  I definitely wont be buying an iPad anytime soon.

Retweet

cf.Objective() 2010 – Day 1

Through work I received the opportunity again to attend the annual cf.Objective Conference held in the Twin Cities.  I have attended the conference for the last four years since its inception in 2007.  To summarize it is a conference for advanced ColdFusion developers.  If you are brand new to ColdFusion you would be better off attending CFUnited. Some session you might see at cf.Objective would be about Frameworks, ORM, CF integration with Flex, etc.

In this post I am summarizing the sessions I attended on the first day.

Read the rest of this entry »

Retweet

Dependency Injection with PHP

Found this article while looking for an open source Dependency Injection engine for PHP.  The grammar needs a little work but otherwise it is a really good summary of what Dependency Injection is and why programmers should use it.

In ColdFusion we use ColdSpring which is based on the Spring Framework for Java.  It actually does a lot more than just DI but I am not concerned about that.  What I really want is something that can handle the same kind of DI situations that ColdSpring does for PHP.  I am currently working on a WordPress plugin for a freelance client which has turned out to be the most heavily object oriented PHP project I have done so far.  I have been trying to translate a lot the best practices I have learned while working with ColdFusion over to PHP and came across a need for DI.  What I ended up doing is creating a Factory that handles all of my object creation just like what is mentioned in the article by Ryan on PotStuck.  I pass an array with all of my classes, their paths, and their dependencies, like so:

$classes = array (
	'EventBean' => array (
		'path' => 'model/Event.php',
		'dependency' => array (
			'Venue' => 'VenueBean'
		)
	),
	'VenueBean' => array (
		'path' => 'model/Venue.php'
	)
);

So far it is working pretty well but I am thinking about making a more substantial DI framework that I can use on many projects to come.

Retweet

Web Programming Presentation

I gave a talk at St. Cathrine University in St. Paul on the basics of web programming.  Really the basics of web servers.  The presentation is attached.

Web Programming Introduction

Retweet