Better HN
topnewbestaskshowjobs
Log inSign up

jamis

471 karma · joined Feb 4, 2009 (17y ago) · 60 submissions

[ my public key: https://keybase.io/jamis; my proof: https://keybase.io/jamis/sigs/G2vGveEPn2Ie6ZmHPO8NZEk_DjO1BkbasgRjt1IQorQ ]
Submissions

1.

Weekly Programming Challenge #1: Binary Search Tree(medium.com ↗)

1 points · by jamis · 10y ago · discuss

2.

Playing “what if” with “if” – exploring a consequence of Ruby's grammar(medium.com ↗)

1 points · by jamis · 10y ago · discuss

3.

Write It When You Need It(medium.com ↗)

2 points · by jamis · 10y ago · discuss

4.

It's Not Your Fault – The Role of Environment in Burnout(medium.com ↗)

4 points · by jamis · 10y ago · discuss

5.

Avoiding the Trap – Learning to Recognize Burnout(medium.com ↗)

1 points · by jamis · 10y ago · discuss

6.

The Poverty of Constraints – Two Proverbs That Preach Productivity in Poverty(weblog.jamisbuck.org ↗)

1 points · by jamis · 10y ago · discuss

7.

“Being a Good Neighbor” – Thoughts on the Role of Compassion in Business(weblog.jamisbuck.org ↗)

3 points · by jamis · 10y ago · discuss

8.

“Don't Feed the Hamster the Whole Stalk” – A Parable about API Design(weblog.jamisbuck.org ↗)

3 points · by jamis · 10y ago · discuss

9.

“The weakly-flowing stream” – don't let constraints kill your momentum(weblog.jamisbuck.org ↗)

1 points · by jamis · 10y ago · discuss

10.

Living with your eyes open – learn wherever you are(weblog.jamisbuck.org ↗)

2 points · by jamis · 10y ago · discuss

11.

Four Korean proverbs applied to software development(weblog.jamisbuck.org ↗)

3 points · by jamis · 10y ago · discuss

comment 10y ago · link · parent

Thanks for stating it more clearly than I did! You've nailed it. It's always bothered me when people dismiss their ability to learn a thing, because they think some part will be difficult. They really have no idea. Yes, the task as a whole will have difficult parts, but we as individual human beings are far more capable than we give ourselves credit for.

13.

Don't Assume It's Difficult Until It Is(weblog.jamisbuck.org ↗)

153 points · by jamis · 10y ago · 29 comments

14.

“Recover the Widgets” – WebGL Game Prototype(jamisbuck.org ↗)

1 points · by jamis · 10y ago · discuss

15.

Avoiding “Call Super” with Callbacks(weblog.jamisbuck.org ↗)

1 points · by jamis · 10y ago · discuss

16.

Don't confuse an integration API for an internal API(weblog.jamisbuck.org ↗)

3 points · by jamis · 10y ago · discuss

17.

Upsilon Mazes(weblog.jamisbuck.org ↗)

8 points · by jamis · 10y ago · discuss

18.

Representing a Toroidal Grid(weblog.jamisbuck.org ↗)

18 points · by jamis · 11y ago · 2 comments

19.

Fifteen minutes – doing more in smaller chunks(weblog.jamisbuck.org ↗)

3 points · by jamis · 11y ago · discuss

20.

Test-last vs. test-first: testing what you should have written(weblog.jamisbuck.org ↗)

4 points · by jamis · 11y ago · discuss

comment 11y ago · link · parent

Agree about debugging. To my thinking, though, there are two types of "programming": professional (for day jobs, where debugging, testing, and maintainability matter), and recreational (where the point is to just explore new things and try crazy stuff that no one in their right mind would ever "really" do). This "def" stuff falls into the latter category.

Honestly, I wish there were more people doing posts about recreational programming topics. WhyTheLuckyStiff was one of the last great recreational Rubyists. I miss that kind of no-holds-barred exploration.

comment 11y ago · link · parent

Thanks! I'm not the first to talk about using IRB for interactive fiction, but I think I might be the first to do so using nested defs. :) IRB-based Zork would be awesome! I hope someone does that.

23.

The Dynamic Def – abusing Ruby's def statement(weblog.jamisbuck.org ↗)

141 points · by jamis · 11y ago · 86 comments

24.

The Dynamic Def – abusing Ruby's def statement(weblog.jamisbuck.org ↗)

1 points · by jamis · 11y ago · discuss

25.

Stuck? Try changing the channel(weblog.jamisbuck.org ↗)

1 points · by jamis · 11y ago · discuss

comment 11y ago · link · parent

The article links to my github repository for a wordsearch utility I wrote (here: https://github.com/jamis/wordsearch) and it includes a description of a technique for embedding a message in the unused letters of a wordsearch puzzle.

comment 11y ago · link · parent

Backtracking works well to try and fit words in tightly, but (especially in cases where the words just BARELY fit) it can take a long time to generate the puzzles. I'm sure that judicious use of heuristics could prune unprofitable branches more quickly and speed things up, but I've not explored those optimizations at all.

comment 11y ago · link · parent

Good point. I was relying mostly on the words being sufficiently complex that the odds of them appearing by chance would be small, but enforcing that assumption would be a good exercise.

29.

Generating Word Search Puzzles(weblog.jamisbuck.org ↗)

29 points · by jamis · 11y ago · 13 comments

30.

ActiveRecord's “default_scope” is an anti-pattern(weblog.jamisbuck.org ↗)

2 points · by jamis · 11y ago · discuss

12