Remix.run Logo
thunky 12 hours ago

I always wanted this for Python but now that machines write code instead of humans I feel like languages like Python will not be needed as much anymore. They're made for humans, not machines. If a machine is going to do the dirty work I want it to produce something lean, fast, and strictly verified.

bigstrat2003 5 hours ago | parent | next [-]

> now that machines write code instead of humans

That is not remotely the case for anyone who produces quality work.

zahlman 4 hours ago | parent | prev | next [-]

We got daguerrotypes, and then photographic film, and then digital cameras, along with image editing software, and now AI image generation systems; yet there are still people who go out and apply oil paints to a canvas with natural hair brushes. I'm not willing to lose that.

JodieBenitez 12 hours ago | parent | prev | next [-]

Pretty much my thoughts the other day... now that Codex does the writing, maybe I can finally switch to Go for the web backend stuff without being annoyed by some of its archaisms and gain significant execution performance, while still having a relatively easy to read language.

kccqzy 12 hours ago | parent | next [-]

You ask a machine to write your code and you still care about being easy to read?

In my experience the people who care the most about code readability tend to be the people most opinionated on having the right abstractions, which are historically not available in Go.

thunky 11 hours ago | parent [-]

I don't think people mind reading Go as much as they mind writing it.

kccqzy 11 hours ago | parent [-]

Nah all the `if err != nil` is just so much noise they obscures the real logic. And for the longest time it didn’t have generics to write map/filter/reduce on slices, forcing people to use loops where the intention is less clear.

maleldil 8 hours ago | parent [-]

Ideally, the errors shouldn't be returned as-is, but wrapped with context instead. If that context doesn't matter for you, you can have your editor wrap the if instead, which helps a lot.

brianwawok 10 hours ago | parent | prev [-]

I have shifted as much as I can python to go when I don’t code. It’s just faster and the compiler catches more errors, win win,

ddorian43 4 hours ago | parent | prev [-]

AI, write me that sqlalchemy clone in <lang>