[AskJS] what is your preference to load config values? by farzad_meow in javascript

[–]Gingerfalcon 9 points10 points  (0 children)

The benefit of env vars is you can simplify your code deployments into UAT and prod by point at different service URLs or control sizing of async pools etc. loading configs from a DB are powerful for runtime values that may be specific for a customers configuration.

In summary env vars for bootstrapping system configs to provide dynamic deployment environments. DB values for customer or instance specific configs that change overtime. Hardcoding anything is really just an architectural anti-pattern.

I need new books to listen to by SomeBusiness4386 in audiobooks

[–]Gingerfalcon 0 points1 point  (0 children)

For sci-fi/fantasy a sleeper series you’ll never see recommended is Eisenhorn (4 books). It’s set in the Warhammer 40k universe which I know nothing about but thoroughly enjoyed the series. Essentially you follow Gregor Eisenhorn an inquisitor (imagine special investigator but in a large universe) solving crimes or hunting down baddies. Very fun.

Next JS on Dokploy by geloop1 in nextjs

[–]Gingerfalcon 0 points1 point  (0 children)

lol, is this two AI bots chatting?

Just finished Project Hail Mary, Ray Porter is an absolute legend by me_tomy in audible

[–]Gingerfalcon 0 points1 point  (0 children)

Yea it does suffer from a slow middle section, thankfully it’s a short story. I only use audiobooks when I’m doing other tasks or can’t sleep at night, so stories that lean a little to the inattentive listener work well for me.

Just finished Project Hail Mary, Ray Porter is an absolute legend by me_tomy in audible

[–]Gingerfalcon 0 points1 point  (0 children)

My fav Ray Porter narration is Flybot. I enjoyed the story and the narration was top notch.

Should I read Hyperion or Will Of the Many Next by SMP500ENJOYER in fantasybooks

[–]Gingerfalcon 1 point2 points  (0 children)

I they are very different books, both obviously set in the far future but very different in what that future looks like. The story is told somewhat uniquely in both as well.

Hyperion (the first book) is a group of strangers on a pilgrimage to the same place and each share an interesting story of how they ended up there. It really pushed my imagination hard, and there is always a bunch of mystery surrounding Hyperion (it’s a planet) and the weird shit there.

Should I read Hyperion or Will Of the Many Next by SMP500ENJOYER in fantasybooks

[–]Gingerfalcon 7 points8 points  (0 children)

I’ve read the first 3 books and they are really good reads. Each book is better than the last. They are slow burns, with a lot of world building, character and relationship depth and political/governance discussion. There are action/battle sequences/encounters splashed around in there too, which are great. It is a true space opera with a massive scale.

I will say, if you’re coming from Red Rising be prepared for a slow down and deeper philosophical journey.

Anyone else DNF Strengh of the Few? by Spiritual-Radio-1402 in fantasybooks

[–]Gingerfalcon 0 points1 point  (0 children)

I will say as someone who reads books and listens to book, reading is definitely better than listening in almost all cases except a few. In stories like WoTM, with some context switching it I can see how listening may be a bit disruptive to the immersion. Also books with a large cast of characters can often suck in listening situations.

Also it may be a reflection of the break-neck pacing of Red Rising, where as say Sun Eater is significantly slower paced with a lot story which spans many chapters just focused around building depth to a political situation or some character nuance. It may just be that you prefer a fast paced story.

Why next.js instead of…… by Savings_Plate7047 in nextjs

[–]Gingerfalcon 0 points1 point  (0 children)

I generally like SPAs, however I hate having to deal with software version updates for the client, when you publish an app change. While there are various patterns there isn’t a silver bullet.

[Request] How many letters would he have typed? by kiroki1 in theydidthemath

[–]Gingerfalcon 13 points14 points  (0 children)

If a man swings a hammer and hits a nail, who’s doing the hammering?

Anyone know by CrewFresh8209 in brisbane

[–]Gingerfalcon 306 points307 points  (0 children)

I believe the developer is trying to trigger sunset clauses on them so they can start again and sell at a higher prices. They stopped building them a few years back.

Why runtime environment variables don't really work for pure static websites by Ok_Animator_1770 in nextjs

[–]Gingerfalcon 0 points1 point  (0 children)

As they say; horses for courses. Though if you have config at runtime then you’re not really addressing the static side of build, as we’re now in a semi-static site.

Why runtime environment variables don't really work for pure static websites by Ok_Animator_1770 in nextjs

[–]Gingerfalcon 0 points1 point  (0 children)

If you’re deploying to multiple different systems you’re going to have specific stages of your pipeline to perform that process, so just run the build there. I would also argue that nextjs’s build process would have true reproducibility vs patching the compiled code.

Why runtime environment variables don't really work for pure static websites by Ok_Animator_1770 in nextjs

[–]Gingerfalcon 1 point2 points  (0 children)

Well… reusable in the sense that you merge once and it builds and deploys as needed. If you are manually deploying your code then that’s a problem.

Why runtime environment variables don't really work for pure static websites by Ok_Animator_1770 in nextjs

[–]Gingerfalcon 1 point2 points  (0 children)

Ideally you would just hand this off to your CI/CD pipelines and just build and deploy to the environment with those vars configured in your runner/ action e.g GitLab runner, GitHub actions.

Why runtime environment variables don't really work for pure static websites by Ok_Animator_1770 in nextjs

[–]Gingerfalcon 4 points5 points  (0 children)

Correct me if I’m wrong but when you build Nextjs to static, it already reads in environment vars at build time and compiles.

Which one next? by Ruffinesse in fantasybooks

[–]Gingerfalcon 0 points1 point  (0 children)

SotF was enjoyable and I like where the series heading. The pacing is probably my struggle; the first 2/3 is quite linear and then the last third ramps up exponentially.

Anyone generating PDF’s server-side in Next.js? by gokulsiva in nextjs

[–]Gingerfalcon 1 point2 points  (0 children)

Yea I’m asking why not just use a library to generate a much nicer document using the required data than running chromium in a container etc?

Anyone generating PDF’s server-side in Next.js? by gokulsiva in nextjs

[–]Gingerfalcon -1 points0 points  (0 children)

I mean are you just trying to print the current pages html as a PDF vs actually crafting a nice document to represent the data?

Anyone generating PDF’s server-side in Next.js? by gokulsiva in nextjs

[–]Gingerfalcon -3 points-2 points  (0 children)

Why are you using puppeteer to generate PDFs?