Sabitlenmiş Tweet
Gary Bernhardt
2.5K posts

Gary Bernhardt
@garybernhardt
Execute Program (learn programming tools quickly); Destroy All Software (dense programming screencasts); formerly Deconstruct conference.
Seattle, WA Katılım Mart 2007
112 Takip Edilen44.2K Takipçiler
Gary Bernhardt retweetledi
Gary Bernhardt retweetledi
Gary Bernhardt retweetledi

@vpatryshev @nikitonsky Well, now you have "11 separate tests, ~5x as much code, multiple helper functions and `beforeEach`s to avoid duplication, and more difficult to read."
English

@garybernhardt @nikitonsky I'd rather prefer 5ish-lines tests. If one check depends on another, there's something fishy.
English

@triskweline Yep, and yet they're all also useful ideas... sometimes! The key is to make the gremlins work for you instead of you working for the gremlins.
English

Mind gremlins like that have compromised my code for decades:
- One idea per line
- Comments are a smell
- Law of Demeter
- Only immutable values
- Inversion of control
- Single Responsibility
- DRY (still fighting that one!)
Gary Bernhardt@garybernhardt
Me at 25: Tests should be 5ish lines! One assert per test! Me at 40: This test is 56 lines long with 11 asserts. If I broke it up, it would be 11 separate tests, ~5x as much code, multiple helper functions and `beforeEach`s to avoid duplication, and more difficult to read.
English

@sjfloat I read it as admiration, not derision. Maybe you're right about them just meaning rhythmic sense, though it seems weird to me to say that as "he *is* [thing that keeps rigid time]". Either way, I think this was a really bad example on my part, for multiple reasons.
English

@garybernhardt Do they mean it in a derisive way? You can have a solid, regular rhythmic sense *and* be able to vary a tempo continuously. Rubato is a dying art. And click tracks have taken a terrible toll on popular music.
English

@freegroucho @exec_prog Yep, it's really counterintuitive. People often seem to think about it like a computer that they can speak to in natural language, but it's more like a creative but intellectually lazy intern that never gets tired.
English

@garybernhardt @exec_prog Yeah, AI/ML is not good at being 100% right. Its good at creating boilerplate starting points for code and writing projects. And for learning about a new topic.
English

@exec_prog (After 6 years without ever using a spell checker, there were 3.5 typos in the entire course catalog. There may be grammatical errors lurking, though; those can't be automated away in the same way.)
English

@mikaeilo @exec_prog I've tried grammarly before, but it suggested that I should do violence to my draft in various ways, so I don't bother with it. I only put the draft through ChatGPT to head off an objection to the post: I know that people will say "just use GPT" without knowing whether it'd work.
English

@garybernhardt @exec_prog I wonder what gramarly would report. In this specific case I think chatgpt didn't have enough training data to mimic a proofreader. And it doesn't understand the concepts you're prompting it with.
English

@SesGoe @exec_prog Somehow there was a smart quote in place of an apostrophe. It's not "wrong", in that it reads correctly, but it definitely wasn't intentional. Also I hate smart quotes.
English

@garybernhardt @exec_prog I'll be the first to ask:
How do you get half a typo?
English

Wrote a blog post (that I may not publish) about the spell checker that I just wrote for @exec_prog. As part of that, I asked ChatGPT to proofread a draft of the post. It ignored my instructions ("only report actual errors, not suggestions"). It also hallucinated one error.
English

@smlpth But this tweet isn't about whether AI is good or bad; it's about claiming to know the future. twitter.com/garybernhardt/…
Gary Bernhardt@garybernhardt
If you read this as "[insert tool here] will amount to nothing"... no. I don't know the future any more than the people who dumped billions of dollars into WS-*. But I do know that I don't know the future, which is pretty important.
English

@garybernhardt With the level of your skills, you’ll be the last to be left behind by the AI revolution on our craft. It’s infinitely harder to get your level of mastery on all levels of the stack than learning to prompt an LLM or use an AI assisted IDE 😅.
English
