Skip to content

u/exakat

In this archive from Mar 2015 to Dec 2026

43
posts
131
comments
25
media
1k
score
5 saved before deletion

The unreachable method

So, it seems that it is possible to paint oneself in a corner and write an unreachable method. How would you call A::foo() in this code below? Come on, #PHP, there must be something here. #phptip #phptrick <?ph

0 points14 comments
Open on Reddit

The PHP riddle

The sphynx ask you a #PHP riddle: make this code running. This compiles, so you can only add more code to make it work. I asked 5 AI, 2 succeeded, 3 failed. #phptip #phptrick <?php class X { private array $code = []; function foo() { return (string) $this<-code; } } var_dump((new X)->foo());

0 points19 comments
Open on Reddit

How many parameters is too many ?

We ran some counts on many PHP projects, and got some hard figures on the number of parameters used in methods and functions. Lots of interesting insights. Here are the results : https://www.exakat.io/how-many-parameters-is-too-many/

4 points58 comments
Open on Reddit

Exakat 1.2.1 is out!

Exakat is the smart static analysis tool for PHP. It hunts for bugs, helps keep code up to date with PHP version, document your code and measure the rest. Review for version 1.2.1 Download Github [Complete list of Rules](http://exakat.readthedocs.io/en/latest/Re

3 points0 comments
Open on Reddit

What are the largest PHP applications ?

I'm searching for the largest PHP applications, whose code is publicly available. I already have a top 10, (spoiler alert) which has moodle at the lowest ranks. Moodle has 2,1 PHP MLOC : do you know larger applications ? drupal, vtiger, bitrix or matacms are all much smaller than that, for example....

8 points45 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.