François Best's latest activity

@paul out of curiosity, why not delete the attachment altogether after the email is sent?

Is there value in keeping them for forensics?

1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin

@dansup not sure about fedilebrity, I half-dyslexically read that as febrility.

0
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin

@dansup @pixelfed While "sudo mode" makes sense on GitHub, a dev-centric place where users are likely to have heard of the name and its meaning, is it the case for Pixelfed users?

"Admin mode" may be more clear to non-devs.

0
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin

@dansup Looking forward to reading your RFC!

cc @soatok, who did some prior work on E2EE + ActivityPub.

0
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin

@paul @pdenya I've encountered a similar use-case when loading environment variables, validating them and exposing the result to the rest of the application.

Here's how I go about doing it, using Zod for parsing and transforming, and crashing early with helpful messages if something isn't right.

github.com/SocialGouv/e2esdk/b

Though the resulting env object is exported/imported rather than passed as arguments, in Fastify I could expose it as a server property and use that as dependency injection.

0
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin

@paul Passing it as a parameter makes the modules much easier to test under different configurations, so I'd go for that.

I'd also type the config arguments as `Pick<ConfigType, 'whatever' | 'keys' | 'are' | 'needed'`>`, to limit the amount of boilerplate/mock needed in tests.

1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Replies