Alchemist
alchemist
https://github.com/acumenbrands/alchemist
A functional, Ruby DSL for casting, transforming and transposing objects
This package provides a functional, Ruby Domain-Specific Language (DSL) for casting, transforming and transposing objects.
The project's README file provides the following explanation of the purpose of this library:
Rationale
Casting complex objects from one type to another can be an uncomfortable process to express well. Objects that we use on a daily basis are not always in our control, and, even when they are, some don't lend themselves to simple construction. Remote service communication objects or complex data structures from libraries we use in our applications can result in large piles of casting code.This circumstance often produces large swaths of procedural code, even if split up into separate function calls. This code can be not only difficult to understand, but difficult to test if an object requires a great deal of set up. Field or method assignments midway through can change and break the entire operation.
The goal of this project is to provide a method of defining easily digestible specifications for object translation that are also easily testable and changeable. The project focuses on writing specifications for transformations and not doing direct mutation in the recipes. The result is something that should seem somewhat functional, but also exceedingly separable.
Download
https://github.com/acumenbrands/alchemist/archive/0.4b.tar.gz
Categories
Licensing
License
Verified by
Verified on
Notes
Leaders and contributors
Contact(s) | Role |
---|---|
James Christie | Author |
Alex Williams | Co-Author |
Resources and communication
Audience | Resource type | URI |
---|---|---|
Python (Ref) | https://pypi.org/project/alchemist | |
Ruby (Ref) | https://rubygems.org/gems/alchemist |
Software prerequisites
Kind | Description |
---|---|
Required to use | Ruby |
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.
The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.