« Why "Remember This Choice" checkboxes are EVIL!!!! | Main | New Project »
Thursday
Mar262015

Classified Thoughts

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.

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.