Better HN
topnewbestaskshowjobs
Log inSign up

caleb_thompson

270 karma · joined Apr 26, 2013 (13y ago) · 112 submissions

Submissions

1.

Build your project Zig-style(fnordig.de ↗)

1 points · by caleb_thompson · 5mo ago · discuss

comment 1y ago · link · parent

Morality is personal. In any instance, we should think through first-, second-, and subsequent-order consequences of our actions and consider whether we're comfortable with those potential outcomes and whether those consequences balance one another.

I won't take the bait on defining the differences between wartime and peacetime work.

comment 1y ago · link · parent

Thanks, they went out of business in 2018. I've added a note to that effect and removed the link.

comment 1y ago · link · parent

Author here. I gave this as a talk at several conferences through 2017.

I didn't realize that the video embed was broken until someone pointed out that this was making the rounds again, so I've just fixed that. If you've already looked, the video is now available. The content is more or less the same as the written version so don't feel like you need to watch it if you've already read the post.

5.

How to clamp() Relative Color Lightness(angelika.me ↗)

1 points · by caleb_thompson · 1y ago · discuss

6.

My Red Hot ADHD Programming 'Affliction'(schneems.com ↗)

13 points · by caleb_thompson · 2y ago · 2 comments

7.

I (View)Model SwiftUI Views(calebhearth.com ↗)

2 points · by caleb_thompson · 2y ago · discuss

8.

How to Send a Webmention with h-entry(calebhearth.com ↗)

2 points · by caleb_thompson · 2y ago · discuss

9.

Ask Git to Show a Method(calebhearth.com ↗)

2 points · by caleb_thompson · 2y ago · discuss

comment 2y ago · link · parent

This service lets you log in via Bluesky and Mastodon and presents shared links sorted by number of shares by accounts you follow

11.

Sill(sill.social ↗)

5 points · by caleb_thompson · 2y ago · 1 comment

12.

Speed Up Compound Full-Text Searches in PostgreSQL by 300x(rorvswild.com ↗)

3 points · by caleb_thompson · 2y ago · discuss

13.

What a Trump Victory Means for Tech(nytimes.com ↗)

3 points · by caleb_thompson · 2y ago · 3 comments

14.

Thinking about recipe formats more than anyone should(rknight.me ↗)

130 points · by caleb_thompson · 2y ago · 135 comments

15.

Build Colors from Colors with CSS Relative Color Syntax(calebhearth.com ↗)

2 points · by caleb_thompson · 2y ago · 2 comments

16.

Highlighting Text in Links with Text Fragments(calebhearth.com ↗)

1 points · by caleb_thompson · 2y ago · discuss

17.

Swift-Format GitHub Action(calebhearth.com ↗)

2 points · by caleb_thompson · 2y ago · discuss

18.

Reading JSON from a Rails API in Swift(calebhearth.com ↗)

1 points · by caleb_thompson · 2y ago · discuss

19.

Drawing a Hex Grid in SwiftUI(calebhearth.com ↗)

3 points · by caleb_thompson · 2y ago · discuss

20.

See the History of a Method with Git log -L(calebhearth.com ↗)

116 points · by caleb_thompson · 3y ago · 25 comments

21.

Undo in assets:clobber What You Do in assets:precompile(calebhearth.com ↗)

1 points · by caleb_thompson · 3y ago · discuss

22.

I Bulit a Linklog in Rails(calebhearth.com ↗)

1 points · by caleb_thompson · 3y ago · discuss

23.

/Now Hear This(calebhearth.com ↗)

2 points · by caleb_thompson · 3y ago · discuss

comment 3y ago · link · parent

I've been using this pattern of naming and structuring service objects over the past ~year. It's initially been greeted with some uncertainty and skepticism when I introduce it to new developers, but it tends to grow on folks as they give it a shot and look at how it's already been used.

I wrote this up partially to codify some of how I've been explaining it to folks ad-hoc, but also to share with the broader community and get input on this way of extracting processes in Ruby/Rails projects.

25.

The Decree Design Pattern(calebhearth.com ↗)

23 points · by caleb_thompson · 3y ago · 16 comments

comment 3y ago · link · parent

Excited to announce a new gem release that allows Rails apps to accept, verify, and parse Webmentions! What are Webmentions? They're sort of like Pingback, but more concretely they're a way to let some other website know that your website linked to it.

27.

Rails Gem for Webmention(calebhearth.com ↗)

4 points · by caleb_thompson · 3y ago · 1 comment

28.

Read Ruby's Enumerable Docs(calebhearth.com ↗)

3 points · by caleb_thompson · 3y ago · discuss

29.

Painting and Proficiency with Your Tools(calebhearth.com ↗)

2 points · by caleb_thompson · 3y ago · discuss

30.

Simplify your model code in Rails by avoiding association pollution(calebhearth.com ↗)

1 points · by caleb_thompson · 4y ago · discuss

1234