<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>For the past 5 years or so I've been the lead developer on Elephant and the BDB backend. I have been and will be inactive for some time yet. I may make some updates when I do a bug / upgrade pass on the two legacy commercial websites I have that are running on weblocks + Elephant.</div><div><br></div><div>The BDB backend hasn't been updated to the latest release, nor well-tested in probably 1.5 years. However, with a few quick tweaks, it shouldn't be hard to keep it current and fix any simple problems (e.g. the one mentioned for Mac 10.5). The downside of BDB generally is multiple-machine scalability as we don't currently have anything in place that would build on BDB's replication infrastructure to scale out. That's a fairly hairy project and the right person hasn't come along to pull it off yet.</div><div><br></div><div>To deal with scaling, some smart folks wrote the Elephant-postmodern backend that simulates the primitive BTrees on which the elephant object API is based so it's a bit slower than BDB depending on use case. Because it is based on postmodern / postgres, you can use postgres replication to scale the Elephant API over more machines which should be enough for most applications. Direct use of the postmodern API is of course also an option and will have somewhat better performance characteristics.</div><div><br></div><div>cl-prevalence is really nice and highly performant, but I don't like the fact that I have to encode the transaction information by hand - Elephant makes persistence really easy.</div><div><br></div><div>Oh yes, associations are still a beta feature and along with sets, set-valued slots and cached slots have not been fully vetted yet. That's one of the big reasons we've been in a perpetual holding pattern waiting for a 1.0 release. Anyone who wants to write some tests for these features might motivate me or others to invest a day or two to fix bugs. I know one or two other people have expressed interest in ironing down the last few issues and issuing a 1.0 release of Elephant.</div><div><br></div><div>I probably won't invest any more development time in Elephant beyond 1.0. For awhile I'd envisioned a pure lisp backend but I don't have the flex time for a project of that magnitude anymore. Moreover, with the proliferation of NoSQL technologies since Elephant was first developed, I'd be tempted to migrate to something like CouchBase, Mongo or another document DB solution that scales horizontally (usually by ignoring database-level, cross-object transactions) and has a simple API. </div><div><br></div><div>Both of these databases are fast, scalable and would be easy to implement underneath an Elephant-like persistent-object API. They would work well behind the weblocks API also. Mongo, with explicitly managed indices, could probably support a huge chunk of the Elephant API. Associations and similar referential integrity problems might be tricky though.</div><div><br></div><div>Cheers,</div><div>Ian</div><br><div><div>On Jul 2, 2011, at 4:01 PM, Anthony Fairchild wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Greetings Weblocks users,</div><div><br></div>I have been quite successful using Weblocks to build a web application and I thought I would introduce it on this list and provide some additional information about how I use Weblocks. Maybe this information will be useful to newcomers and I'd love to get some feedback :-)<div>
<br></div><div>My application is called SnappyVote, <a href="http://snappyvote.com/">http://snappyvote.com</a>, and is meant to be a general purpose voting application. The basic idea is you build a ballot with choices and then invite your friends to vote on it. This can be useful for a variety of applications, like voting on where to go for lunch, or what is the greatest movie of all time or 'Employee of the Month'. Right now it is alpha quality but it is being used by several people already. I plan on extending it to allow additional voting types like ranked list, yes/no, to do surveys and provide web widgets that you can embed into blogs or facebook or whatever.</div>
<div><br></div><div>Now a little bit about how I use Weblocks. I started using Weblocks when it was relatively new and used it for several small projects. I also tried other lisp web frameworks (uncommon web, plain hunchentoot) and found that Weblocks made the most sense to me. It was quite a learning curve and I did a lot of things wrong in the beginning. At times I got incredibly frustrated with it but somewhere in the process everything just clicked and I have been productive ever sense. One thing I learned fairly early on is the bundled widgets were great for quickly prototyping UI but when it comes to customizing the behavior they are fairly limited. This is *not* really a problem because building custom widgets is not that hard. So every widget in SnappyVote, except maybe forms, are all custom.</div>
<div><br></div><div>I do not use any of the continuation-based flow stuff like do-widget except for maybe one or two places. While they do make some things cleaner, IMHO I dont think they are necessary and, at least for me, they caused more headache than what they were worth. I recommend that newcomers stay away from these things unless there is a good reason to use them. YMMV.</div>
<div><br></div><div>I use Elephant with the BDB backend and I like it a lot. It was very easy for me to understand the basics and I like defining my data in terms of CLOS and not tables. The only thing I'd recommend is staying away from is associations as they seem to break under some conditions. If the site outgrows Elephant I will probably refactor my db code to use postmodern.</div>
<div><br></div><div>For unit testing I use stefil, mostly for its simplicity and my familiarity working with it on other projects. I have had great success using cl-selenium with stefil for UI testing. cl-selenium is quite stable and very easy to set up. I cannot recommend this enough and I was surprised that there is no mention of it on the weblocks site or on this mailing list. In addition to unit testing, I use SBCL's sb-cover library to get code coverage for my unit tests. sb-cover has a nice form-by-form color-coded report that shows me exactly which code paths are missed in my unit tests. Again, highly recommended!</div>
<div><br></div><div>Well, that's it. Again, feedback is welcome and I hope this is helpful to some of you.</div><div><br></div><div>Thanks!</div><div><br></div><div>Anthony</div><div><br></div><div><br class="webkit-block-placeholder"></div>
-- <br>
You received this message because you are subscribed to the Google Groups "weblocks" group.<br>
To post to this group, send email to <a href="mailto:weblocks@googlegroups.com">weblocks@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href="mailto:weblocks+unsubscribe@googlegroups.com">weblocks+unsubscribe@googlegroups.com</a>.<br>
For more options, visit this group at <a href="http://groups.google.com/group/weblocks?hl=en">http://groups.google.com/group/weblocks?hl=en</a>.<br>
</blockquote></div><br></body></html>