News for hackers. Stuff that matters.

michaelfeathers

Re:Programming Deflation on Monday September 15, 2025 @03:00PM (#45253628)
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.

Re:The Key Points of Working Effectively with Legacy Code on Monday September 08, 2025 @05:07PM (#45174007)
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.
Re:Left to Right Programming on Monday August 18, 2025 @07:39PM (#44946565)
The developers of JMock, the original library for Java.
Re:Left to Right Programming on Monday August 18, 2025 @05:47PM (#44945686)
This is called point-free style in Haskell.

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

Re:My AI skeptic friends are all nuts on Sunday June 08, 2025 @12:17PM (#44217864)
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.
Re:My AI skeptic friends are all nuts on Tuesday June 03, 2025 @12:27PM (#44171782)
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.
Re:ChatGPT 4.1 Jailbreak Prompt on Wednesday April 16, 2025 @02:06PM (#43708544)
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.
Re:Chat is a bad UI pattern for development tools on Tuesday February 04, 2025 @04:56PM (#42939459)
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.

Re:Software Friction on Tuesday June 18, 2024 @12:52PM (#40719829)
I think it makes sense to see friction as disincentive, the opposite of incentive.
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.

Re:Strong typing, a hill I'm willing to die on on Wednesday October 04, 2023 @11:55AM (#37767025)
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.

Re:The 300% Production Problem on Tuesday October 03, 2023 @12:23PM (#37754003)
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.

Re:My solopreneur story: zero to $45K/mo in 2 years on Saturday September 23, 2023 @07:14PM (#37628524)
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.

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.
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...

Re:Toward Condensers on Wednesday August 02, 2023 @06:18PM (#36978519)
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.

I've always thought of this as being like proof by induction: start with the basis case.
Re: on Tuesday May 23, 2023 @06:39PM (#36051747)
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.
Re:You Want Modules, Not Microservices on Tuesday January 03, 2023 @09:11AM (#34231490)
Microservices might be a hack to gain modularity when nothing else works.

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

Re:The disproportionate influence of early tech decisions on Tuesday August 02, 2022 @11:25AM (#32319766)
Often this dynamic is called path-dependence too.
Re:Rethinking Hierarchy in the Workplace (2017) on Wednesday July 06, 2022 @11:15AM (#32002249)
> 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.

Re:Rethinking Hierarchy in the Workplace (2017) on Thursday June 30, 2022 @11:00AM (#31933233)
They are aggregation points for responsibility. Without those aggregation points, responsibility can be too diffuse for effective policy setting, etc.

Older »