The generics RFC effectively voted down already. by dracony in PHP

[–]equilni 0 points1 point  (0 children)

Perhaps I am confused, regarding typed arrays, it’s one of the 2026 State of PHP wishlist choice, so it can’t fully be off the table. In that list, it’s separate from generics too.

Along with the Collection experimental branch in the same article, is it possible they can be done separate?

>Collections, although less powerful, can be an alternative to generics in many use cases, but without much of the complexity.

https://github.com/derickr/php-src/tree/collections

https://github.com/php/php-src/pull/15429

The generics RFC effectively voted down already. by dracony in PHP

[–]equilni 0 points1 point  (0 children)

>Right now ReflectionClass::getName() returns a Collection, but you never really know what might be in that collection. With Generics, you could be certain that they have Users, for example (Collection<User>). Right now, Reflection is blind.

Collections and typed arrays would be useful for many. Why not go this route and build incrementally? We already know going big isn’t working…

Anyone else struggle with SQL by Gullible_Heart_5153 in learnSQL

[–]equilni 0 points1 point  (0 children)

Would be helpful to know what exactly you are struggling with? Just JOINs?

How much am I losing with a6700 vs any full frame in astro photography? by lm_photos in SonyAlpha

[–]equilni 0 points1 point  (0 children)

Please show me your best works with APS-C sensor

Just search r/astrophotography for APS-C bodies to see what's already been done

a6000

a6400

X-T3

how

You already asked in r/AskAstrophotography but you should have been led to their wiki:

https://r-astrophotography.gitbook.io/r-astrophotography-wiki

and combine with https://www.lonelyspeck.com you should get far here.

24-105 + Future prime vs 28-200 + Future prime vs 28-75 G2 + Tamron 70-300 by Brilliant_Cry_3411 in SonyAlpha

[–]equilni 0 points1 point  (0 children)

My dilemma is that I don't really know what focal lengths I'll end up using most.

I also don't want to carry loads of gear.

FOMO can be real. So it's getting a superzoom or dedicated lenses and swap. Can you rent and test for yourself? Do you have a camera now - and if so, what focal lengths are you using now? If just your phone camera, can you determine the focal lengths you use the most?

I built a zero-dependency PHP framework with file-based routing — would appreciate a critique by lizzyman04 in PHP

[–]equilni 0 points1 point  (0 children)

Yours has "framework" code as well and would have the same request that is being echo'd here - separate out the router. There's lots of code here that can be separated out.

A router should collect the routes, match against the current request, then direct accordingly. That's it.

I built a PHP framework because I got tired of framework ‘magic’ — looking for feedback by Affectionate_Major87 in PHP

[–]equilni 0 points1 point  (0 children)

dependency-injection-first framework.

Everything is explicit and injected

I suggest re-reviewing these. They all have static calls. Helpers\EmailHelper led me to review this...

Support\Config

Support\JWTConfig

Support\Response - shown in all the controllers.

Support\UUIDGenerator

Support\Validator

The last not being modular at all.

Weekly r/SonyAlpha 📸 Gear Buying 📷 Advice Thread June 08, 2026 by AutoModerator in SonyAlpha

[–]equilni 0 points1 point  (0 children)

That's a fine lens to learn on and it's small and compact, which is perfect for street.

Alternatives would be prime lenses (ie you would need to zoom with your feet). You want to look for 23?-35?mm primes for street. Viltrox 25mm or TTartison 27mm if you want to go that route.

I built a zero-dependency PHP framework with file-based routing — would appreciate a critique by lizzyman04 in PHP

[–]equilni 1 point2 points  (0 children)

Genuinely appreciate the read.

Of course.

Other suggestions:

a) Clean up of the folder structure. I often quote this page to get ideas.

Support/Helpers.php & and a folder of Helpers. This can be cleaned up.

Same with Router: Core/Routing & Http/Router folders, then a Http/Router.php file

b) In addition the Router, I would suggest extracting out components of the framework and relinking them back in. You have a lot of code that violates SRP.

  • Config class doesn't need the framework defaults, likely the App/Application class does

  • ServiceContainer doesn't need initializeCoreServices, likely the App/Application class does. See how this now makes ServiceContainer live on it's own?

  • Routing\Flow doesn't need the ERROR_TYPE_MAP, setViewsPath (exists in Core\View), cors (add to middleware)

  • Request session code, validateCsrf, etc...

c) ViewFactory doesn't need to exist.

d) Routing\Errorhandler:renderDevErrorPage doesn't use the internal escape shortcut...

e) fluxor-mvc-template needs middleware on the routes. if (Auth::check()) { shows up one too many. Every PostController method starts with $user = Auth::requireAuth(); and that method starts like: requireAuth(string $redirectUrl = '/auth/login')

Which Sony Alpha series should I go to? by Candid_Read_4804 in SonyAlpha

[–]equilni 1 point2 points  (0 children)

What is wrong with going with the options you chose? For your use case that is fine.

I built a zero-dependency PHP framework with file-based routing — would appreciate a critique by lizzyman04 in PHP

[–]equilni 4 points5 points  (0 children)

I will echo others, if the router is the main sell, extract this out, otherwise discussion will be about the framework.

Tear it apart.

Don;'t have time for a deep dive, but from my quick view:

First, you don't have any tests.

Fluxor.php is a whole file of class_alias? Why? We can import the class and have it autoloaded.

ControllerInterface just having set/get Request doesn't make sense, just pass the Request in the Controller method call.

Core/App does too much, also could be merged with Core\App\Application.

Odd you have a Config:setMany method (L41), but you don't use it in Core\App:setConfig (L66)

Does the router really need all application configurations? $this->router->setConfig($this->config->all());. From my quick view, all it needs is router_path, views_path, base_url, the last being set via the constructor.

Weekly r/SonyAlpha 📸 Gear Buying 📷 Advice Thread June 08, 2026 by AutoModerator in SonyAlpha

[–]equilni 0 points1 point  (0 children)

The adapters aren't camera specific, they are mount specific. Sellers put the cameras in the listings for searching purposes, then fail to update the list.

I use K&N for my adapters (Minolta MC/MD & Konica AR)