11
What type of program should this be?
(lemmy.world)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
It doesn't matter if it's truly a one-off.
However, the conventional wisdom is to split the potentially reusable part as a library package and the executable to be a thin layer on top of that library.
In this way, for example, testing can just depend on that library. In the future, if there are requests that calls for a separate executable, the library can be reused.