474 karma · joined Nov 29, 2017 (8y ago) · 291 submissions
comment 5d ago · link · parent
comment 5d ago · link · parent
comment 5d ago · link · parent
comment 1w ago · link · parent
Humans tend to bring up things that matter to them + correctness, when they have time to think about it.
comment 1w ago · link · parent
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
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
comment 2w ago · link · parent
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(); // Doorcomment 2w ago · link · parent
I wonder as well whether would this pop up on nerfbench
comment 2w ago · link · parent
comment 2w ago · link · parent
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
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
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
comment 2w ago · link · parent
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
comment 4w ago · link · parent
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