Better HN
topnewbestaskshowjobs
Log inSign up

eithed

474 karma · joined Nov 29, 2017 (8y ago) · 291 submissions

Submissions

comment 5d ago · link · parent

When I read articles like this I find myself agreeing with finitists = accounting for infinities in real scenarios isn't worth it (and should be capped). This worked for Heartstone.

comment 5d ago · link · parent

Sorry, I meant

> Don't force business to care about something that they don't (it won't end well for you) Equally Don't force yourself to care about something that you don't (it won't end well for you)

this is correct if you're the only person that cares about something

comment 5d ago · link · parent

To be fair I worked with engineers who used codebase as their own playground. You're interested in this methodology, language, pattern? Fuck anything else, fuck any standards that the team has, fuck other people that will have to cleqn after you and the outages you're causing - you just go hog wild, your friend approves PRs, nobody else understand what's going on because you decided to write something in brainfuck and then, after you leave I can see you give presentation about how brainfuck driven development is the next big thing and how your consultancy will solve every problem one might have

comment 5d ago · link · parent

Agree. The problem is that managers tend to move their responsibility onto engineers. Should I need to understand why do you want to build X that does Y? No, I should get a spec where you describe the outcomes. Each to their domain - devs to technical, product to business. Instead I learn why the sprockets are of flubber color because it resonates with women aged 10-30

comment 5d ago · link · parent

I don't know about the first one - depends on the culture and the team. In my current place: I've made the team care about DDD, documentation, static analysis, standardisation. Similarly other joiners have made me care about things I didn't. What I'm saying here - if you're alone, you're correct

comment 1w ago · link · parent

Ada is missing from that list

comment 1w ago · link · parent

> Kurtaj hacked Rockstar using an Amazon Fire Stick plugged into his hotel room television along with a Bluetooth keyboard and mouse.

I'm now wondering what is the state of cybersecurity at Rockstar

comment 1w ago · link · parent

The context is: > At my current place we have LLM apply deterministic rules where given thing cannot be checked statically.

So in this example quality of comments is checked my LLM and not statically

comment 1w ago · link · parent

Agree here. At my current place we have LLM apply deterministic rules where given thing cannot be checked statically. For example - all unit tests shouldn't access database. This can be checked statically. All comments should document why, rather than what - this cannot.

Humans tend to bring up things that matter to them + correctness, when they have time to think about it.

comment 1w ago · link · parent

We've done similar thing as the OP, I think it will be 2 months now. Our processes were pretty focused on spotting defects beforehands already: we have standardised tasks defined with ACs following given/when/then format that we can write behaviour tests for, we have automated linting, static analysis, automated tests. Then there's also round of tests: both QA (LLM/human driven) and UAT (human). Since I joined we have added architecture tests to that mix, including static as well as LLM guided that look at how code is built and organised + writing documentation for what is being built / product rules (LLM driven). Looking at the stats - the amount of merged PRs has trippled, the amount of issues is decreasing, PRs time-to-merge went down to roughly a day (I don't attribute this particular metric to usage of LLMs in review process).

What I've noticed = good sides: LLMs are better than humans in spotting edge cases and reviewing code, given they have established conventions and standards (I saw PRS that I'd approve, but LLM was pedantic in reviewing a comment or class name); they are good in finding connections, ie I've had many cases where an agent built something where there was no guidance in the ACs and the reason was that it found related tickets in Jira mentioning given thing and filled in the functionality. LLMs are "cheap" to run = one can run review process for multiple PRs at the same time and forget while they run; they code defensively requiring developer to intervene - for example: I'm working on functionality where user is assigned to review a thing. Only one user can be assigned to review given thing at a time and there are checks for this. In last 3 PRs LLM is telling me - add locks because if there are multiple people reviewing given thing at the same time then the data will be lost. Yes, if we ever change business rules in this place this can happen. Finally LLMs are semi-consistent; sure sometimes they'll do stuff for shits and giggles following some convention I've not seen anywhere in the codebase, I ask what happened, and it tells me it picked it up from some tangentially related legacy place. Most often they follow already established conventions / adhere to rules in place.

Now the bad points: many times QA catches things that would emerge during planning or if developer would question what they're building or look at their work thinking critically (I find it that people are loosing the ability to question things) - LLMs dont help with preventing this from happening. People are loosing track of domain and product rules - in the places I've worked I was never just a developer, I was always a developer/something (forever to my dismay), so during planning or review I could say, from product perspective: this doesn't make sense, we don't need to build this. This no longer happens - there's no time where I can remember the rules that govern the product; PM often becomes the bottleneck of what the rules should even be. I'm also finding that people do not develop good taste - this piece of code that LLM used? Sure, looks good, go ahead, ship it. Path of least resistance is becoming a norm. It's also easier to create bigger PRs.

Anyhow - I'm old and tired, so sometimes I'm finding the LLM pros are greater than cons

comment 2w ago · link · parent

PRs with conflicts will display the same way as without. The only difference is a button "Resolve conflicts" button in the middle of the screen that does nothing (your conflicts are unresolvable in web interface).

edit: not even that! getting conflicts is a separate API call, that you've got not indication whether is happening or not ie just had a PR, everything is fine, can be merged! go back to classic view - it's unmergable because it has conflicts.

comment 2w ago · link · parent

You can annotate the method as `@return array<array-key,string>` or even `@return list<string>` (array of strings = indexed via anything that can be used as a key in PHP vs list of strings = indexed via incrementing integers, starting from 0). I guess the OP suggestion was to use Arrayable / Iterable interfaces, which would work as well, but would require more effort (= yes, declare a class)

comment 2w ago · link · parent

Natively: no. Via tools like phpstan and psalm: yes, per OP. Link to relevant docs: https://psalm.dev/docs/annotating_code/templated_annotations... or https://phpstan.org/blog/generics-by-examples

One can declare:

  final class Door {}

  /**
   * @template T
   */
  final class Box
  {
      /** @param T $value */
      public function __construct(private mixed $value) {}

      /** @return T */
      public function get(): mixed
      {
          return $this->value;
      }
  }

  final class DoorInspector
  {
      /** @param Box<Door> $box */
      public function __construct(private Box $box) {}

      public function inspect(): void
      {
          $this->box->get()->open(); // analyser knows this is a Door
      }
  }

  new DoorInspector(new Box(new Door()));   // OK
  new DoorInspector(new Box('not a door')); // error: Box<string> given
You can even bind a template by a generic type with "of":

  final class Door {}

  /**
   * @template T
   */
  class Box
  {
      /** @param T $value */
      public function __construct(private mixed $value) {}

      /** @return T */
      public function get(): mixed
      {
          return $this->value;
      }
  }

  /** @extends Box<Door> */
  final class DoorBox extends Box {}

  /**
   * @template T
   * @template F of Box<T>
   */
  final class Shelf
  {
      /** @param F $box */
      public function __construct(private Box $box) {}

      /** @return F */
      public function box(): Box
      {
          return $this->box;
      }

      /** @return T */
      public function item(): mixed
      {
          return $this->box->get();
      }
  }

  $shelf = new Shelf(new DoorBox(new Door()));
  $shelf->box();  // DoorBox
  $shelf->item(); // Door

comment 2w ago · link · parent

It's not paranoia and would align with https://www.reddit.com/r/ClaudeCode/comments/1xr9x5y/the_ner...

I wonder as well whether would this pop up on nerfbench

comment 2w ago · link · parent

By "hard" I took you to mean intellectually hard, that simplicity needs a Kepler-style insight. My point was that in most codebases we already know what simpler looks like, we know where the pain points are, whether it's for user or developer. What's missing isn't the epiphany but someone willing to own it and push through the inertia. So for me it's less "hard to see" and more "easy not to do."

comment 2w ago · link · parent

I don't think I agree that simple is hard. Simple takes effort. Simple requires that you have agency. Simple has all the information available. Simple means that you're accountable for something. I'll be cynical here - it's sooooo much easier to say: this is how it was when I arrived here, it's not my problem, what will I get out of this, somebody told me to do it like this, let's leave as it is, there's no point in touching this. And nothing in the above is LLMs fault! Well, unless at least now you can say - something did it like that! It's not my fault, it's what LLM told me to do.

I'm hopeful that LLMs make iteration and refactoring easier. That they'll allow developers to say to product (or even to themselves) "this module that is a dumpster fire? Sure, I can let agent investigate/refactor and that work that would have taken 2w will be done in half a day, do you want to go ahead?". That they'll allow developers to investigate how to make things simpler, more understandable, more coherent, to agree on a one fucking way to do things.

Anyhow, apologies for being glum and straying away from the topic, but I also wanted to make a comment that is unlikely to be seen :) the bile comes from past personal experience and is not directed towards anyone (it's more of an acid reflux).

comment 2w ago · link · parent

What surprises me is that this is state of affairs for Google, a company with unlimited budget - to show you ads for things you expressed just a slightest interest in or have already purchased. And it's a state for a loooooong time.

Like - I just purchased some plants from Dibleys, a plant nursery in UK. I've gotten confirmation email to my gmail account. Now I'm served plant ads for that very same company. I'd expect that The Algorithm would be smart to decide "hey, here is a guy that is interested in plants, let's take a look at other people in his age group and occupation, what are they also interested in, and let's serve him ads for that. Or having failed that ads for other plant nurseries in UK". But no! It's astounding, that it's so utterly mindlessly stupid.

But you know what, actually I prefer that there's no computational effort here. Maybe this means that me being served a shitty ad for a company I like and already know will not attribute to global warming. Maybe this means that Dibleys isn't being charged for a clickthrough, but for impressions that cost a lot less. Maybe this cyclical stupidity is something that we're stuck with as a human race, because why the fuck should an ad serve some kind of purpose.

comment 2w ago · link · parent

Well - this would be an example of defensive programming and by that logic catering for this "what if" is the way to go. LLMs were correct all along!

comment 2w ago · link · parent

Agree. It should fall on to developers to decide what to do = whether tackling tech debt is viable solution (whether making decision on their own or talking to people that can make such decision) or not. If, however, you're told "here is a codebase that you're seeing for first time, fix this error" and you simply cannot make the decision, even prior to LLMs you'd put a bandaid on it. Or at least - that's the standard approach = fix now, refactor later, where later in my experience never happens (sorry for this train of thought).

I don't think this is anything new, nor LLMs are to blame here. Although - LLMs want to make you happy, or maybe they don't think about what user actually needs, just how to accomplish the goal that was stated; they do stuff without asking questions (unless you constrain them or plan first). I've actively put in a hook for my agent to not make decisions on their own and ask me when it detects it's about to make a decision.

comment 2w ago · link · parent

Types is an option. Another option would be tests (and in this case mutation testing).

My main point still stands = LLMs code defensively catering for unknowns that are not loaded into context.

comment 2w ago · link · parent

An example to what I'm talking about: I have application that takes two inputs from request. I've put in validation on request values to deny values that are greater than 100. In my code I'm adding these values. LLM can say "cater for addition of these two numbers, because they might go over MAX_INT and result in overflow". This is a situation that won't happen. LLM can recommend - add assertions. That's unnecessary.

comment 2w ago · link · parent

People complain about LLMs not respecting KISS, but fail to address why = LLMs being defensive and coding for situations that either do not happen or are unlikely to happen. That doesn't absolve you from deciding using your human brain if given change makes sense or doesn't. You can also tell LLMs to not program defensively.

Same with any other acronyms - if you don't set up guardrails on when given principle should apply you'll get code that you can only complain about.

comment 3w ago · link · parent

Thank you, that clears it up that it's indeed still Google. Oh, it's even said in the article.

comment 3w ago · link · parent

I'm confused - isn't a contractor (Tuike Finland) doing and being responsible for this work?

comment 3w ago · link · parent

Don't think that I would be able to find information in the phone book whether given person is right leaning, or left; whether they said something racist or not, etc

comment 3w ago · link · parent

The most hilarious moment for me was when my question that was 5y old was closed as a duplicate of one that was couple of months old. I provided an answer on how to work around the issue; the new question didn't have an answer, but it had more points. From what I read the original issue was still there. At that point I was rarely visiting the website either way, but the absurdity of the situation was staggering.

comment 4w ago · link · parent

I'd think about it this way - with LLMs I'm still a human with one brain, one set of hands, one keyboard, one screen.

I can delegate more quickly, but still I'm constrained to what I can respond to because I can focus on limited amount of thing at a time. It's like I was given multiple sets of hands (so your centaur parable stands), but that doesn't make me faster if I need to do multiple things at the same time - have you tried juggling, chewing gum and skipping at the same time?

comment 4w ago · link · parent

I don't know how people are handling constant context switching - ok, I can trigger 5 agents that work on different things. One comes back to me citing a decision I've made 30m ago; then another, citing a finding to something it mentioned 45m ago; then another, then another. In every one of these cases agents are unhelpful as all hell - they overcommunicate, lie, scope creep, expect you to pay attention to every single thing they mention in passing. You've created a plan? Fuck you - agent has exceeded the plan with 2 items. You ask about these two items? It's actually 8. Ok, what are these 8 items. Sorry, I was wrong, it was 10. And in the background there are 4 agents now waiting for your decision, where you have to familiarise yourself what they were doing and what were the decisions that you've made.

comment 1mo ago · link · parent

Now the gatekeeper is saying "I don't want to be a gatekeeper anymore for this one particular gate, because people were mean to me. I'll however continue being gatekeeper for these other gates that drive my business either way."

comment 1mo ago · link · parent

Heartbleed
12345
10