this post was submitted on 21 Nov 2024
47 points (100.0% liked)

PHP

544 readers
85 users here now

Welcome to /c/php! This is a community for PHP developers and enthusiasts to share and discuss anything related to PHP. From the latest updates and tutorials, to your burning questions and amazing personal projects, we welcome all contributions.

Let's foster an environment of respect, learning, and mutual growth. Whether you're an experienced PHP developer, a beginner, or just interested in learning more about PHP, we're glad to have you here!

Let's code, learn, and grow together!

founded 1 year ago
MODERATORS
 

Ever wanted to provide your arguments to a function as a comment?

https://gist.github.com/RikudouSage/18defbf1746322a289ae78b2980d0115

#php #cursed #wtf #programming @php

top 9 comments
sorted by: hot top controversial new old
[–] TomasEkeli@programming.dev 5 points 7 hours ago

no. never wanted that.

[–] CubbyTustard@reddthat.com 1 points 4 hours ago
[–] BatmanAoD@programming.dev 19 points 11 hours ago

the function reads the comment added after the function is called using a backtrace and uses them as arguments

How marvelously creative. What an abomination.

[–] dan@upvote.au 12 points 14 hours ago

What a terrible day to have eyes

[–] shnizmuffin@lemmy.inbutts.lol 15 points 22 hours ago

No, my eyes! Forever unclean!

[–] HowManyNimons@lemmy.world 10 points 21 hours ago

Do you really want an answer for that?

[–] python@programming.dev 2 points 19 hours ago (1 children)

huh, that does look kinda clean though

[–] chrastecky@phpc.social 4 points 19 hours ago

@python I mean, it's already an abomination, I can at least write a clean code.

[–] michael@mstdn.thms.uk 2 points 21 hours ago