Readit News logoReadit News
erhaetherth commented on A ChatGPT mistake cost us $10k   asim.bearblog.dev/how-a-s... · Posted by u/asim-shrestha
dalemhurley · 2 years ago
Why would you show them a stack trace? This should be logged.
erhaetherth · 2 years ago
That's what I said. Parent said

> There's value in having your backtrace surfaced to end users

erhaetherth commented on Show HN: I built a backend so simple that it fits in a YAML file   manifest.build... · Posted by u/brunaxLorax
kayodelycaon · 2 years ago
I’ve got at least that many. There are a lot of flat file formats I know as well as various databases. You can even do what I did in the first program I ever wrote and use php code as a storage format. But obviously you should use Postgres.
erhaetherth · 2 years ago
> You can even do what I did in the first program I ever wrote and use php code as a storage format.

__halt_compiler() is fantastic for this (mixing code + data). I've done it a few times.

erhaetherth commented on Re-Evaluating GPT-4's Bar Exam Performance   link.springer.com/article... · Posted by u/rogerkeays
munchler · 2 years ago
> On any topic that I understand well, LLM output is garbage: it requires more energy to fix it than to solve the original problem to begin with.

That's probably true, which is why human most knowledge workers aren't going away any time soon.

That said, I have better luck with a different approach: I use LLM's to learn things that I don't already understand well. This forces me to actively understand and validate the output, rather than consume it passively. With an LLM, I can easily ask questions, drill down, and try different ideas, like I'm working with a tutor. I find this to be much more effective than traditional learning techniques alone (e.g. textbooks, videos, blog posts, etc.).

erhaetherth · 2 years ago
Might be better to think of the LLM as the student, and you're an imposter tutor. You're trying to assess the kid's knowledge without knowing the material yourself, but the kid is likely to lie when he doesn't know something to try to impress you, hoping that you don't know your stuff either. So you just have to keep probing him with more questions to suss out if he's at least consistent.
erhaetherth commented on L(O*62).ONG: Make your URL longer   loooooooooooooooooooooooo... · Posted by u/lnyan
sparky_z · 2 years ago
To anybody who's still confused: start your url string with "http://".
erhaetherth · 2 years ago
https:// please.
erhaetherth commented on Ask HN: What was your most humbling learning moment?    · Posted by u/spcebar
JohnMakin · 2 years ago
I learned this lesson when working on very fast paced projects with way fewer developer resources than needed. to ship a feature on time, shortcuts in quality have to be made, but you learn to make the shortcuts in a way that are easier to go back and clean up later.

I became very fond of #TODO ‘s.

erhaetherth · 2 years ago
My manager gave me gruff the other day for adding a TODO that I had no intention of ever doing. TODOs are like a get out of jail free card. Don't want to do something the reviewer is likely going to call out? Just add a TODO.
erhaetherth commented on Ask HN: What was your most humbling learning moment?    · Posted by u/spcebar
spencerchubb · 2 years ago
I agree with this analysis. Another important factor is: How likely will this code actually be used and drive business value?

If very likely, then you should invest in making the code high-quality. If unlikely, then you should half-ass the code strategically

erhaetherth · 2 years ago
I've declared quality bankruptcy. Decisions are now driven by user needs. Did I half-ass that feature? Yes. Is anyone actually using it despite crying it's essential? No. Then it's not getting cleaned up. Are they not using it because it's shoddy? I guess we'll never know.
erhaetherth commented on Ask HN: What was your most humbling learning moment?    · Posted by u/spcebar
stavros · 2 years ago
This is a false dichotomy. On one end, you have "overarchitects everything so much that the code is soon unmaintainable" and on the other end you have "architects the code so little that the code is soon unmaintainable".

Always write the simplest thing you can, but no simpler. Finding that line is where all the art is.

erhaetherth · 2 years ago
> Always write the simplest thing you can, but no simpler.

I don't think so. Time and time again the client will insist on stuff like "the customer only needs a single email address/phone number" but you're going to pay for that one later if you do the simple thing and add an "email" column.

Same for addresses.

And a whole bunch of other stuff...you need to normalize the heck out of your DB early on, even if you don't need it now. The code you can mostly make a mess of, just choose a good tech stack.

erhaetherth commented on Ask HN: What was your most humbling learning moment?    · Posted by u/spcebar
just-tom · 2 years ago
Actually I call myself a developer. I'm not that good of a programmer, but quite resourceful as a developer.
erhaetherth · 2 years ago
I've come to understand the difference between programmer and software engineer, but what's the difference between (software) developer and programmer?
erhaetherth commented on The big lie about sleep   businessinsider.com/sleep... · Posted by u/xriddle
HumblyTossed · 2 years ago
I really think the major credit card companies missed a tremendous opportunity by not figuring out micropayments. They have the infrastructure to be the ones to figure this out, but they didn't.
erhaetherth · 2 years ago
Just drop the flat fee. Stripe is 2.9% + 30c. If they did 3% and no flat fee, then on $1 you'd get 97 cents instead of less than 70. I assume the CC companies are charging a flat fee too...unless that's just Stripe's own thing.
erhaetherth commented on Space secrets leak disclosure   huggingface.co/blog/space... · Posted by u/markyg
afro88 · 2 years ago
> Over the past few days, we have made other significant improvements to the security of the Spaces infrastructure, including completely removing org tokens (resulting in increased traceability and audit capabilities), implementing key management service (KMS) for Spaces secrets, robustifying and expanding our system’s ability to identify leaked tokens and proactively invalidate them, and more generally improving our security across the board.

That's a serious amount of non-trivial work to be done in "a few days". The kind of work that should trigger more time consuming activities like security audits, pen tests and the like, before going live, right?

erhaetherth · 2 years ago
Hopefully the work was underway for awhile already, and maybe they just launched it now because the damage is already done?

u/erhaetherth

KarmaCake day305May 11, 2023View Original