Eric Clemmons 🍊☁️

16.4K posts

Eric Clemmons 🍊☁️ banner
Eric Clemmons 🍊☁️

Eric Clemmons 🍊☁️

@ericclemmons

Principal Software Engineer at Cloudflare. Fixer. I wrote that JavaScript Fatigue post 10 years ago. Sorry bout that.

Austin, TX Katılım Nisan 2008
2K Takip Edilen5.5K Takipçiler
Eric Clemmons 🍊☁️
Eric Clemmons 🍊☁️@ericclemmons·
Been entirely hand-coding during my break and GitButler still fits my workflow best. Basically, make a bunch of changes until work is actually done (“Split ThisAgent into Y&Z”, “Add Router”, “Enable OAuth”)
Kenton Varda@KentonVarda

I try to split my PRs into a series of small commits but a lot of times it ends up like... commit 1: Move some code commit 2: Rename something commit 3: Minor refactor commit 4: Minor refactor commit 5: Draw the rest of the fucking owl

English
0
0
0
257
Eric Clemmons 🍊☁️
Eric Clemmons 🍊☁️@ericclemmons·
@youyuxi @branchseer In that case, it seems like the best usage is `vp run build` and `vp run checks` etc. just-in-case `vp build` has a dependency to work. TBH, I was kinda hoping that `vp check|test|build` was going to be ubiquitous across projects. But I'll need to have `run.*` equivalents...
Eric Clemmons 🍊☁️ tweet media
English
0
0
0
30
Evan You
Evan You@youyuxi·
One thing that I know some people will complain about, and @theo did in fact complained about, is how ‘vp dev’ is a built-in command rather than running the dev script like a package manager does. Fundamentally this is because vp is not a package manager or just a task runner - it’s a full toolchain. A package manager doesn’t have a built-in dev feature, but vp does. Running scripts is something vp can do, but you make the intention explicit via ‘vp run’ instead of expecting implicit fallback. I actually very much dislike the implicit script fallback behavior because it forces you to remember what built-in commands the runner has - for example, you can’t run a script named ‘deploy’ with ’pnpm deploy’ because… turns out pnpm has a built-in deploy command. With the large command surface vp has, implicit fallback is only going to be confusing than helpful.
Boshen@boshen_c

Taking notes of what Theo says. We'll continue to improve Vite+ 🫡 youtube.com/watch?v=JKbVk6…

English
26
6
567
100.3K
Brayden
Brayden@BraydenWilmoth·
Vector search emails with natural language! Crazy how much of the Cloudflare stack this service is using. DO, D1, KV, Workers, Vectorize, Turnstile, R2, Workers AI, Gateway + more. By far the best though... Dynamic Worker Loaders. AI generates code and runs it in a secure sandbox INSIDE my existing Worker without needing an actual VM sandbox. More public access next week – small test group is stress testing it right now :)
Brayden tweet media
English
18
7
201
12.2K
Eric Clemmons 🍊☁️
Eric Clemmons 🍊☁️@ericclemmons·
@branchseer @youyuxi So I can or cannot have a dependsOn for “vp build”? That’s what I was trying to accomplish – make the top-level commands remove the need for custom bespoke tasks the team needs to remember. Always vp dev. Always vp check. Always vp build.
English
1
0
0
26
branchseer
branchseer@branchseer·
@youyuxi @ericclemmons Your screenshots show that `dependsOn` works in `vp run dev` but not in `vp dev`. That's by design: the `run` config doesn't affect any non-run Vite+ subcommands. The principle is that each top-level field in `vite.config.ts` only affects the vite+ subcommand with the same name.
English
1
0
0
63
Evan You
Evan You@youyuxi·
@ericclemmons @theo It is supported! You just need to configure it under run.tasks in vite config
English
1
0
1
237
Eric Clemmons 🍊☁️
Eric Clemmons 🍊☁️@ericclemmons·
@youyuxi @theo I think that's fair for scripts (`vp run deploy`), but should `dependsOn` at least be supported? For `check`, `dev`, & `build`, the need an updated `wrangler types`. I have that in `prepare` now as a side-effect of `vp install`, but this looks so clean: #github-actions" target="_blank" rel="nofollow noopener">viteplus.dev/guide/ci#githu
English
1
0
0
260
Evan You
Evan You@youyuxi·
@theo Also the mindset is “vp xxx” is always a built-in command and will never run your scripts. Only “vp run xxx” runs your scripts. No room for confusion IMO, just a habit problem.
English
5
1
118
13.1K
Daniel Dunderfelt
Daniel Dunderfelt@ddunderfelt·
Finally got a pretty good pfp result with Nano Banana 2. For reference, the second pic is one I took in 2021, and I've never liked how serious I look in it. Also, I have glasses now and have lost weight, so the AI edit is what I actually look like now. I should also take a completely new pfp but this will do for now.
Daniel Dunderfelt tweet mediaDaniel Dunderfelt tweet media
English
4
0
2
268
Eric Clemmons 🍊☁️
Eric Clemmons 🍊☁️@ericclemmons·
@vinicius_dacal Maybe? I think test cases capture behavior and “what” it does. The “why” (or “why not”) decision is more like “would prefer this API, but cannot use it due to Y constraints, so we have to compensate by comparing X to Z”
English
0
0
1
18
Eric Clemmons 🍊☁️
Eric Clemmons 🍊☁️@ericclemmons·
I’m at the point that I want to add: // why this next line uses this function // instead of something else to most of my code I don’t see the sense of burying that valuable of information behind a PR review. (Every PR review should become a code comment?)
English
2
0
3
489
Jeremy Kreutzbender
Jeremy Kreutzbender@J_Kreutzbender·
I hate everything about this. Desperate for Effect chaining here
Jeremy Kreutzbender tweet media
English
4
1
11
3K
Eric Clemmons 🍊☁️ retweetledi
Josh Pigford
Josh Pigford@Shpigford·
i don't know if it's possible for an article to have *too much* good information in it, but i'd like to present this one as a candidate.
Thariq@trq212

x.com/i/article/2033…

English
17
49
1.7K
674.4K
Eric Clemmons 🍊☁️
Eric Clemmons 🍊☁️@ericclemmons·
@wesbos The only thing that I had to get used to is “vp run dev” to make sure the task dependencies ran. “pnpm dev” is muscle memory
English
0
0
3
1.8K
Wes Bos
Wes Bos@wesbos·
Vite+ is SO GOOD I’ve moved 3 sites over and scaffolded out a few more. So sold
English
43
18
1K
139.2K
zeb
zeb@zebassembly·
Today is my birthday and now I'm halfway through my 20s, wtf
English
26
0
119
5.7K
Eric Clemmons 🍊☁️
Eric Clemmons 🍊☁️@ericclemmons·
Having syntax errors with Agents' @⁠callable & Vite 8? oxc doesn't support TC39 decorators yet, so you need to follow these instructions: #javascript-transforms-by-oxc" target="_blank" rel="nofollow noopener">main.vite.dev/guide/migratio… Not sure if #syntaxerror-invalid-or-unexpected-token" target="_blank" rel="nofollow noopener">developers.cloudflare.com/agents/api-ref… should include this yet?
Eric Clemmons 🍊☁️ tweet media
English
1
0
5
1.8K