this post was submitted on 20 Aug 2023
1 points (100.0% liked)

Transprogrammer

783 readers
14 users here now

A space for trans people who code

Matrix Space:

Rules:

founded 1 year ago
MODERATORS
 

I am currently working on a silly little project that will post pet's up for adoption every hour to mastodon. I am struggling with how I should structure the project.

Should I put every single step in it's own typescript module, like the main file calls the petgrabber function in petgrabber.ts after 1hr, than petgrabber calls the mastodon function in the mastodon.ts file, or should I just do a single file, or is there a way I am not thinking of. My biggest thing is them being interdependent on each other feels like it defeats the purpose of having them in their own file.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here