|
|
|
|
|
by pavlov
2646 days ago
|
|
I use it by default for new Node.js projects (most of which are experiments but some end up in production, and have been running without problems for years). It's a simple pattern to implement. To make it a bit easier to use repeatedly, I've got a small helper class called JournaledCollection. You pass it serialize+deserialize callbacks for your item type, and it takes care of persistence in event logs. For a while I was thinking about releasing my helpers as a project called LAUF, short for "Lame-Ass Un-Framework". Then one could say: "Most of my projects are LAUFable, I don't need anything more serious." (Awful dad jokes are a solid reason to publish open source, right?) Never got around to it though, but if you're interested, I could put together an example. |
|