HackerTrans
TopNewTrendsCommentsPastAskShowJobs

r4victor

no profile record

Submissions

I switched from VSCode to Zed

tenthousandmeters.com
453 points·by r4victor·hace 6 meses·422 comments

comments

r4victor
·hace 5 meses·discuss
That's exactly the problem. Thanks for describing! What I find is people using linters to ensure all struct fields are initialized explicitly (e.g. https://github.com/GaijinEntertainment/go-exhaustruct), which is uhh...
r4victor
·hace 5 meses·discuss
It seems modern statically-typed and even dynamically-typed languages all adopted this idea, except Go, where they decided zero values represent valid states always (or mostly).

A sincere question to Go programmers – what's your take on "Parse, Don't Validate"?
r4victor
·hace 6 meses·discuss
Super cool! It recommended me Scalene Python profiler (https://github.com/plasma-umass/scalene), which looks very interesting – I haven't heard about it before..
r4victor
·hace 6 meses·discuss
Working now? It's a 1cpu/1gb VPS – maybe too small to handle hn hugs.

The website repo is public, so it's also available on github: https://github.com/r4victor/tenthousandmeters/blob/master/we...
r4victor
·hace 6 meses·discuss
Yes! I also got bitten by format_on_save when working with legacy projects with inconsistent formatting. Given another discussion I saw, the maintainers didn't think about this use case much, i.e. "why don't you want to have a proper formatting?". It can be turned off now, so not sure if they'll change the default.
r4victor
·hace 6 meses·discuss
Hmm, I found Zed to consume battery less than VScode on my M1 MBP. It's ~100 vs ~200 12h power consumption on average according to Activity Monitor. Do you compare it to VSCode?
r4victor
·hace 6 meses·discuss
That's a good idea. I considered VSCodium but the issue is that I used VSCode's proprietary extensions such as Pylance. So it would require to switch to OSS replacements at which point I decided why wouldn't give Zed a try – it has a better feeling by not being an Electron app.

I think VSCodium is a good option if you need extensions not available in Zed.
r4victor
·hace 6 meses·discuss
Hi, I'm the author of the post. I hope it resonates with many who got tired of VSCode and found Zed.

I'd also like to add there are many small features I miss in Zed that I don't go over in the post, e.g. autodetect and respect file's indentation (https://github.com/zed-industries/zed/issues/4681). But I see Zed is actively shipping the missing features, so I believe they'll improve significantly over the next year.
r4victor
·hace 6 meses·discuss
Is it on linux?
r4victor
·hace 9 meses·discuss
So far I prefer the Hashimoto's solution to this that "AI tooling must be disclosed for contributions": https://news.ycombinator.com/item?id=44976568

I use it like this: If a PR is LLM-generated, you as a maintainer either merge it if it's good or close if it's not. If it's human-written, you may spend some time reviewing the code and iterating on the PR as you used to.

Saves your time without discarding LLM PRs completely.