Better HN
topnewbestaskshowjobs
Log inSign up

michaelfeathers

2,516 karma · joined Apr 15, 2009 (17y ago) · 756 submissions

Submissions

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

The developers of JMock, the original library for Java.

comment 1y ago · link · parent

This is called point-free style in Haskell.

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

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 2y ago · link · parent

I think it makes sense to see friction as disincentive, the opposite of incentive.

comment 2y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

I've always thought of this as being like proof by induction: start with the basis case.

18.

Patterns of Systems Renewal – making systems workable over time(globant.com ↗)

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

19.

Generate from Constraints: Using Prompt-Hoisting for GPT-Based Code Generation(michaelfeathers.silvrback.com ↗)

2 points · by michaelfeathers · 3y ago · discuss

comment 3y ago · link · parent

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.

21.

(Possible) AI Impacts on Development Practice(michaelfeathers.silvrback.com ↗)

1 points · by michaelfeathers · 3y ago · discuss

22.

ChatGPT: Using the Right Tool for the Right Job(stayrelevant.globant.com ↗)

14 points · by michaelfeathers · 3y ago · 5 comments

23.

Managing technical debt for competitive advantage(stayrelevant.globant.com ↗)

40 points · by michaelfeathers · 3y ago · 9 comments

comment 3y ago · link · parent

Microservices might be a hack to gain modularity when nothing else works.

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

12345
26