Skip to content

u/CensorVictim

In this archive from Feb 2016 to Nov 2026

2
posts
321
comments
1
media
1.6k
score
2 saved before deletion

this isn't an argument, it's a question about build system capabilities because I don't know: is this trading off being sure a new version doesn't introduce an attack at the price of needing manual intervention to recover from an attack in your pinned build?

in other words, I know you can set things up to automatically build when an update is pushed upstream. can you still do that when pinning to hash?

1 points

I haven't done much with them yet, but theoretically, with property hooks and asymmetric visibility (and properties in interfaces), I won't use getters or simple one argument setters any more; they'll just be properties. conceptually they've always been properties, we just had to use methods because of the limitations of the language that no longer exist.

public methods would be used for making the object perform actions (manipulating its own properties doesn't count), and for complex setters that can't be avoided for whatever reason.

2 points

I think the pipe operator is going to turn out to be pretty polarizing.

$output = $input
        |> trim(...)
        |> (fn (string $string) => str_replace(' ', '-', $string))
        |> (fn (string $string) => str_replace(['.', '/', '…'], '', $string))
        |> strtolower(...);

versus the rudimentary

$output = trim($input);
$output = str_replace(' ', '-', $output);
$output = str_replace(['.', '/', '…'], $output);
$output = strtolower($output);

I don't know, man. I'm not sure it adds enough value to justify looking so... weird. I know people will get used to it over time, but I just dunno

3 points

maybe it partly comes down to your mindset, but it seems extremely niche to me. appropriate use cases for a method to tell the caller what it should be doing seem pretty rare.

I guess recursion might be a pretty good scenario for it.

3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.