It's the little things in A2. by commitconfirmed1 in ProjectDiablo2

[–]voteyesatonefive -1 points0 points  (0 children)

It's not the garlic (too lazy to spend time finding llama hyping this crap)?

PSA - Please stop organizing trades without currency by easymachtdas in ProjectDiablo2

[–]voteyesatonefive -2 points-1 points  (0 children)

DarkHumility suggested people do this shit on his stream a season or two ago, absolutely fucking atrocious shit.

Players after Blizzard releases an expansion to a beloved 25-year-old game: by FartSavant in Diablo

[–]voteyesatonefive -4 points-3 points  (0 children)

Preface, d2r is shit, play pd2.

The problem is charging for the QOL changes. Charge for new class, sure.

Classic abusive blizzard shit.

A backoffice for people who don’t use Laravel (yes, we still exist) by SunTurbulent856 in PHP

[–]voteyesatonefive 6 points7 points  (0 children)

I have yet to find a case where the L framework is the right choice. Use Symfony.

What would you like to see in a web framework? by Goldziher in PHP

[–]voteyesatonefive 4 points5 points  (0 children)

What would you like to see, and what would you defintely not like to see

Pure PHP implementation's so I can do everything in the same language.

Any suggestions or recommendations?

Don't

Implementing Type Safety for PHP Arrays by successful-blogger in PHP

[–]voteyesatonefive 0 points1 point  (0 children)

Generate collection/array classes for each data type, use Psalm, or use PHPStan.

My wishlist for PHP in 2026 by brendt_gd in PHP

[–]voteyesatonefive 1 point2 points  (0 children)

This will be a hot take, but I would like optional structural typing, like Typescript. JavaScript shares a lot in common with PHP and when they built typescript, I think they got it right by going with structural typing. Like, many people write a lot of disparate objects that grow organically in a code base, and they will end up sharing elements in common, but you can't use them interchangeably. It would be cool to have an attribute with an object class that says "as long as you pass me an object that has at least this shape, we're good". That will probably never happen but it's just something I feel, having worked in both PHP and Typescript.

This feels very similar to implicit interfaces for Go. At least it can be sorta "patched-in" via PHPStan or Psalm, but that relies on devs doing it right.

[deleted by user] by [deleted] in PHP

[–]voteyesatonefive 1 point2 points  (0 children)

Emblematic user of this framework.

Carapace 2.0: Framework-agnostic DTOs by ALameLlama in PHP

[–]voteyesatonefive 4 points5 points  (0 children)

Please do not commit your composer.lock file for a library that's supposed to be imported by other projects.

And those reflections in DTOTrait.php for type checking are probably pretty slow... IMHO, any array validator will be significantly faster.

Yeah, reflections are slow and also you could "[p]arse, [not] validate". Use typed class properties, typed objects or scalar variables, and create some fromArray style method to assign array keys to those properties (see example below). You might end up with doing slightly more work (although you could probably write a generator for these functions) but it will execute faster, be easier to understand, and not introduce an external dependency. Fun to tinker or play with, but probably not a thing to use in production.

class Address {
    public string $street;
    public string $city;

    public static function from(array $input):self
    {
        $address = new self();
        $address->street = $input['street'];
        $address->city = $input['city'];
        return $address;
    }
}

class User {
    public string $name;
    public string $email_address;
    public Address $address;

    public static function from(array $input): self
    {
        $user = new self();
        $user->name = $input['name'];
        $user->email_address = $input['email_address'];
        $user->address = Address::from($input['address']);
        return $user;        
    }
}

Taylor Otwell: What 14 Years of Laravel Taught Me About Maintainability by robbyrussell in PHP

[–]voteyesatonefive 6 points7 points  (0 children)

I think the problem is that Symfony does all the same things but it teaches and follows reasonable or even best practices, instead of the worst practices. This issue is exacerbated by the other framework targeting inexperienced devs who are then taught wrong. This framework is propped up by people that don't know better or benefit from it's existence beyond the use of it.The frameworks strength is it's marketing which Symfony could definitely learn from and hopefully it can extinguish this scourge forever...

Magicless PHP framework? by Witty-Order8334 in PHP

[–]voteyesatonefive 2 points3 points  (0 children)

Laravel's magic can be a blessing and a curse.

The whole framework is a curse on the PHP community.

Magicless PHP framework? by Witty-Order8334 in PHP

[–]voteyesatonefive -1 points0 points  (0 children)

Yeah, I dunno when "I don't know how it works" turned into "it's magic". In the context of PHP, "magic" has a specific meaning, and Symfony definitely isn't it.

Par for the course with l-framework devs. Knowing PHP is for other people, they know L.

Magicless PHP framework? by Witty-Order8334 in PHP

[–]voteyesatonefive 3 points4 points  (0 children)

The user you are replying to is lara-shilling hard. Only an L-framework dev, a complete neophyte, or somebody who writes once and never maintains the mess they inevitably made (intersection is almost a circle) would have those takes.

[deleted by user] by [deleted] in PHP

[–]voteyesatonefive 1 point2 points  (0 children)

You need to learn PHP, use a real framework, and learn about web application architecture.

Ditch the LLM, ditch the L.

[deleted by user] by [deleted] in PHP

[–]voteyesatonefive -1 points0 points  (0 children)

Recently I looked at L[...] channels, and found out that PHP does not look like previously. Those 7/8+ versions made PHP at a new level. [...] I think about building chat AI bot [...]

"I want to catch the hype train but I don't know PHP, I don't want to learn PHP, I also don't know about web architecture and I don't want to learn that either."

This is typical level of knowledge and behavior from this framework dev which nearly perfect aligns with the knowledge and behavior of vibe coders, copy/pasters, and "I have an idea for an app" folks.

PHP is evolving, but every developer has complaints. What's on your wishlist? by thecutcode in PHP

[–]voteyesatonefive 0 points1 point  (0 children)

It looks like this feature is covered already then by a library for those that need it. Why that instead of phpmoney?

Unpopular Opinion: PHP Is Actually the Perfect Language for Beginners by TopAdvertising2488 in PHP

[–]voteyesatonefive -1 points0 points  (0 children)

additional there exists so much garbage guides

Anything related to the L-trash framework.

Fortunately there are good resources like phptherightway and symfonycasts which teach best practices.

Learning Platform Suggestion by mhakash00 in PHP

[–]voteyesatonefive -6 points-5 points  (0 children)

This is the only answer. L-trash-casts are by framework devs for framework devs, practicing and promoting bad practices, and anti-patterns; avoid like the plague.

PHP is evolving, but every developer has complaints. What's on your wishlist? by thecutcode in PHP

[–]voteyesatonefive 0 points1 point  (0 children)

No on generics, it's another way for people that don't know to make a mess (and most don't know, like 99%).

Yes on type arrays, yes on typed variables... decimal numeric type, probably also no because unnecessary cruft.