Posts tagged ‘php’

planning a new php framework

A framework widely used in my workplace call APF V2 is very powerful I have to admit. But some design of it just slow down the development, and sometime I won’t use those libs. I find myself not really familiar with PHP and web developing or I’m just a web developer, coding for food. But after all I want to be a designer of my code and work.

So after some tries I will plan to write a lightweight framework for my daily php developing. Also it will help me understand more details about how to make code together to work and the language itself. I am learning python and going to learn RoR so guess i will take advantage of  some ideas from them :)

The framework is aiming for fast developing, basically MVC design mode, restful and stick with standards(HTML/HTTP i mean), make coding more simple and easy.

I’ve created a repository on github. So if you’re interested in this new work, you can join me. Just drop a piece of comment here.

php compatibility with phpredis

I’ve been playing around with redis recently.

Redis is an open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

…Um, that’s from the official site. Actually I just use it as a key/value data store and some kind of message queue. I chose it because the language binding’s wide spread but not so as the PHP. I’ve googled for several benchmark of the php extension, finally looking into phpredis (not the php-redis). I encountered the compatibility problem with it today. The fix is easy and fast. (you could find it here). But my question is…

why doesn’t the compiler throw out a error when processing the undefined macro?

wondering… i’ll figure it out later…