HNHacker News
TopNewBestAskShowJobs

michaelfeathers

2,516 karma · joined April 15, 2009

submissionscomments
michaelfeathers··on Programming Deflation
There's something with the same shape as Jevon's paradox - the Peltzman effect. The safer you make something the more risks people will take.

Applied to AI I think it would be something like - ease of development increases the complexity attempted.

michaelfeathers··on The key points of "Working Effectively with Legacy Code"
Thanks. After I wrote it a friend said "I think you just gave people permission to do things that they would've felt bad about otherwise." I think he was right, in a way. On the other hand, not everything is obvious to everyone, and it's been 20 years. Regardless of whether people have read the book, the knowledge of these things as grown since then.
michaelfeathers··on Left to Right Programming
The developers of JMock, the original library for Java.
michaelfeathers··on Left to Right Programming
This is called point-free style in Haskell.

Sometimes it is called a fluent-interface in other languages.

michaelfeathers··on My AI skeptic friends are all nuts
That doesn't sound like the sort of problem you'd use it for. I think it would be used for the ~10% of code you have in some applications that are part of the critical core. UI, not so much.
michaelfeathers··on My AI skeptic friends are all nuts
I think we are going to end up with common design/code specification language that we use for prompting and testing. There's always going to be a need to convey the exact semantics of what we want. If not, for AI then for the humans who have to grapple with what is made.
michaelfeathers··on ChatGPT 4.1 Jailbreak Prompt
The trajectory of AI is: emulating humans. We've never been able to align humans completely, so it would be surprising if we could align AI.
michaelfeathers··on Chat is a bad UI pattern for development tools
Chat in English? Sure. But there is a better way. Make it a game to see how little you can specify to get what you want.

I used this single line to generate a 5 line Java unit test a while back.

test: grip o -> assert state.grip o

LLMs have wide "understanding" of various syntaxes and associated semantics. Most LLMs have instruct tuning that helps. Simplifications that are close to code work.

Re precision, yes, we need precision but if you work in small steps, the precision comes in the review.

Make your own private pidgin language in conversation.

michaelfeathers··on Software Friction
I think it makes sense to see friction as disincentive, the opposite of incentive.
michaelfeathers··on Simple tasks showing reasoning breakdown in state-of-the-art LLMs
This is a good talk about the problem: https://youtu.be/hGXhFa3gzBs?si=15IJsTQLsyDvBFnr

Key takeaway, LLMs are abysmal at planning and reasoning. You can give them the rules of planning task and ask them for a result but, in large part, the correctness of their logic (when it occurs) depends upon additional semantic information rather then just the abstract rules. They showed this by mapping nouns to a completely different domain in rule and input description for a task. After those simple substitutions, performance fell apart. Current LLMs are mostly pattern matchers with bounded generalization ability.

michaelfeathers··on Strong static typing, a hill I'm willing to die on
I always have trouble with takes like this because they are context-free. There are a wide variety of project types and development scenarios.

My nuanced take is that typing is an economic choice. If the cost of failure (MTTR and criticality) are low enough it is fine to use dynamic typing. In fact, keeping the cost of failure low (if you can) gives you much more benefit than typing provides.

Erlang, a dynamic language used to create outrageously resilient systems, is a great example of that for the domains where it can be used.

I'm not a dynamic typing zealot (I like static typing a lot) but I do think that dynamic typing is unfairly maligned.

The cost argument brings the decision down to earth.

michaelfeathers··on The 300% Production Problem
Obligatory reference to the Law of Leaky Abstractions:

https://www.joelonsoftware.com/2002/11/11/the-law-of-leaky-a...

Layers work to the degree that they are trivial, but we really only need them when they are non-trivial.

michaelfeathers··on My solopreneur story
I think it goes deeper.

When people become very skilled at programming they have the urge to scratch their own itch, either writing tools to solve software development problems or creating something with a technology that they want to use. They are uninterested in mundane, boring, vertical applications, but that's often where the money is.

The guy in the article did some development tools but some other things too. At the end of the day, imagining a market is no substitute for finding one.

michaelfeathers··on On the criteria to be used in decomposing systems into modules (1971) [pdf]
To me, the most amazing thing is that he says that it is a problem that would take the average programmer a week back then, but today it could probably be coded in 5 minutes in AWK or Perl.
michaelfeathers··on How to generate tested software packages using LLMs, a sandbox and a while loop
I think people aren't getting yet is that this generalizable beyond software. We can do this with LLM and anything that can be designed.

https://michaelfeathers.silvrback.com/prompt-hoisting-for-gp...

michaelfeathers··on Toward Condensers
I'm wondering whether there is any reason why condensers can't be used for all program optimization. It seems like the definition would allow that:

> The primary means for shifting computation is the condenser. A condenser is a component that transforms a program, yielding a program that is semantically equivalent under a stated set of constraints (e.g., “class X will not be redefined”), but may be smaller, faster, or better suited to a particular execution environment.

michaelfeathers··on Before you try to do something, make sure you can do nothing
I've always thought of this as being like proof by induction: start with the basis case.
michaelfeathers··on Show HN: File-by-file AI-generated comments for your codebase
If they can be generated from the source they probably shouldn't be in the source. Maybe it should be an IDE plugin that displays comments for code as you hover over it.
michaelfeathers··on Modules, not microservices
Microservices might be a hack to gain modularity when nothing else works.

https://michaelfeathers.silvrback.com/microservices-and-the-...

michaelfeathers··on The disproportionate influence of early tech decisions
Often this dynamic is called path-dependence too.
michaelfeathers··on Rethinking Hierarchy in the Workplace (2017)
> Actually I'd go further and say that this idea creates a lot of problems. For example, if I goof password storage and expose our users' personal information, what were you supposed to do to prevent this?

Hire better. Pithy response, but that's how responsibility aggregates.

michaelfeathers··on Large Hadron Collider discovers three new exotic particles
It may not.

https://en.wikipedia.org/wiki/Gunk_(mereology)

michaelfeathers··on Rethinking Hierarchy in the Workplace (2017)
They are aggregation points for responsibility. Without those aggregation points, responsibility can be too diffuse for effective policy setting, etc.
michaelfeathers··on Rethinking Hierarchy in the Workplace (2017)
That's fair. I was just using trees as an example. Tree-like might be a better characterization. Point is: there's a reason why fully connected structures aren't very common, and why systems tend to form hubs.
michaelfeathers··on Rethinking Hierarchy in the Workplace (2017)
> it's just that more blood goes through them so they have to be constructed a certain way

I agree but the same could be said about decision-making.

michaelfeathers··on Rethinking Hierarchy in the Workplace (2017)
It's important to realize as well that humans didn't invent hierarchy. It's a structure that occurs naturally when the costs of direct connection are too high in a system with many parts. This is why networks are federated and why vascular systems in biology are tree-like. The same dynamics are at play in human social systems, but they are not particular to them.
michaelfeathers··on The case for and against analogies
> In a good analogy, both sides should have significant shared structure. The more that’s shared, and the deeper the structure, the better.

The alternative to analogies is to name the shared structures.

michaelfeathers··on How to approach and prioritize technical debt
A term I use to recenter on Ward Cunningham's concept is 'Design Lag' - How far is the code behind your current understanding of the problem?
michaelfeathers··on Notation as a Tool of Thought (1979) [pdf]
> APL is a write-only language. [1]

I've never seen an argument against APL that wouldn't also apply to Kanji and Chinese script - notations with billions of readers.

michaelfeathers··on Discipline by King Crimson
Such a great band. I saw them in Los Angeles last month. Exquisite and energetic musicianship despite several of them being in their 70s now.
Page 1 of 22Next →