Journals for

2022-11-16

🔗

Copilot works well for writing repetitive CRUD endpoints in Pic Store, but better is to not have to write them at all. I've been experimenting with using macros to abstract out the details of CRUD operations. This includes the relevant permissions checks, filtering on team/project, and so on.

Seems to be working well so far, and it removes a lot of the boilerplate. I may take this a step further and generate the entire endpoint function with a macro, but I haven't decided yet.

Learning

Speaking of boilerplate, Hillel Wayne recently wrote a short article on the origin of the term.


Thanks for reading! If you have any questions or comments, please send me a note on Twitter.