Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>still only marginally faster.

Is it? A couple days ago I had it build tooling for a one-off task I need to run, it wrote ~800 lines of Python to accomplish this, in <30m. I found it was too slow, so I got it to convert it to run multiple tasks in parallel in another prompt. Would have taken a couple days for me to build from hand, given the number of interruptions I have in the average day. This isn't a one-off, it's happening all the time.

 help



Did that need to be 800 lines of Python, though, is the question

NEED to be? No.

But, to be robust you want a signal handler with clean shutdown, a circuit breaker, argument processing (100 lines right there), logging, reporting progress to our dashboard (it's going to run 10-15 days), checking errors and exceptions, retrying on temp fail, documentation... It adds up.

So it could be shorter, but it's not like there is anything superfluous in it.




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

Search: