One day I had an interesting idea. I already have QetriX project template in several languages for several platforms: PHP, JavaScript, C# (WinForms, WPF, ASPX), Java (Spring, Android) and Objective-C for iOS and OS X. Everything does the same and is coded in the same way.
Why not create a something like Hello World showcase? Usually, "Hello World" is just a simple piece of code to show how the programming language works. I have quite simple yet complete data solution, where I can demonstrate much more - the whole programming at glance. And not only the code, but different data management approaches (like databases) as well!
As I mentioned before, I'm very aware my programming habits is nothing to demonstrate. Also, each platform and language works differently and the same construction might be efficient in one language, but highly inefficient or even impossible to do in the other(s).
Therefore I decided to make more than one version for platforms where applicable - one in "compatibility mode", where all constructions will be the same (or at least very similar) across all languages and it will be easy to compare programming techniques between different languages and platforms, and one or more in "lang native mode", where the most efficient techniques and best practices will be in use.
In PHP there are many different approaches. Therefore I'll try to create one QetriX in pure functional programming, one in reasonably objective programming and one in pure OOP. I've just got an idea to even use different frameworks and CMS (CodeIgniter, Zend, Nette, Symfony, FatFree, CakePHP, WordPress, MediaWiki...) to recreate QetriX in them.
It would be nice to see the difference between them, how many lines of code and what performance results it will provide. I'm quite looking forward to do this.
No comments:
Post a Comment