Hacker Newsnew | past | comments | ask | show | jobs | submit | cheapsteak's commentslogin

would PostToolUse be a better place to do it than pre-commit? (trigger on `"^(Edit|Write|MultiEdit)$"`)

for lint issues that are autofixable, the tool use can trigger formatting on that file and fix it right away

for type issues (ts, pyright), you can return something like `{\"hookSpecificOutput\":{\"additionalContext\":$escaped},\"continue\":true}"` to let the edit complete but let Claude know that there are errors to fix next turn


thanks i've not used PostToolUse but will checkout. i'm excited about Rust's autofixable issues promise. curious how effective they are, and how deep of a issue can they solve

I wonder if the start of the causal chain (or at least the intended audience) might be book publishers rather than people in Amazon


wrt checking the generated spec files in

does that not get a bit cluttered after a while? do you ever clean up old ones?


def cleanup inactive specs over time.

it's only useful if it'll be used!


I'm predicting that Test-Driven Development may be having a comeback

English behaviour descriptions -> generated tests

Use both behaviour descriptions and feedback from test results to iterate on app development


Telling people to stop being losers is a not winning strategy; might feel good, wouldn't do good.


Someone has to tell them.


The open source and free platform be able to handle the patchwork of regulations that are now in place that differ between city to city


Curious what you've found to be reliable / would recommend?


How's the Pixel 6 holding up?

I've had battery discharge problems with the Pixel 4 and 5 just a few months out of warranty. Hope that's been fixed in more recent generations?


I have a 6 Pro that I got in November. AccuBattery says my health is at 99%. I use my phone for probably an hour a day and charge every other day.

You don't let your phones sit on their chargers while at 100% battery, do you? I'm fairly sure that's what killed the batteries of my last two phones. My Pixel 3 was working fine until I started working from home and the phone rarely left the charger. After 3 months, the battery started swelling.


> You don't let your phones sit on their chargers while at 100% battery, do you?

Yup guilty, I'm a bit neurotic about keeping things charged in case I need it later, didn't realize this affected battery life

TIL, thank you


I've one since January. Battery is on 97% according to AccuBattery.


Wrote this a while ago and continues to feel relevant as I'm reviewing pull requests from newer teammates and staring at force-pushed commit trying to figure out what changed between now and when I last reviewed it

(Title in submission is the title I originally intended and submitted to freeCodeCamp. Their editor changed it to what it is now ("How to" and "keep your code reviewers happy"). I then edited it back to what I originally submitted. The editor then overrode my edit and reverted it back )


To save people a click

Perpetual enterprise local license dropped from 15k EUR to 3.5k USD

Lowest tier pay-per-input cloud credits dropped from 20 EUR for 8k megapixels to 10 USD for 14k megapixels


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: