Project: Survey
Yesterday I spent about 12 hours adding some features to PHPSurveyor, an open source web survey package. This is part of a research project of a friend of mine who, unfortunately, got stuck with some survey code that was... erm... inadequate.
The Plot Thickens...
The original plan was to extend the existing code, which seemed reasonable enough. Some moments investigating later, it started to seem less plausible. Finally I had someone else look at the code. I don't remember the exact response, but it had something to do with a 10' pole, so that settled that. *Insert movie clip of someone dragging a folder icon into a trash can*
Most commercial web survey packages are fairly pricey. They start at around $80-$150 for the standard ones, but those didn't have the features we needed. The packages that did were upwards of $5000. (Incidentally, I hear the 'original code' hadn't been much cheaper than that...) There were some packages with academic licenses, but they typically had strange requirements, such as 'citing' the software in any derived academic papers.
Short version: we decided to grab PHPSurveyor and slap on the extra feature we needed (i.e. that would be my job).
The Features
PHPSurveyor lacked an important feature. We had some scenario questions, where we wanted to have the participant rate three scenarios at a time, for a total of 8-12. These would be different for different participants, allowing us to cover a large number of permutations without having each participant answer > 100 questions
On top of that I was asked to make this a tournament-style set of questions. In other words, after the first round, the highest-ranked scenarios would be put together in new sets of three and ranked again.
Anyway... all of this is summarized in the top picture, which is a diagram I sent my friend to make absolutely sure I understood the setup. The small gray boxes represent scenarios; the blue boxes are pages in the survey. The red stuff is my design
Rather than making significant changes to PHPSurveyor, I decided to just add some hooks and keep my own code as separate as possible. I also decided to prefix all my code with 'pete_,'
which made for easy automated searching through PHPSurveyor's 4500 lines of messy code. Have a look at the second picture and try to find the part I added
My 'contribution' to date is about 500 lines of code, or a little bit more than 10% of the entire thing. For comparison, the entire 'original code' was 900 lines...
The Conclusion
Bored yet?
I actually enjoyed working on this particular feature, because it was a nice bite-sized little project. It was also a nice opportunity to do some Open Source Software evangelism. Over the next few months we'll see if it actually worked *crosses fingers*
Kaleena:
Pieter's so smart!
reply to this comment- this comment inspired
- Hooimama — #2
- , Arjo Hooimeijer — #3
- , Pieter Hooimeijer — #5
(2005-08-13 09:14:23)Hooimama:
inspired by Kaleena — #1
Hahahaha! You're so biased!!!!
reply to this comment- this comment inspired
- Arjo Hooimeijer — #3
- , Pieter Hooimeijer — #5
(2005-08-13 11:46:22)Arjo Hooimeijer:
inspired by Kaleena — #1 He has his moments..
reply to this commentinspired by Hooimama — #2 As should you be
- this comment inspired
- Pieter Hooimeijer — #5
(2005-08-13 12:05:35)Arjo Hooimeijer:
Nice stuff Pietor
reply to this commentPieter Hooimeijer:
inspired by Hooimama — #2 inspired by Kaleena — #1
Why... thank you... Actually Hooimama is the true genius--she picked out spelling/stylistic errors in both this post and my previous one. Thanks for keeping my site a syntactic miracle 
inspired by Arjo Hooimeijer — #3He has his moments.. Hmmm thanks (?)
reply to this commentwow gold:
http://www.wowgolds.co.uk wow gold http://www.wowgolds.co.uk cheap wow gold http://www.wowgolds.co.uk buy wow gold http://www.wowgolds.co.uk world of warcraft gold http://www.wowgolds.co.uk wow http://www.wowgolds.co.uk world of warcraft http://www.wowgolds.co.uk/w... wow gold http://www.wowgolds.co.uk/w... WoW Warrior http://www.wowgolds.co.uk/h... WoW Hunter http://www.wowgolds.co.uk/r... WoW Rogue http://www.wowgolds.co.uk/p... WoW Paladin http://www.wowgolds.co.uk/s... WoW Shaman http://www.wowgolds.co.uk/p... WoW Priest http://www.wowgolds.co.uk/m... WoW Mage http://www.wowgolds.co.uk/d... WoW Druid http://www.wowgolds.co.uk/w... WoW Warlock http://www.powerleveling2.cn power leveling http://www.powerleveling2.cn powerleveling http://www.wowpowerleveling... wow power leveling http://www.wowpowerleveling... wow powerleveling http://www.wowpro.cn wow guides http://www.wowmmo.cn wow tips http://www.wowgoldfood.cn food http://www.wowgoldflower.cn flower http://ggtop.nbatop.com google排名 http://ggtop.nbatop.com google左侧排名 http://ggtop.nbatop.com google排名服务 http://www.baidupaiming.net 百度推广 http://www.baidupaiming.net 百度排名 http://www.fzqsnet.cn 网站推广 http://www.thebiz8.com 商业吧 http://www.thebiz8.com/jich... 机床 http://www.thebiz8.com/ledd... LED灯 http://www.thebiz8.com/dian... 电池 http://www.thebiz8.com/suli... 塑料 http://www.thebiz8.com/shex... 摄像机 http://www.thebiz8.com/yimi... 移民 http://www.thebiz8.com/jiac... 甲醇 http://www.thebiz8.com/ranl... 染料 http://www.0591qs.cn 福州热线 http://www.sportblog.org.cn 体育博客 http://www.stockblog.org.cn 股票博客 http://www.gameblog.org.cn 游戏博客 http://www.cheap-wow-gold.o... 魔兽博客 http://www.excamtest.cn 考试博客 http://www.carblog.org.cn 汽车博客 http://www.houseblog.org.cn 房产博客 http://www.pcblog.org.cn 电脑博客 http://powerlin518.iblog.com powerlin518 http://www.xcelwebdesign.com logo design http://www.xcelwebdesign.com website design http://www.xcelwebdesign.com web design http://www.shangbiaodesign.cn 商标设计
reply to this comment