Better HN
topnewbestaskshowjobs
Log inSign up

block_dagger

1,482 karma · joined Jan 19, 2018 (8y ago) · 676 submissions

Software eng (primary Rails) / musician.

https://jck.earth https://www.linkedin.com/in/jcraigk

Submissions

comment 1y ago · link · parent

Reacting to the example in the Readme: Rails controllers are not the place to put view logic. That’s what the view layer is for. I suggest showing a view helper as an example instead.

comment 1y ago · link · parent

I've never fainted from caloric restriction. If you faint when you fast, get checked for an underlying health issue.

comment 1y ago · link · parent

I've found that training yourself to enjoy the feeling of hunger (intermittent fasting) is a boon to weight loss. Another tip: fully chew your food, and eat slowly. Don't try to satiate yourself at every meal. It takes a lot of effort at first, but it's very effective. You start to respect food (and your own body's processes) much more.

comment 1y ago · link · parent

Buildpacks look cool, but Dokku is perfect for single-server projects with its plugin system. It has one-command setup for Postgres and Redis, auto-backups to S3, built-in nginx reverse proxying, and an easy Let's Encrypt plugin. My current server has an uptime of 1,912 days (~5.3 years) with near 100% app availability. With reliability like that, I plan to stick with Dokku when I upgrade to a new server next month. For multi-server setups, Buildpacks with orchestration tools probably make more sense though.

comment 1y ago · link · parent

I like “it” but it’s a shame it works only in single line blocks.

comment 1y ago · link · parent

As a single developer of an open source Rails project that has grown to serve ~120k MAU, I can attest to this article’s claims. One tidbit to add: ActiveStorage, which provides file attachment features, is another excellent piece of the Rails family. I’ve been using Dokku but looking forward to trying Kamal. Rails keeps getting better, and Ruby keeps getting faster.

comment 1y ago · link · parent

A thought on naming - wouldn’t “freezer” be a more appropriate choice?

comment 1y ago · link · parent

That announcement was painful to read. I had AI summarize it.

comment 1y ago · link · parent

I also grew up with an Apple IIe and made dungeon games and text adventures in BASIC. But I was limited to a single manual and lived in a rural area with no nerd friends. The Internet, phones, and LLMs fill in all the gaps now, so the added complexity of today’s hardware and software is much more manageable. They are the third wheel on the tricycle or, if you prefer, training wheels on the bike.

comment 1y ago · link · parent

After looking at the history of Amazon, I'm convinced their early success was due more to ruthless business practices than being an especially good book store.

comment 1y ago · link · parent

Swirls on my phone.

comment 1y ago · link · parent

As a former SF resident who visits frequently, I still think it’s a unique and wonderful city. I would move back in a heartbeat if the weather were not so foggy and cold compared to southern California. Visit! And explore the whole bay area. Berkeley especially.

comment 1y ago · link · parent

Sent this to a friend in her 70s who does children's illustrations. Hoping she enjoys seeing her creations come to life.

comment 1y ago · link · parent

I'm also vegan and buy mostly organic products and cook at home. I get your point, though. There's only so much we can do. The tofu I eat daily comes in plastic containers, unfortunately.

comment 1y ago · link · parent

I've been using a reverse osmosis water filter at home to reduce microplastics and other contaminants from my drinking and cooking water for the past few years. I am using the #1 recommended product on Buyer's Guide[1] for others who are interested.

[1] https://buyersguide.org/countertop-reverse-osmosis-system/t/...

comment 1y ago · link · parent

I wonder: who will be our Serena Butler? [1]

[1] https://dune.fandom.com/wiki/Serena_Butler

comment 1y ago · link · parent

The Print Shop is one of the first pieces of software I ever used. I was nine years old. My parents had bought me a used Apple IIe and dot matrix printer. Included were ~200 5.25" floppy disks containing random software, many of them games. I ended up using The Print Shop more than anything else (except Dig Dug). It was very user friendly. I still have vivid and fond memories of the printer whining away late at night, slowly spewing out my graphical creations. Many thanks to the developers!

comment 1y ago · link · parent

Nice work! How does this compare to Warp?

comment 1y ago · link · parent

I wrote a short story the other day about making the carbon problem obvious to every human on earth[1]. I’d love to read yours when you finish it. We need more fiction that focuses on this along with the nonfiction imo.

[1] https://jck.earth/2024/12/20/heaven-scent.html

comment 1y ago · link · parent

One of his best.

comment 1y ago · link · parent

Aaaand it’s outdated[1]

[1] https://www.ruby-lang.org/en/news/2024/12/25/ruby-3-4-1-rele...

comment 1y ago · link · parent

Try React on Rails [1]. I’ve found it to be a very pleasant development experience.

[1] https://github.com/shakacode/react_on_rails

comment 1y ago · link · parent

This is not a drill. It really is Christmas.

comment 1y ago · link · parent

Every even number?

comment 1y ago · link · parent

Broken image and popup message that disappears after a few seconds on the home page. Yeah, no thanks.

comment 1y ago · link · parent

I would laugh if I didn’t interpret this as a disturbing dearth of evidence-based critical thinking. Homo Sapiens has immense power over the world and other species and very little rationality to temper and guide that power.

comment 1y ago · link · parent

“Tokens” makes me think of crypto/blockchain. Suboptimal naming.

comment 1y ago · link · parent

It takes a strong will to admit so publicly that you failed and to release unpolished code. I’m sure many will benefit from your efforts. Bravo.

comment 1y ago · link · parent

Also see: Land O'Lakes, Morton Salt, and Cracker Jack.

comment 1y ago · link · parent

I think a lot of devs prefer the hover-to-blame feature in their IDE vs searching through history on GitHub.
1
91011
23