Mark Dalgleish

25.1K posts

Mark Dalgleish banner
Mark Dalgleish

Mark Dalgleish

@markdalgleish

🇦🇺🐨 / Working on 💿 @ReactRouter + @remix_run at @shopify / co-creator of 🦄 CSS Modules, 🧁 Vanilla Extract / @MelbJS organiser / dad x4

Melbourne, Australia Katılım Şubat 2011
0 Takip Edilen72.7K Takipçiler
Mark Dalgleish
Mark Dalgleish@markdalgleish·
@Sc_Meerkat This is what I said when I had to maintain the tests by hand, but this is exactly what’s changed.
English
1
0
2
545
Scept Meerkat
Scept Meerkat@Sc_Meerkat·
@markdalgleish The tests are never free. There is a cost associated with modifying tests when modifying code. When you test internals the likelihood of tests requiring changes is higher.
English
1
0
2
680
Mark Dalgleish
Mark Dalgleish@markdalgleish·
I used to be against a lot of heavy unit testing of internals. I felt they often cost more in dev time than they were worth compared to e2e. Now that AI makes these tests effectively free, and agents use them for localised feedback, this equation has shifted back a lot for me.
English
19
12
234
25.9K
Mark Dalgleish
Mark Dalgleish@markdalgleish·
“Skipping tests to get a green run was the wrong approach.” Sometimes you've gotta be patient with the little guy.
English
6
0
26
3.6K
Mark Dalgleish
Mark Dalgleish@markdalgleish·
@royalicing Exactly. I used to feel like a lot of these tests cost too much to maintain, but now the agent knows when to update or discard tests and can clean up as it goes.
English
0
0
5
224
Patrick Smith
Patrick Smith@royalicing·
@markdalgleish Do you keep the tests once it’s done? I guess your point is it’s fast at rewriting tests too, so they don’t have to become a burden.
English
1
0
1
226
Mark Dalgleish
Mark Dalgleish@markdalgleish·
@royalicing So agents know their code works at every layer, and have a good place to diagnose and fix issues in isolation. Without this the dev loop is too slow.
English
1
0
6
1.2K
Patrick Smith
Patrick Smith@royalicing·
@markdalgleish Are you checking that these tests do what you expect? Or is it more for the agents to stay aligned? I still think testing at the significant boundaries is what I most value. Especially because they’d be finite enough you can review them.
English
1
0
3
1.4K
Mark Dalgleish
Mark Dalgleish@markdalgleish·
Coding with agents is so addictive, it’s surprisingly easy to lose track of time. I feel like there’s an extra layer of productivity gains in the fact that I can get into a flow state almost instantly, and stay there much longer.
English
28
12
174
13K
Mark Dalgleish
Mark Dalgleish@markdalgleish·
@ScriptedAlchemy Man, you’re always on another level. Do you have more detail on this? What do these ai.tsx files contain and what’s the workflow around it?
English
3
0
2
560
Supreme Leader Wiggum
Supreme Leader Wiggum@ScriptedAlchemy·
I switched to the module bundler style where I register a new parser and module factory on the bundler for “ai.tsx” modules. Which use a special parser that build hooks are agents. Dependency tree and chunk graph naturally take care of context splitting management and agent orchestration as a side effect of expressing the prompt
English
3
1
17
2.2K
Mark Dalgleish
Mark Dalgleish@markdalgleish·
The biggest takeaway from the whole “Ralph loop” thing for me so far is realising that I’ve been using Markdown “plans” with the agent too much when this isn’t my natural workflow. I’ve tried switching to a Kanban board inspired flow using Markdown files and it’s so much better.
English
5
0
20
4K
Mark Dalgleish
Mark Dalgleish@markdalgleish·
@taayjuss So far I just add a task to explore an area further with my rough thoughts so far.
English
0
0
1
96
Taayjus
Taayjus@taayjuss·
@markdalgleish how do you handle the tasks that aren't clean enough for kanban yet? or do you just force everything into cards
English
1
0
0
118
Mark Dalgleish
Mark Dalgleish@markdalgleish·
@_aierie I haven’t used it, just learning from it. I wouldn’t feel comfortable letting it rip on a massive list of tasks at the moment. I want that feedback loop of being able to play around with it at each checkpoint because that’s part of the design process to me.
English
2
0
2
118
M K
M K@_aierie·
@markdalgleish What have you used Ralph for so far that you like?
English
1
0
1
112
Mark Dalgleish
Mark Dalgleish@markdalgleish·
Right now I still have a plan file, but it kinda morphs into more of a living architecture doc while iterating. The actual work I’ve got structured like this: /tasks/*/todo.md /tasks/*/in-progress.md /tasks/*/done/001-task-summary.md /tasks/*/done/002-task-summary.md
English
3
1
12
2.4K
David K 🎹
David K 🎹@DavidKPiano·
Claude: Hey, mind if I grep -ohP "useEffect\(.*?\[\K[^\]]+" **/*.tsx 2>&1|tr ',' '\n'|awk 'NF{$1=$1;a[$0]++}END{for(k in a)print a[k],k}'|sort -rn|head -20 Me: ... yeah go for it dude
English
147
675
14.1K
589.9K
Mark Dalgleish
Mark Dalgleish@markdalgleish·
Absolutely mind boggling to stop and realise: 1) I barely code anymore, just chat with an AI. 2) It’s not slop. I’m still engineering. I don’t feel threatened. Feels like pair programming. 3) I’m enjoying it more than coding by hand. Truly wild time to be living through.
English
254
236
3.6K
163.4K
Mark Dalgleish
Mark Dalgleish@markdalgleish·
Tired: Copying and pasting their docs into the prompt. Wired: Cloning their entire repo into a gitignored directory and then asking the agent about it.
English
36
8
241
29.5K
Brooks Lybrand
Brooks Lybrand@BrooksLybrand·
When working with LLMs and new libraries they might not be trained on (like new Remix stuff), just do the following: mkdir references echo "reference/" >> .gitignore cd reference git clone git@github.com:remix-run/remix.git You've got all the context you could possibly need
English
3
1
9
1.1K
MJ
MJ@mjackson·
Remember React static sites and Gatsby and Jamstack? Ha, that was a funny time.
English
25
4
268
35.9K