hexagonal-architecture

Any advice regarding a hexagonal architecture with serialization as the primary metaphor?

I've got the opportunity to rewrite the core of an internally-developed application that my employer uses for document control. My "core" requirements list goes something like this: Make it easier to import/export to various formats (collection of files + fairly extensive metadata being the common factor) Make it easier to add new fie...

Implementation hexagonal map (Self-Organizing Map) on Python

I am looking for hexagonal self-organizing map on Python. ready module. If one exists. way to plot hexagonal cell algorithms to work with hexagonal cells as array or smth else About: A self-organizing map (SOM) or self-organizing feature map (SOFM) is a type of artificial neural network that is trained using unsupervised learning t...

Is there an easy way to define a common interface for a group of unrelated objects?

I've got a class that serializes data. I may want to serialize this data as JSON, or perhaps YAML. Can I cleanly swap YAML for JSON objects in this case? I was hoping I could do something like the following. Is it a pipe dream? FORMATS = { :json => JSON, :yaml => YAML, } def serialize(data, format) FORMATS[format].serialize(data)...