Classified Thoughts
Thursday, March 26, 2015 at 10:37PM

I find myself stalled on what should be a fairly simple project, and I think the reason is I don't quite have the structure of everything where I want it.

Part of the problem is I don't want to do things "the wrong way".  Intellectually, I know there's a lot of wiggle room when it comes to the "right way", and for this project in particular speed is probably preferable to doing everything proper.

For example, my original plan called for having 2 contact fields in the ClassifiedAds class.  But I don't want to put that in the database.  I know that's a no-no, but my reasoning was that this will never be a huge public site where things like that can really cause trouble.  It's an informal classified ads page on our internal network.  But still, why not do it right?

Why not?  Because it's going to take a lot longer to write everything to support a variable number of contact fields,  It also makes the form a little more complicated, and if I want it to look and behave nicely, I'll need to incorporate javascript to dynamically add the extra fields as they're needed.

My brain keeps telling me that this is unnecessary, but my gut keeps saying to do it right.  My gut is bigger than my head (by quite a margin), so I'm going to stick with doing things correctly for the moment.  Or at least as correctly as I can with the knowledge and skill that I have.

I'm working on the database at the moment.  I know what tables I want and how they'll all fit together, the issue right now is getting comfortable with using MySql again.  Thankfully XAMPP comes with phpmyAdmin, which makes things so much easier. I enjoy the command line as much as the next guy (maybe more), but I figure this isn't the time or place.  Maybe next project.

Article originally appeared on Rich Burns (
See website for complete article licensing information.