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

I love this idea, it’s always surprisingly difficult to find what routes are available, what cabins they have, how much tickets are etc.


I dealt with this exact problem in my last hiring phase too and used this technique to screen them out earlier: https://thomshutt.com/2026/03/24/interviewing-in-the-age-of-...


Tangential, but it’s so refreshing these days to read a post with an actual writing style. Reminded me a bit of _why.


All the MoQ articles have such a good writing style, I read them every time a new one gets posted on here. It makes me kind of sad I have no excuse to use it for anything...


i also appreciate the doodle-recreations-of memes on every post


This was one of my predictions in https://thomshutt.com/2026/03/17/predictions/ - fiddling around with creating new languages and lower level tooling becomes less rewarding versus figuring out what we can get agents to build on top of the existing ones


Interestingly something similar (but chemically different) happened in Australia recently too: https://www.standard.co.uk/news/world/bondi-beach-tar-balls-...


These turned out to be fatbergs (i.e. sewerage that hadn't broken down due to people flushing so-called 'flushable' wipes down the toilet)



Something similar launched recently: https://bustolondon.in/


Actual context is described in this Reuters article "Fact check: The World Economic Forum does not have a stated goal to have people own nothing by 2030": https://www.reuters.com/article/uk-factcheck-wef-idUSKBN2AP2...


Really interesting (assuming I'm correct about how this comment was created) how distinct ChatGPT's writing style already is to me


On the levelled logging point, I stopped using levels after switching from Java -> Go and haven't looked back: https://thomshutt.github.io/opinionated-logging-in-go.html


Good point! Log levels are pretty useless most of the time.

I would add that there can be value in having 2 log levels: verbose and non-verbose. It is helpful if you can selectively switch on verbose logging by user or by API endpoint.

In one application which I maintain, when verbose logging is switched on for a particular user, TCP/UDP socket objects are automatically wrapped and packet captures are logged, only for packets sent/received while servicing that particular user's requests. This has been a lifesaver when debugging things like weird, transient authentication problems stemming from upstream providers.


> It is helpful if you can selectively switch on verbose logging by user or by API endpoint.

We currently use two log levels:

- When 'debug = true', debug logs are printed immediately (like a DEBUG log level)

- When 'debug = false', debug logs go into a buffer: if the request-handler succeeds, its debug buffer gets discarded. If it catches an exception, the buffer gets printed.

This avoids the main problem of log levels, which is having to guess up-front which level we might want (and inevitably get it wrong, and have to try re-creating a problem with more verbose logging!)


Nice! It sounds like you would do well to capture the debug output if a request handler takes an unusually long time to return (not just if an uncaught exception occurs).


This completely overlooks many things such as logs used as metrics or even just using them to reason about the state of your application. What if your application isn't throwing errors but some thing is still broke Or you're shipping bad data?

IMO, the entire point of logs is to be able to ask questions of and reason about the current state of your application. If you're only logging errors that you can't recover from you may as well just throw and exception and restart.


> If you're only logging errors that you can't recover from you may as well just throw and exception and restart.

Unironically tho this is a good decision if you design for it from the beginning crash-only software style. Most of what I log is INFO and WARN level because unexpected combinations of business-level state are where the real subtle nasty bugs are. Nil reference or whatever can just crash who cares.


It absolutely matters. Reading messages from a message queue? Have users submitting some subtly bad edge case you've never organically seen? Just a crash-restart isn't saving you, and worse because you have a discipline of who cares, you probably have inadequate code helpers to diagnose the scenario that triggered your flaw. If you're business is dead simple, whatever but there's too much code in the world to be pumped into such a limited way of thinking.


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

Search: