Theory vs. Practice in coding

Tags:

When working on a project, I sometimes find myself stuck – thinking about some implementation detail, such as how to tell my admin-module which other modules are installed in my CMS (but that’s another story) – and being stuck, unable to get anything done, just thinking of the problem at hand, because I want to find the best possible way …

On template “tag soup”

Tags:

Jeff Atwood’s latest post (at the time of writing this) talks about mixing HTML markup and server-side code, àla <table> < ?php foreach($foo as $bar): ?> <tr> <td>< ?php echo $bar; ?></td> </tr> < ?php endforeach; ?> </table><table> < ?php foreach($foo as $bar): ?> <tr> <td>< ?php echo $bar; ?></td> </tr> < ?php endforeach; ?> </table> He also throws in …

Dependency Injection, or how to make simple concepts sound difficult

Tags:

You may have heard of Dependency Injection. It’s essentially a way to remove implementation dependencies from classes, or “the process of supplying an external dependency to a software component. It is a specific form of inversion of control where the concern being inverted is the process of obtaining the needed dependency.” as Wikipedia puts it. Sounds complex? Yep. Is it …

Is PHP a good first language?

Tags:

Sometimes I’ve seen people say PHP is a bad first language, because it teaches bad programming habits. But is this actually true at all? Often those who say that don’t really like PHP themselves either, many times because of equally untrue reasons. I think PHP is a perfectly good first programming language – I would even go as far as …

Django and Python

Tags:

I’ve thought it would be useful, both professionally and just for fun, to know a bit wider array of frameworks, libraries and other stuff related to web development, and last week it was Jaxer time. Now, I’ve got my hands on Django, a Python-based web framework. I’ve always liked Python – The syntax is refreshingly different, and some of its …

Aptana Jaxer: MVC and other thoughts

Tags:

This week I decided to take a look at Aptana Jaxer – A server-side JavaScript implementation, or “Ajax Server” like their site says. It’s a bit different take on a server-side language and requires some new ways to do things. What it basically lets you do, is completely throw away all “traditional” server-side languages, and write all your code in …

A look at pooQuery internals

Tags:

I have received some questions regarding pooQuery (pQ from now on)… Does this really work? How does it do all this? Short answer: Yes, it does work, and what makes it tick is magic… or not, so let’s look at the tricks behind fluent languages.

pooQuery – The Fluent PHP Revolution!

Tags:

We all know that fluent programming style rocks, and jQuery is a great example of that! Wel also know that SQL is greatly simplified with fluent style interfaces! And so are Regular Expressions! Now it’s time for PHP to step in the world of fluency with pooQuery!