Better HN
topnewbestaskshowjobs
Log inSign up

physicles

1,822 karma · joined Feb 3, 2019 (7y ago) · 645 submissions

Submissions

comment 1y ago · link · parent

Didn’t we do that in the lead up to the 2008 financial crisis? Remember NINJA loans?

comment 1y ago · link · parent

I used it for about six weeks in the spring, at which point I tried cursor and found out that it was far better for my use case (backend Go): better and faster autocomplete that can work across files, less buggy UI, and it actually follows your rules.

I’m not bothered by this news — it’d be pretty shortsighted to assume that any of these disposable AI assistants will continue to exist forever.

comment 1y ago · link · parent

You’re right, and good on you for paying attention to the human/business context behind the code.

comment 1y ago · link · parent

This is what I don’t understand either.

/user/123/orders

How is this fundamentally different than requesting /user/123 and assuming there’s a link called “orders” in the response body?

comment 1y ago · link · parent

This is true, but isn’t this quite far away from the normal understanding of API, which is an interface consumed by a program? Isn’t this the P in Application Programming Interface? If it’s a human at the helm, it’s called a User Interface.

comment 1y ago · link · parent

It's about agent-based developer tooling. Since there's so much experimentation going on and no clear winner yet (and there probably won't be for a while), I'm wondering how folks have been able to collaborate on their tooling.

157.

Ask HN: How should a team collaborate on their AI agent tooling?

2 points · by physicles · 1y ago · 3 comments

comment 1y ago · link · parent

Seems plausible. If anyone else is curious about the history here, I found [1]:

> The original computer terminals and microcomputers for which WordStar was developed, many running the CP/M operating system, did not have function keys or cursor control keys (arrow keys, Page Up/Page Down). WordStar used sequences of alphabetic keys combined with the "Control" key, which on keyboards of the time was conveniently next to the letter A in the position now usually occupied by the Caps Lock key. For touch typists, in addition, reaching the function and cursor keys generally requires them to take their fingers off the "home keys" with consequent loss of typing rhythm.

[1]: https://www.wikiwand.com/en/articles/Wordstar

comment 1y ago · link · parent

Wow, in 7 years of daily Linux use, I somehow never thought of doing this. Thank you.

~/.bashrc:

stty intr ^x

~/.inputrc (at the end):

"\C-v": "" # Unbind Ctrl-V

~/.config/terminator/config (in case anyone happens to be using terminator):

[keybindings]

  copy = <Control>C

  paste = <Control>V

comment 1y ago · link · parent

If you’re writing a client, I could see this being a problem.

If you’re writing a server, I believe the rule is that any once valid input must stay valid forever, so you just never delete fields. The main benefit of DisallowUnknownFields is that it makes it easier for clients to know when they’ve sent something wrong or useless.

comment 1y ago · link · parent

1.x and 2.x are, which is why 3.x reinvents the product around standard tech (true SQL, Apache Arrow). It's hard to ask customers to bet on a database when, to name one reason, its query language has already changed twice.

comment 1y ago · link · parent

It’s far easier to pay lip service to the document while doing whatever you want. This is common with authoritarian regimes. From the PRC’s constitution:

> Citizens of the People’s Republic of China enjoy freedom of speech, of the press, of assembly, of association, of procession and of demonstration.

comment 1y ago · link · parent

I recently took a couple 100 line stored procedures that I wrote years ago, and replaced them with equivalent go code and a few inline SQL calls. We had extensive tests on those stored procedures too, or rather, tests on the go methods that called them. The tests all ran in a few seconds. The go code feels so much nicer to deal with, and I thought about why:

- Stored procedures are deployed separately from the code that calls them: one is a db migration, one is a k8s container deploy. And that binding isn’t strongly-typed, so there’s more thinking and double checking involved during deployment (and, heaven forbid, rollback).

- The SQL procedures duplicated some business logic and constants that are defined in some of our go core libraries. It felt good to remove that duplication.

- The procedures also had a few specific return codes. We needed to define some constants (like postgres itself does) that the go code could detect and translate into go errors. That’s more complexity.

- Maybe there’s a good SQL IDE out there, but I don’t have it, so I was writing these things in vscode with syntax highlighting. Plenty of errors that would get an immediate underline in go instead required 20 seconds to compile and run the test and interpret the error message.

- This lack of tooling, and the fact that I’m not great at SQL (I’m fairly good with queries, but not with stuff like variables and IF EXISTS that you only see in stored procedures), made it hard to use all the complexity-cutting techniques I’m used to applying in go and other languages. So the 100 line stored procedure stayed 100 lines, and everyone hated working on it.

Stored procedures are basically a cross-service API call, with all the complexities that entails. I won’t reach for them again unless there’s a technical problem that can’t be solved any other way. We don’t have a dedicated DBA so Conway’s Law doesn’t factor in.

comment 1y ago · link · parent

Would you mind sharing this? Seems really valuable.

comment 1y ago · link · parent

Does most visited equate to most advanced?

What does language have to do with it?

comment 1y ago · link · parent

I was struck by this too. Good error messages, fast tools, stable ecosystems, simple code without magic, straight SQL… it’s what I always want. Maybe agents will be what raises the bar for dev experience, simply because they work so quickly that every slowdown matters.

comment 1y ago · link · parent

Agreed on all points.

The only place I’ve encountered this pattern is in chromedp, the go wrapper for the chrome headless browser driver. Its API… isn’t good.

Most methods you use are package globals that take a context.Context as a first parameter. But you have to understand that this context is a _special_ one: you can’t pass any old context like context.Background(), you must pass a context you got from one of the factory methods.

If you want to specify a timeout, you use context.WithTimeout. Clever I guess, but that’s the only setting that works like that.

It’s essentially a void*.

comment 1y ago · link · parent

> Then she adds some spatial information, like "it's on the last floor of the XYZ building in front of the station" and suddenly I'm transported there in a roller-coaster instant and it all comes back to me clearly.

This works for me too. Let’s say I run into someone I met once a couple months ago. Maybe I recognized them, but I might not remember their name, and certainly don’t remember what we talked about. As soon as I can get details about where in the city the venue was, or where we were sitting in the room, then it all comes back.

I don’t have aphantasia, just a sometimes frustratingly inadequate memory.

comment 1y ago · link · parent

Did customer loyalty survive the latest round of terrible movies and TV shows? I’ve long since written off anything Star Wars, except maybe the Mandelorian (didn’t watch season 2 though) and Andor.

comment 1y ago · link · parent

One data point: I took the first few chapters of Genesis literally until age 27. I also went through college as a physics major. I’m sure I embarrassed myself in debates with my atheist lab partner.

I loved science from when I was really young, read every book in my school library’s J523/Astronomy section, including Cosmos in 3rd grade. But I also went to church every week with my family, read through the entire Bible in middle school, and believed that my faith would crumble and I’d go to hell if I ever gave up the belief that the Bible was 100% true and literal.

I also chose to keep emotional distance from non-Christian friends. They might lead me astray.

I remember an exchange with my mom (who was a teacher, mostly at Lutheran schools) during a car ride when I was maybe 6 or 7. I was excitedly talking about the big bang or something, and she said “yes, but we know from the Bible that the earth is 6,000 years old, right?” “Yes,” I answered, and in that moment I believed it. I didn’t feel conflicted: the Bible must be true, so someday I’d figure out in what sense the science was true too.

As I got older, I sustained this by basically hand-waving away the less intuitive explanations for an old earth. There are plenty of books out there for helping people do just that. Maybe the speed of life was different in the past. What can we really say with certainty about evolution? That kind of thing.

The beginning of the end was the day I learned about dendrochronology: tree rings. They’re too simple to hand-wave away. Soon after, I lost my faith.

Another huge area of cognitive dissonance: we prayed all the time, we talked about “miracles”, but I never heard any really credible evidence for one. It took some serious introspection, while still a Christian, to discern whether I actually believed in them or not.

comment 1y ago · link · parent

I was there for those changes too (I taught myself programming a couple years before we got internet), and I disagree that the internet and SO felt like cheating. No matter what resources you had, you could never get very far if you didn’t understand what your code was doing.

That’s no longer true. And that democratizes these skills, which I agree could be a great thing.

But do you agree that it’s important for kids to learn to think critically and systematically? Because it’s super hard to stay motivated to learn those things when LLMs do that for you (and you’re too young to tell when they’re doing a bad job of it).

comment 1y ago · link · parent

My hot take is if you’re writing a memo or a spec for internal consumption, using AI is an anti-pattern. The doc isn’t the important product, the act of writing the doc is, because that’s how you clarify your own thinking.

We know AIs are fine for bouncing ideas off of, but they’re not senior-level architects yet.

comment 1y ago · link · parent

I think you’ve nailed it: which fix is better depends on how bulletproof the solution needs to be. If a few people (not paying customers) call the api a few times a week and everyone’s on good WiFi or fiber, it’s probably fine. If you start hearing complaints from your users about failed requests, probably time to switch to polling.

I wonder if this is something you could get Claude to think about by adding some rules about your business context, how it should always prefer the simplest solution no matter what.

comment 1y ago · link · parent

A few:

- Current time in a few different time zones (work is scattered around the world, and log files are always in UTC, so it's handy to have those there at a glance)

- Wifi network name. Our office has multiple wifi access points with the same SSID, so the script uses the AP's MAC address to figure out which one I'm actually connected to

- Current latency to google.com via VPN (I live in China so if internet isn't working, the VPN is always the first thing to troubleshoot)

Ones that I've thought about adding but haven't gotten around to it:

- Status of our cloud monitoring (i.e. a green square if things are OK, red square if not)

comment 1y ago · link · parent

Super cool hack.

For something slightly less hacky, check out the Argos gnome shell extension. It creates a folder where any script dropped there will get executed every N seconds, and the output placed on the title bar.

It’s been life-changing.

comment 1y ago · link · parent

I’d recommend switching to Obsidian and never looking back. And unless you have additional software that requires windows, Linux is also a lower-stress compute experience these days.

I also used OneNote for the better part of a decade before switching to Linux in 2017. Joplin is ok-ish, but Obsidian is closer to OneNote with its folder-based layout.

comment 1y ago · link · parent

This sounds like an amazing project!

I have a background in physics and ~20 years as a software engineer in the tech industry. Astronomy and astrophysics are so reliant on code these days; is there anywhere I could volunteer my expertise just to be a code monkey and help teams be more productive when working on software?

comment 1y ago · link · parent

For his personal background, the history of his companies, and insight into his overall investment philosophy, the Aquired podcast did a three part series on Berkshire Hathaway back in 2021. They also interviewed Charlie Munger just before he passed away. They’re good overviews and enjoyable listens.

comment 1y ago · link · parent

People in this thread point out that filler words make communication less effective, primarily by being distracting.

comment 1y ago · link · parent

Use ECDSA if you can, since it reduces the size of the handshake on the wire (keys are smaller). Don’t bake in intermediate certs unless you have a very good reason.

No idea why the RSA key worked even though the server used RSA — maybe check into the recent cross-signing shenanigans that Let’s Encrypt had to pull to extend support for very old Android versions.

1
567
22