Live data from Hacker News

The Twelve-Factor App (2011)

12factor.net

11–20 of 106 posts

Re: The Twelve-Factor App (2011)

#11
post #7
post #6

Earlier quoted context omitted.

Is HN a search engine for xkcd? Honestly people, do you have them indexed somewhere? I'm amazed by your ability to find the appropriate xkcd whenever it's needed. Me, I'd have to spend at least half an hour on Google trying to find it, and then give up or see that someone else already posted it. I love this community.

Some xkcd comics are classics - my gotos are the one about ISO dates ( https://xkcd.com/1179/ ) and password strength ( https://xkcd.com/936/ ). Both of these were found by search Google 'xkcd (dates|passwords)', and having them be the first result. Explain XKCD is great if you know roughly what topic was covered by a comic, but can't quite find the URL. https://www.explainxkcd.com/

> Explain XKCD is great

Thanks for the tip, I added it to my favorites.

Could it be used to implement a Slack bot similar to /giphy?

Re: The Twelve-Factor App (2011)

#12
post #11
post #7

Earlier quoted context omitted.

Some xkcd comics are classics - my gotos are the one about ISO dates ( https://xkcd.com/1179/ ) and password strength ( https://xkcd.com/936/ ). Both of these were found by search Google 'xkcd (dates|passwords)', and having them be the first result. Explain XKCD is great if you know roughly what topic was covered by a comic, but can't quite find the URL. https://www.explainxkcd.com/

> Explain XKCD is great Thanks for the tip, I added it to my favorites. Could it be used to implement a Slack bot similar to /giphy?

That exists: https://relevant-xkcd.com/slack

Re: The Twelve-Factor App (2011)

#14
One thing that I think could be updated in the 12F approach is the use of env vars for config, especially secrets.

I’ve generally found it much better to mount these into the filesystem and read from there. It helps with, for example, secret rotation for long running processes. Relying on process restarts can be ugly in some setups, especially if startup time is expensive.

Re: The Twelve-Factor App (2011)

#15

One thing that I think could be updated in the 12F approach is the use of env vars for config, especially secrets. I’ve generally found it much better to mount these into the filesystem and read from there. It helps with, for example, secret rotation for long running processes. Relying on process restarts can be ugly in some setups, especially if startup time is expensive.

Seconded, but porque no los dos? I tend to put my applications' env vars in `/etc/environment`.

Re: The Twelve-Factor App (2011)

#16

One thing that I think could be updated in the 12F approach is the use of env vars for config, especially secrets. I’ve generally found it much better to mount these into the filesystem and read from there. It helps with, for example, secret rotation for long running processes. Relying on process restarts can be ugly in some setups, especially if startup time is expensive.

Seconded, but porque no los dos? I tend to put my applications' env vars in `/etc/environment`.

It’s a good question and idea.

I’ve been trending towards treating secrets and non-secrets differently.

For non-secrets, I tend to have a config discovery mechanism that lets me read config from files, then from env, then from cli args as final fallback. This is mostly for ergonomics. I prefer to use files for deployed processes, and env vars or cli params when debugging or working interactively. Env vars are handy for cli args I’m going to be repeating a lot.

But for secrets I’ve tended to only fetching those from files, but allowing the file location to be specified by env var or cli arg for quick changes.

It sounds kinda complicated, but you write that logic into a library and then everything behaves the way you expect consistently.

Re: The Twelve-Factor App (2011)

#17
post #10
post #9

Earlier quoted context omitted.

It’s a kind of quirky humor that resonates well with a technical audience. I haven’t personally memorized any numbers, but I do know the “Ballmer peak” and “competing standards” XKCDs pop up a lot in casual conversations with my own peer groups.

I love those, but the only one I remember is https://xkcd.com/927/ It's always pleasant to see them pop up in conversations.

I can’t resist posting my favorite: https://xkcd.com/327/

Re: The Twelve-Factor App (2011)

#18

I'm interested to know what causes submissions like this - content that is years old and posted with no context - to hit the first page on a random day.

The account “tosh” does this pretty regularly.

Yes, I've noticed this as well.

Re: The Twelve-Factor App (2011)

#19
post #4

I'm interested to know what causes submissions like this - content that is years old and posted with no context - to hit the first page on a random day.

Sometimes it's people who feel like posting oldies/perennials/classics, and sometimes it's people running across a thing for the first time. We've had to learn not to crack down on these too heavily because there's always an up-and-coming cohort of new users who've never seen them before, and HN should be a place to run across them. Once a year seems to be an acceptable maximum rate ( https://news.ycombinator.com/new…

Thanks for the explanation.

Now for my next question: Out of all the other posts out there right now, how on Earth did my little inquiry catch your eyes? ;-)

Re: The Twelve-Factor App (2011)

#20
When i first found 12 factor i was really impressed, it was/is a collection of guidelines that suit their defined purpose really well, easy to read and implement.

I always feel like there should be more parts of software/web dev with guidelines like this. An easily digestible format that is easy to discuss with colleagues

other examples i can think. - https://refactoring.guru/ - not exactly a list of guidelines but a nice digestible collection of common patterns, pro's cons and when to/not use them - to a lesser degree, agile manifesto. a nice list of guidelines, but not as implementable (mainly because it is more related to people/management)

but saying that i am not sure exactly what parts of the field i need this for. I didn't know i needed this for building/deploying web apps before i saw 12 factor.

maybe application folder structures, guidelines to mitigate/remove software rot?

Post reply on HN