Sometimes I wonder what convinced me to buy a ReadyNAS and use rsnapshot to create incremental backups.
Read full post
Sometimes I wonder what convinced me to buy a ReadyNAS and use rsnapshot to create incremental backups.
Read full post
I can’t do simple things because they inevitably make me ranty.
Read full post
I’m used to circular references in my model. Often I do a versioning of an Item
with an ItemVersion
. Item
will link to the latest ItemVersion
and ItemVersion
will link to the relevant Item
.
Here’s how you can define your appropriate django models:
Note in the first model, Item
, we reference ItemVersion
in quotes because ItemVersion
is not yet defined.
I get Smarty thanks to django… yeah, it’s weird.
Back to my original comment about templating, smarty really is trying to limit the scope of PHP in a good way. Too often I see a lot of heavy-lifting in the templates. It’s so bad it makes my MVC’d brain explode.
Django templates are very limited, based on a philosophy of keeping view logic and only view logic in the templates.
This is what smart tries to do and it’s a reasonable solution to the fact that PHP is a templating language with a kitchen sink. It’s saying, okay… well let’s treat PHP as a programming language, and keep Smarty as the template.
symfony of course says (well not really, or in any official capacity, but would you believe… frameworks talk to me), some PHP is view and some is model/controller. We’ll suggest which ones are which, but really we’re not getting in the way of making your life a living hell by sticking complicated business logic inline.
Read full post
Imagine the most ideal way for something to work, assume that it’s going to work, and then make it work like that.
It’s amazing how much bad coupled code exists for no good reason.
Read full post
Katie and I went to Girl Geek Dinner. The best thing about being a Geek Husband is having a Geek Wife to bring you as a guest.
Read full post
[tags]django, plugins, apps, projects, symfony[/tags]
Read full post
[tags]smarty, symfony, php, python, django[/tags]
Read full post
[tags]django, symfony[/tags]
Read full post