2,491 karma · joined Aug 9, 2011 (15y ago) · 245 submissions
https://hnbadges.netlify.app/?user=hartleybrody
comment 3mo ago · link · parent
I have been using it for a few weeks, and it significantly improves the quality of the docstrings and code comments, as well as the readability of spec docs.
I have also added a few key bullet points to my AGENTS.md and have found the results to be very effective and generating plans and code that looks like something I would have written:
-----------
## planning, design and spec docs
- the highest design goal is simplicity -- in our systems and our mental model -- even if if means edge cases are unaddressed and could potentially fail
- please practice "ya ain't gunna need it" (YAGNI) do not add unnecessary guardrails
- do not plan to add caching, many layers of unnecessary abstraction or other premature optimizations
- look for places where adding or clarifying an invariant would simplify the code or the overall system
please specifically try to avoid:
- redundant calculations or duplicated work
- duplicated conditionals or state-machine logic
- storing state that can be derived from other state, which could drift and become out of sync over time
- leaky abstractions across layers of the application
- multi-line comments explaining a variable name or a single statement. well chosen names and design should makes these unnecessary, as the code is self-documentingcomment 3mo ago · link · parent
comment 4mo ago · link · parent
There's a browser extension that reads the content of the article on the page (only when you activate it, using least privilege browser APIs for content scripts) and then narrates the article for you. You get a custom podcast RSS URL that works in (almost) any podcast player, and then you can take articles with you to catch up while driving, walking the dog, etc. All the typical podcast audio controls you're used to like speed settings, skipping, and no new apps to download or learn.
It has genuinely been a big benefit and allowed me to keep up with articles I'd never normally have time to read, plus it allows me to reduce my screen time. My wife also uses and loves it. There have been some interesting bugs in the narration like originally pronouncing "24/7" as "twenty-four sevenths" but I am working through different strategies to get more accurate narration from arbitrary long-form text.
With apologies for the ".AI" domain, it was a bit of an impulse buy: https://earcast.ai/
4.
AI and Job Postings: From Destruction to Creation(hiringlab.org ↗)
1 points · by hartleybrody · 4mo ago · discuss
5.
We've been vibe coding since the Stone Age: Do we still need humans in the loop?(blog.hartleybrody.com ↗)
7 points · by hartleybrody · 11mo ago · 2 comments
comment 1y ago · link · parent
8.
Ask HN: How are you attributing your AI usage when developing software?
4 points · by hartleybrody · 1y ago · 6 comments
comment 3y ago · link · parent
comment 3y ago · link · parent
12.
Ask HN: Anyone else getting Cloudflare checkpoint pages returned from unpkg CDN?
3 points · by hartleybrody · 4y ago · 1 comment
comment 4y ago · link · parent
The HTMX and alpine libs were intended to be sprinkled onto existing web apps (my usual python/flask stack), whereas Phoenix would be for building all new projects.
15.
My thoughts about Fly.io (so far) and other newish technology I'm getting into(blog.hartleybrody.com ↗)
130 points · by hartleybrody · 4y ago · 108 comments
16.
Show HN: A simple static website generator in Python(github.com ↗)
4 points · by hartleybrody · 4y ago · discuss
comment 4y ago · link · parent
This is where having multiple hobbies not only adds depth to conversations & makes you more interesting, it allows you to cross-pollinate your friend groups from each hobby. If you join a cross fit gym and a running group (as others have mentioned in the thread), then you invite someone from the gym to the group or vice versa.
The invitation can either be a "I think you'd really enjoy this activity", in which case you're introducing them to something new and cool, or it can be "I think you'd really like the people I do X with" in which case you're helping them meet friends.
People who take you up on the offer to either try something new or meet new people with you as their guide are sure to become friends. You get to see each other in new elements and your relationship can now trascend simply doing one activity together.
I think this approach feels a lot more natural than jumping straight to "hey, I've seen you at the rock gym a bunch, let's get coffee?" which can feel like a big jump and somewhat forced.
comment 5y ago · link · parent
It's not like they called to the plane and said "we'd like to kidnap a passenger, please land" and the pilot went along with it.
comment 5y ago · link · parent
Dropbox is "just" a private s3 bucket with s3cmd on a cronjob -- or a million other technical solutions -- but they're a successful business because they nailed the user experience for average joes.
The point of OP's product is that you don't have to cobble together a bunch of hacks to replicate the desired user experience, it's supported out of the box.
comment 5y ago · link · parent
7:55 Angina example
10:05 Parkinson’s disease example
13:10 Multiple sclerosis example
14:52 emphysema example
18:47 knee pain
20:40 spine surgery
21:52 Injection therapy for pain
24:59 Explain perceived effectiveness
26:29 correlation vs causation
29:33 Improvement not due surgery
30:33 Natural history
34:01 regression to the mean
35:43 concomitant treatment
39:16 perceived improvement: patient vs clinician
41:50 therapeutic envelope
42:38 Intervention: the placebo pill
44:02 Building the ideal placebo
47:02 “Why do we still operated?”
52:00 Determining effectiveness
52:55 Reducing error in estimating the truth
54:55 Why we need blinded randomized trials
55:12 Ethics and Placebo
59:50 One possible solution
1:00:20 Current status of placebo RCT in orthopedics
1:00:44 Summary, questions, and comments
[0]: https://www.youtube.com/watch?v=IzueFu1cq5Ucomment 6y ago · link · parent
I have used this technique multiple times myself to help with otherwise fraught or overwhelming decisions, and I think it's a great way to shift your frame of reference.
Interview where he describes it here: https://www.youtube.com/watch?v=jwG_qR6XmDQ
comment 7y ago · link · parent
[0]: https://en.wikipedia.org/wiki/Wikipedia:Database_download
comment 7y ago · link · parent
Also, one of the values to me in using Anki is creating the cards myself. It allows me to mull things over and decide what part of a fact is important, and how I'd like to recall it.
Relatedly, the value isn't necessarily in reading someone else's study guide before a test, it's in creating your own study guide. That process helps you understand and retain the material far better.
comment 7y ago · link · parent
When I got home, I transferred him to a double ziplock labelled with the date and where on the body I found him and tossed him into the freezer for a few months until I figured I was in the clear.
comment 7y ago · link · parent
A technology that's been around for decades and is still considered a viable candidate will be much more reliable, documented, mature, bugfree... than some new library that is untested hasn't been worn smooth over time.