๐‘จ๐’๐’…๐’“๐’†๐’˜ ๐‘บ๐’•๐’†๐’˜๐’‚๐’“๐’• ๐Ÿ‡ต๐Ÿ‡ธ

5.4K posts

๐‘จ๐’๐’…๐’“๐’†๐’˜ ๐‘บ๐’•๐’†๐’˜๐’‚๐’“๐’• ๐Ÿ‡ต๐Ÿ‡ธ banner
๐‘จ๐’๐’…๐’“๐’†๐’˜ ๐‘บ๐’•๐’†๐’˜๐’‚๐’“๐’• ๐Ÿ‡ต๐Ÿ‡ธ

๐‘จ๐’๐’…๐’“๐’†๐’˜ ๐‘บ๐’•๐’†๐’˜๐’‚๐’“๐’• ๐Ÿ‡ต๐Ÿ‡ธ

@src_rip

https://t.co/9Bfzbylxro on YT LiveView Expert, interests: Elixir | Phoenix | NeoVim | Web Performance | Accessibility | WebRTC | Svelte | building https://t.co/nSnSCsmfmB

Michigan Katฤฑlฤฑm Ekim 2017
1.2K Takip Edilen889 Takipรงiler
Isaac Yonemoto is cooking
Isaac Yonemoto is cooking@DNAuticsยท
@src_rip yeah, I definitely had to intervene about 30 times over the course of 3 days to guide it to more performant, not crappy solutions, help make tough decisions, etc.
English
1
0
1
38
Brandon M
Brandon M@Brandon03344418ยท
@cww_0 Maybe we should embrace fossil fuels/nuclear to support our energy grids. Canโ€™t push everyone to go electric/EV and then be like โ€œoh guys, please use less electricityโ€
English
10
0
2
1.8K
Paul Kim
Paul Kim@pkayokayยท
I actually need to correct myself here. If it's something I'm familiar with: Rails/Ruby, Phoenix/Elixir React/TypeScript... Then I still review it but not as closely as I used to, especially when using skills to review/refactor the code. Now, I have 2 other apps in tech stacks I do not know and those I have not reviewed a single line of code.
Paul Kim@pkayokay

Does anyone even actually review AI generated code from frontier models? I never look at it anymore and makes me question my tech stack choice often. I'm choosing based on what the tech allows me to do and its ecosystem, not on what I've known or identified as (Rails dev).

English
4
0
9
1.7K
๐‘จ๐’๐’…๐’“๐’†๐’˜ ๐‘บ๐’•๐’†๐’˜๐’‚๐’“๐’• ๐Ÿ‡ต๐Ÿ‡ธ
This is a fantastic resource on setting up worktrees with working Ecto dbs on Phoenix!
Dylan Kenney@dmkenney

I run a bunch of @claudeai code agents in parallel, each in its own git worktree of my #elixir app. They all need to boot a server + Postgres without colliding. My trick: zero per-worktree config. Everything is derived from the worktree's directory name at boot.

English
0
0
12
1.9K
๐‘จ๐’๐’…๐’“๐’†๐’˜ ๐‘บ๐’•๐’†๐’˜๐’‚๐’“๐’• ๐Ÿ‡ต๐Ÿ‡ธ
Very insightful! Iโ€™m finding learning how to work with AI the most efficient is kind of becoming the majority of a software engineers job now.
Mitchell Hashimoto@mitchellh

My heuristic is that any diff an agent generates over ~1500 lines is too big and is indicative that the problem needs to be decomposed. This is my general pattern now for feature work: 1. Try to implement the whole feature, loosely guided. I call this the "draw the owl" prompt in reference to the meme. Expect garbage, you're going to get garbage. 2. If the diff is less than 1500 lines, review it and iterate normally. If the diff is more than 1500 lines, prompt the agent to decompose the problem into atomic, incremental, reviewable tasks. Simultaneously, do this yourself. 3. Agents will very often make these tasks way too specific to the shape they solved. You need to massage it into the right general shape. Do that. 4. Kick off new agents to work on those incremental things (as parallelized as possible). Apply the same rules. 5. At a certain, point, repeat the "draw the owl" prompt. At some point, you will get beneath your review-ability threshold. This has been producing consistently high quality, maintainable, reviewable chunks of code that have a good handoff to either merge as-is or human refinement. And with the latest frontier models at xhigh thinking, these are all slow enough that you can usually have multiple going concurrently while you are actively reviewing others or working on your own tasks. HITL (human-in-the-loop) agents are still super important, especially for feature work. Features touch the human boundary in terms of UI, API, etc. And net new stuff can introduce pathologies in the architecture that violate desired invariants (these should be represented in specs or tests but we aren't perfect!). I know a lot of the leading edge agentic discourse is about "loops" and agents driving agents continuously. I do some of that (will report on that later). But, in terms of raw daily get-shit-done type of work, this is my most rewarding pattern at the moment.

English
1
0
4
924
๐‘จ๐’๐’…๐’“๐’†๐’˜ ๐‘บ๐’•๐’†๐’˜๐’‚๐’“๐’• ๐Ÿ‡ต๐Ÿ‡ธ retweetledi
Josรฉ Valim
Josรฉ Valim@josevalimยท
I wanted Codex to find usages of [key: foo | bar] in Elixir's codebase. It grepped first, but got too many false positives. BUT, since Elixir's AST is quite uniform, it chose on its own to write a script that parses all files, scans the AST, and gave me precise locations. WILD.
English
8
15
237
14.7K