seedcase-project / seedcase-sprout

Upload your research data to formally structure it for better, more reliable, and easier research.
https://sprout.seedcase-project.org/
MIT License
0 stars 0 forks source link

Discussion: Where to save helper functions? #263

Open lwjohnst86 opened 4 months ago

lwjohnst86 commented 4 months ago

We started a small discussion about this when @signekb created the convert_to_snake_case() function. I think it might make things easier for us when developing to place helper type functions in a common location. What's commonly done in Python @philter87? Create a new folder called helpers/ and store individual functions in files there?

philter87 commented 4 months ago

Yes, I think a "helpers" folder is great idea - potentially with subfolders as I have needed a place to put the CSV parsing stuff.

I think the "Django-way" is to add methods on the model objects, but I don't always think that makes sense.