games Open Menu Banner Image Separation of Concerns

shiny interactive flash prototype recoding data access layer business logic presentation separation of concerns

Scrapbook / Separation of Concerns
2009/05/25 00:05:00

I'm currently reviewing the backend code to the DFMA (<a href="//">Dwarf Fortress Map Archive</a><Wink>, with an aim to improve the site by making it easier to use. To make it easier to use I would like to use AJAX style queries (where applicable) to make it easy for users to add comments and rate submissions without needing to refresh the page and lose their place on the site. Without hacking apart working code, I decided a new data services layer separate from the old procedural code would be the best way to connect AJAX queries from the front end to data actions at the rear.

I started by centralising the data access layer which quickly deteriorated into an internal discussion about where "spam checks" and "user permissions" should fit into the coding structure. To clarify my ideas I drew a three tier diagram specifying the general features of the site and how they should fit into the new coding.

Such tedium distracted me to add shiny boxes, and then a few animations on top. Since, I can't forget myself as a flash programmer, even though I'm so heavily involved with backend coding.

The reuslt - recoding is going well, and I have a shiny "interactive" diagram to post on my website.

For reference I used prototype code for the animations, variations of the animation example that I posted on my company's website: <a href="//">Variation on AS2 Prototype for animation (code)</a>

Flash Disabled

Please enable flash player to view this content.