Skip to content

u/bearinthetown

In this archive from Apr 2024 to Dec 2026

6
posts
33
comments
0
media
323
score
3 saved before deletion

Partial function application in PHP 8.6 is such a redundant feature (unpopular opinion)

PHP 8.6 adds a feature called partial function application. Here's how it works: php $foo = str_replace(?, 'x', ?); $bar = $foo('a', 'aloha'); // xlohx I'm not a fan of this feature, as it's just a confusing syntax sugar. Consider this example: php $value1 = str_replace('a', 'x', 'aloha'); $value2 =...

1 points0 comments
Open on Reddit

Am I wrong with my aversion towards AI?

Posting in gamedev sub, because gaming is one of the contexts of AI that make a good example in my opinion. Where do my negative emotions towards AI come from? I feel like AI will be yet new tool to prioritize money over anything, really. Like the world wasn't bad enough before AI in that regard. Cr...

162 points302 comments
Open on Reddit

End of this list.

Back to top

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.