Hi,
I've recently adopted a sort of nested dictionary data model descending from a
single global object for my printer:
https://github.com/hyperair/deltabob/blob/vslot-upgrade/configuration/delta.scad
It sort of works and ends up cleaner in some ways in that modules no longer
depend on global variables and do not need to have super-long argument lists,
e.g. https://github.com/hyperair/deltabob/blob/vslot-upgrade/effector.scad#L224
But it also ends up with massive amounts of boilerplate to handle option
extraction:
https://github.com/hyperair/deltabob/blob/vslot-upgrade/lib/effector.scad
Perhaps I could write a script to autogenerate the boilerplate bits.
--
Kind regards,
Loong Jin
Hi,
I've recently adopted a sort of nested dictionary data model descending from a
single global object for my printer:
https://github.com/hyperair/deltabob/blob/vslot-upgrade/configuration/delta.scad
It sort of works and ends up cleaner in some ways in that modules no longer
depend on global variables and do not need to have super-long argument lists,
e.g. https://github.com/hyperair/deltabob/blob/vslot-upgrade/effector.scad#L224
But it also ends up with massive amounts of boilerplate to handle option
extraction:
https://github.com/hyperair/deltabob/blob/vslot-upgrade/lib/effector.scad
Perhaps I could write a script to autogenerate the boilerplate bits.
--
Kind regards,
Loong Jin