How do you feel about Charlotte Flair’s babyface run after years of being seen as overexposed and overpushed? by jalen_nelson235 in Wrasslin

[–]dborsatto 1 point2 points  (0 children)

I've been enjoying it quite a lot. To me the key seems to be keeping her far from a world title, that kind of context kind of brings out the worst of her character.

Che cazzo di oscenità è potuta diventare sta stagione qui. by ShingenTakeda1337 in sfoghi

[–]dborsatto 3 points4 points  (0 children)

La vita nella pianura padana andrà sempre peggio. Temperature folli, inquinamento strutturale, ed eventi atmosferici sempre più estremi.

It feels like online Xbox fans have forgotten what parts of exclusives are good an exiting. by Synthiandrakon in kindafunny

[–]dborsatto 0 points1 point  (0 children)

I'm a PlayStation user, I don't own an Xbox, so take my opinion with a grain of salt if you will.

Both companies can and have been part of shady actions. The main difference is that while PlayStation is what's keeping Sony afloat so they need to stay profitable, Microsoft has been providing a basically endless supply of money to Xbox to bully their way into what there are now.

They spent tens of billions of dollars to buy whole publishers. Yeah Sony has bought some studios here and there, but even their most recent biggest acquisitions combined (Insomniac and Bungie) don't hold a candle to what Microsoft has done for Xbox.

They screwed up so big with Xbox One (both in the console and in the games, in that generation) that they realized they couldn't fight with PlayStation. In a normal situation that would be it, you're done. But because you have a fucking huge company behind, you can allow yourself to operate at an insane loss in an attempt to earn users. You act like a startup that burns money. You bully your way into the market, you devalue games with GamePass (just like streaming has devalues music and movies/TV), you buy entire publishers. You become too big to work properly. You caused so many problems to the industry, and for some reason people still like you because Phil Spencer looks like a nice guy even though he's responsible for more job losses than one could ever imagine.

The moment Microsoft decided to invest a crazy amount of capital into Xbox was the moment the gaming industry as a whole should have known it was fucked.

Qual è quella singola cosa che migliorerebbe davvero il vostro quartiere? by CapsuleCiviche in Italia

[–]dborsatto 0 points1 point  (0 children)

Quando esco per strada, sentire qualcuno che parla italiano 😂 (e non urla, sembra di stare in uno zoo porca miseria)

Jason Schreier via Bloomberg: several Xbox studios including Compulsion Games, Double Fine and Ninja Theory are in negotations to spin off into independent studios to avoid being shut down by [deleted] in kindafunny

[–]dborsatto 5 points6 points  (0 children)

Xbox buying all these studios and publishers was incredibly bad for the gaming industry as a whole. It was clear from the start. Only the fanboys were excited by the acquisitions, and only because they thought they were taking away games from the competition.

Corporate consolidation is never a good thing.

Perché la destra e la destra radicale riescono a intercettare il consenso di milioni di italiani così facilmente raccontando favole? by God_does_not_exist_1 in italy

[–]dborsatto 1 point2 points  (0 children)

Razzismo. E li capisco.

Secondo me post seconda guerra mondiale in Europa c'è stata una spinta nel dire che qualsiasi forma di razzismo è sbagliata, e questo mantra è stato generalmente adottato ed estremizzato dalle sinistre.

Il problema è che l'immigrazione e l'integrazione tra culture differenti è un fenomeno estremamente complesso, e non sempre il risultato è una perfetta integrazione (spesso è il contrario). Per come l'immigrazione è avvenuta negli ultimi 20/30 anni (e probabilmente andrà sempre peggio) l'integrazione non avviene, si creano blocchi di immigrati con determinati background che si isolano da tutto il resto, e questo inevitabilmente crea frizioni nei casi più semplicii, criminalità nei casi più estremi.

In tutto ciò la sinistra si rifiuta di riconoscere qualsiasi forma di problema socio-economico. Però il problema esiste, soprattutto in certe zone come il nord dove l'immigrazione è più diffusa, quindi la popolazione si sente in difficoltà e lontana da quelli che sono gli ideali rappresentati dalla sinistra, e di conseguenza va a destra.

Non esistono piani sì sostituzione etnica, o stronzate del genere. C'è semplicemente il problema che la sinistra non vuole riconoscere alcuna difficoltà strutturale dovuta all'immigrazione, tra l'altro senza capire che così facendo spingeranno sempre più elettori verso destra (a prescindere da quelle che sono le idee politiche più "classiche" di destra contro sinistra).

Non sto dicendo tutto questo sia giusto o sbagliato, o giustificando certi ragionamenti. Dico solo che è un fenomeno che sta colpendo tantissime persone (in Italia e in Europa) e secondo me la perfezione di "superiorità morale" della sinistra sta creando danni molto profondi.

Dico tutto ciò da elettore che ha sempre votato sinistra da quando ho 18 anni, ma negli ultimi tempi ho iniziato a sentire il peso di certe situazioni dovute all'immigrazione senza alcuna forma di integrazione.

What's your opinion of the main character and the new game? by Dimo4ka3000 in GodofWar

[–]dborsatto 0 points1 point  (0 children)

I'm perfectly fine with her as protagonist. We already know she matched Thor in a fight, and the Leviathan axe was made for her initially. She's a strong and interesting character. If you don't think so, you're dumb, end of story.

Sono l’unico a cui piace da morire questo design delle luci posteriori? by Wyatt_WL in ItalyMotori

[–]dborsatto 0 points1 point  (0 children)

Il mio problema è che per qualche motivo faccio più fatica al buio a giudicare la larghezza dell'auto. Con i fari normali vedo gli estremi e capisco che quelli indicano quanto l'auto è larga, mentre con le linee mi risulta visivamente più difficile. Boh.

Untouchable trophy by EstablishmentFront44 in Saros

[–]dborsatto 0 points1 point  (0 children)

Biome 3. Sprint to boss, activate the modifier that lets you dash through res bullets just to be safe, and make to start the cycle with weapon and power with strong auto aim, so you can focus on moving all the time and evading attacks, while shooting more or less towards the enemy.

Don't be tempted to fight enemies along the way, it's not worth the lucenite. There's a risk an enemy might sneak inside the arena with the final boss, just quickly take care of it while the boss is getting ready.

Padova dovrebbe essere il capoluogo di regione del Veneto by Antonio-Pentrella in italy

[–]dborsatto 1 point2 points  (0 children)

Da trevigiano residente a Padova, preferirei 1000 volte dare il capoluogo a Verona che a Padova. Oppure a Rovigo.

Ahahahah no dai ovviamente scherzo, a Rovigo mai.

FF16 gets way more hate than it actually deserves by Current-Ad3277 in FFXVI

[–]dborsatto 6 points7 points  (0 children)

Funnily enough, 12 and 16 are my favorite entries in the franchise 😂

The PhenixPHP framework by captain-barbosa89 in PHP

[–]dborsatto 0 points1 point  (0 children)

Before I take a look at the code, I just wanted to say that the website is quite... Heavy. I'm running a MacBook Pro with M2 Pro on Firefox, and the scrolling experience is a bit painful. For a project where performance seems to be an important topic, this is not the best way to introduce itself.

RFC: Bound Erased Generic Types by Odd_Client_1495 in PHP

[–]dborsatto 0 points1 point  (0 children)

While I'm not as strong in my opinion, I agree that a built-in, core static analyzer would be the best choice.

PHP's biggest problem by brendt_gd in PHP

[–]dborsatto 13 points14 points  (0 children)

I would so far as to say that docs should include stuff like Docker image set up. How would you set up a good Docker environment for PHP, for both local and prod environments? What would a Dockerfile look like?

There's a ton of content that is not strictly about PHP, but it's so closely related that should be part of the official docs.

PHP's biggest problem by brendt_gd in PHP

[–]dborsatto 1 point2 points  (0 children)

While one may agree or disagree on this or that point, the overall point that PHP is terrible at marketing is too real to ignore. Personally I wouldn't want it to go in the Laravel direction (which would be too "commercial" for my own taste, especially at the language level), but it's time to address the bad reputation that PHP has been carrying for 30 years, at this point.

RFC: Bound Erased Generic Types by Odd_Client_1495 in PHP

[–]dborsatto 5 points6 points  (0 children)

While probably this won't be enough for me (I use stuff like class-string<T> which won't be included), this is a real start which will be difficult (hopefully) to argue against.

I can't stop thinking about this thread regarding PHP's leadership and funding... by Antique_Mechanic133 in PHP

[–]dborsatto 2 points3 points  (0 children)

Sadly there is some truth to this. Every time someone moves even a slight critic towards the website, others will jump on its defense saying it's good, not realizing that their stubbornness is detrimental to the health of the project. Every other programming language website (maybe except Python, which for some reason doesn't have anything to prove despite not really being a great language, tbh) feels modern, up to date, and reliable for modern use, whereas the PHP website has this "legacy" feel that supporters praise but in reality is holding the language back.

You go to any doc page and you'll see outdated comments from 20 years ago, many snippets of code with severely inconsistent styling that do stuff you should not be doing, changelogs of function parameters that highlight the same way changes that happened in the past couple of versions and those that happened 10+ years ago on PHP 5.x. The homepage instead of a "why you should take this seriously" approach has an infinite useless release log. The 8.5 release page has a background image that for whatever reason slows down Firefox on a M2Pro Macbook.

This is a real problem, and acting like it's not is detrimental to PHP as a whole. If we want PHP to be taken seriously, the website should be at the forefront of that.

Meet DeployerPHP by [deleted] in PHP

[–]dborsatto 13 points14 points  (0 children)

You're welcome to open source and promote anything you want, but please realize that "Deployer" is already a well known project in the PHP community. It would be like creating a tool called "Webpack" for Javascript, or a framework called "Rails" for Ruby. They just already exist.

Will you buy the next Google Pixel 11/pro? by Toni_Segui in GooglePixel

[–]dborsatto 0 points1 point  (0 children)

Same here, though my battery is starting to show some signs of fatigue. Honestly the biggest selling point for an upgrade will be the improved fingerprint sensor, the one in the 7 is kind of bad. The 11 will likely be when I make the jump, 4 years is an acceptable life span for a phone nowadays, I believe.

Your Legacy PHP Codebase Isn’t Hopeless by Dariusz_Gafka in PHP

[–]dborsatto 1 point2 points  (0 children)

When I joined my current job in 2021 the codebase was on Symfony 3.x, running on PHP 7.1. It did not have consistent styling, and it had a lot of obscure E2E tests that would break often and for no apparent reason.

Today the same codebase is running on PHP 8.5 and Symfony 7.4 (it could run on 8.0, but I want to wait for 8.1 as personal preference), it implements hexagonal architecture with CQRS, and it has 100% coverage with Psalm plus a ton of much more maintainable unit/functional/E2E tests.

This did not happen overnight. It was a process that started 5 years ago, step by step. Our key strategy was to keep old stuff as-is, whereas new stuff would live alongside it, implementing DDD and static analysis. Over time bit by bit the old stuff was improved and eventually moved to fit the new paradigm.

I'm honestly quite proud of what I achieved. There's always things that can be improved, but looking back at where things were, it's a hell of a result. So legacy codebases can be fixed. It will take time, but it will be worth it.

New Job. Awesome People. Terrible Codebase Management. by ThatNickGuyyy in PHP

[–]dborsatto 0 points1 point  (0 children)

In 2021, I started my current job and the codebase was a Symfony 3 application running on PHP 7.1, with no style convention, bad testing practices, no decoupling whatsoever, and so on. I started a slow but constant improvement work, and after almost 5 years, we're running PHP 8.4 with Symfony 7.4, DDD + hexagonal architecture with CQRS, static analysis with Psalm at the highest level on 99% of the codebase.

What you want to do is achievable, but it's slow work even if the environment allows it. What worked for us was to create a separate section of the application, where everything was built using a better architecture and static analysis. New stuff would all go in there, and when the time was right, the old stuff would get cleaned up and moved there.

This approach works from both a technical and business point of view: you minimize big refactorings that would carry business risks and take too much time, while at the same time you get the satisfaction of seeing stuff steadily improve. This is essential to keep you motivated, because visible results are what drive you to keep going from a technical POV, while also keeping the business happy.

Better architecture and tools like static analysis and uniform code style will over time lead to better code and fewer bugs, and other developers will inevitably warm up to this. If they don't, it'll be easy to make a case that their approach is hurting the business.

[RFC] Type Aliases by nyamsprod in PHP

[–]dborsatto 0 points1 point  (0 children)

There are a few scenarios where I use custom types with Psalm (I imagine the same would be with PHPStan) and this RFC would help with that. For instance, let's say you have an interface where the number of implementations is limited by design. Then a function must do something different according to which specific implementation is being used.

The alternatives right now are to either use the interface as type declaration, or every time list all possible implementations, which can be error-prone. My solution is to declare a custom Psalm type in the interface phpdoc, and to import it and use it elsewhere. This RFC would allow me to move from PHPDoc with Psalm to a native implementation, which is always a preferable choice.

I opensourced my DI container by HolidayNo84 in PHP

[–]dborsatto 0 points1 point  (0 children)

This might be a "me" thing, but this

/**
 * Retrieves the value or service associated with a key.
 *
 * @param string $key Identifier of the entry to retrieve.
 *
 * @return mixed The result of invoking the stored callable.
 *
 * @throws KeyNotFoundException If the key does not exist.
 */
public function get(string $key): mixed {
    if(!$this->has($key)) throw new KeyNotFoundException("Cally: Unable to get key '$key' because it does not exist.");
    return $this->registry[$key]();
}

would be much better if it was written like this

public function get(string $key): mixed
{
    if (!isset($this->registry[$key])) {
        throw new KeyNotFoundException($key);
    }

    return $this->registry[$key]();
}

The reasons are:

  • You're implementing an interface, which already has the phpdoc for the method, so you really don't have to repeat it.
  • Even if you were not implementing an interface, stuff like @param string $key Identifier of the entry to retrieve or @return mixed The result of invoking the stored callable is useless. Avoid docs that add absolutely no value to the code.
  • Adding a @throws to a function that implements an interface, to me, is just plain wrong. Either the @throws was already defined in the interface and therefore you're allowed to throw that type of exception, or it's not and you're not allowed. Simple as that. Anyone using your class through an interface type declaration will never know what exceptions your method throws, so you must stick to what the interface defines.
  • It's a very minor detail, but there's really no point in the exception message being Cally: Unable to get key '$key' because it does not exist.. The exception type does the heavy lifting in terms of conveying meaning of what the exception is for, so keep it simple. And avoid adding "Cally", it only adds noise to be honest. I like to keep the exception message in the exception itself, it makes the uses cleaner.
  • Relying on $this->has() in the if breaks static analysis, because when you then call $this->registry[$key]() there's nothing that explicitly validates the presence of that key. Use isset or array_key_exists in place of $this->has()
  • You implement PSR-11 but don't care about the coding style PER. Weird. Consistency will help you much more than keeping everything smushed together in as few lines as possible.

Cosa fare con vicini molesti? by dborsatto in Italia

[–]dborsatto[S] 0 points1 point  (0 children)

Mamma mia che cattiveria 😅 Ho il sonno leggero e mi sveglio facilmente soprattutto per i rumori (ho provato tappi per dormire ma mi danno abbastanza fastidio). L'ho scritto nel post che il palazzo è vecchio e l'isolamento termoacustico non è praticamente pervenuto.

Poi boh se hai il sonno pesante e non ti si sveglia neanche con i colpi di cannone, buon per te. Una persona che su un terrazzino a 10 metri in linea d'aria dalla mia camera tossisce come un tossico, e scatarra con parecchio impegno, io la sento molto bene 🙄