drym-org / old-abe

Accounting prototype for attribution-based economics
6 stars 2 forks source link

Refactor #1: Create new files for constants and utils #30

Closed apromessi closed 5 months ago

apromessi commented 6 months ago

Summary of Changes

Created new files for constants and utility functions and moved things inside to clear some clutter out of money_in.py. If we ever separate some of the functionality currently in money_in into distinct modules, this should hopefully make that process a little bit easier and prevent us from duplicating functionality. Also removed old print statements.

Note: we have a fair amount of functions dedicated to reading from / writing to files. I considered moving these into a read/write module to abstract their functionality away from money_in. I decided not to since we are considering migrating to sqlite soon which will naturally reduce some of the read/write clutter.

Public Domain Dedication

(Why: The freely released, copyright-free work in this repository represents an investment in a better way of doing things called attribution-based economics. Attribution-based economics is based on the simple idea that we gain more by giving more, not by holding on to things that, truly, we could only create because we, in our turn, received from others. As it turns out, an economic system based on attribution -- where those who give more are more empowered -- is significantly more efficient than capitalism while also being stable and fair (unlike capitalism, on both counts), giving it transformative power to elevate the human condition and address the problems that face us today along with a host of others that have been intractable since the beginning. You can help make this a reality by releasing your work in the same way -- freely into the public domain in the simple hope of providing value. Learn more about attribution-based economics at drym.org, tell your friends, do your part.)