Replies

This profile is from a federated server and may be incomplete. Browse more on the original instance.

ramsey, to php
@ramsey@phpc.social avatar

What’s the difference between memory usage and peak memory usage?

(As in 's memory_get_usage() and memory_get_peak_usage() functions.)

Crell,
@Crell@phpc.social avatar

@ramsey @sean That is my understanding. Though as usual, when the current memory goes down is rather unpredictable.

ramsey, to Starwars
@ramsey@phpc.social avatar

First two episodes of #TheAcolyte are a good start. I’m interested in seeing where they take it. #StarWars

Crell,
@Crell@phpc.social avatar

@brammm @ramsey Hopefully it doesn't go full grimdark the way Andor did. I really didn't enjoy that, even if it was stylistically well done.

grmpyprogrammer, to random
@grmpyprogrammer@phpc.social avatar

I wonder if I could get rid of my beard and just have a moustache without looking like a white supremecist?

Crell,
@Crell@phpc.social avatar

@grmpyprogrammer I tried just a mustache in grad school.

My camera at the time refused to take pictures of it. I never figured out why, but I took it as a sign that I should not do that.

timbray, to random
@timbray@cosocial.ca avatar

Xi PT, rhymes with GPT: “China has introduced 'Chat Xi PT,' a new AI chatbot trained on President Xi Jinping's political philosophy, as the country seeks to balance AI development with strict content control and compliance with socialist values.”

https://www.perplexity.ai/page/Chinas-Chat-Xi-QyjXwHVZTMS_4wB8PsZb_g

Crell,
@Crell@phpc.social avatar

@timbray Satire is dead. And stop giving Trump ideas.

supergarv, (edited ) to php German
@supergarv@phpc.social avatar

Property #Getter methods (in #PHP, and frameworks like #TYPO3 #Drupal #Symfony)...

(Boost for reach, trying to get a feel for this)

Crell,
@Crell@phpc.social avatar

@supergarv They should be idempotent, but may trigger caching and such.

(This will get more interesting in 8.4 with hooks... :-) )

Crell, to random
@Crell@phpc.social avatar

Inheritance has is uses and advantages!

... But oh boy does it add a lot of gross complications to the language.

Crell,
@Crell@phpc.social avatar

@ntha Traits are a surgical tool. It's very easy to cut yourself with them badly. (See also, Laravel.)

Crell,
@Crell@phpc.social avatar

@blackwolf12333 @ntha

https://www.garfieldtech.com/blog/beyond-abstract

I also think the way I use them in Serde is reasonable, mainly because there's no external dependencies in the traits:

https://github.com/Crell/Serde/tree/master/src/Formatter

carrideen, to random
@carrideen@c18.masto.host avatar

I know Althusser (caveat), but his insight that there is nothing outside of ideology (which for him is actions that support power, not beliefs) is undervalued. I'm so tired of obviously fascist patriarchal oppressors telling us they're "critical thinkers not ideologues" when they obviously do everything to uphold power as it is. You can't step outside of ideology without stepping into another ideological system. Better to know what system you are promoting rather than "unwittingly" back evil.

Crell,
@Crell@phpc.social avatar

@carrideen @MisuseCase In theory, the whole point of a representative democracy with frequent elections is to allow change to happen at a steady pace, rather than getting stuck in the mud until something breaks badly and people die. It's to avoid bloody revolution as much as possible.

It... hasn't quite worked out as intended.

Crell, to random
@Crell@phpc.social avatar

If you're looking for subversive literature, try the Banned Book of the Week:

https://dp.la/news/introducing-the-banned-book-of-the-week

Crell,
@Crell@phpc.social avatar

@tress777 Presumably small towns ans school libraries, mostly.

Crell, to random
@Crell@phpc.social avatar

A pet peeve of mine is "reinventing something old with a new name and insisting the new name is the only valid name."

The latest: Anyone who calls it a "DTO" instead of "product type", you're on notice.

Crell,
@Crell@phpc.social avatar

@pierstoval You see my problem...

Crell, to random
@Crell@phpc.social avatar

Whoever decided that bad standards are better than no standards never had to use them...

Crell,
@Crell@phpc.social avatar

@deane I've been at a Kotlin-based company for a year and a half. First year I was managing their one PHP division. Now I'm transitioning into Kotlin/Spring applications.

So far, I kinda like Kotlin. I quite dislike Spring.

derickr, (edited ) to random
@derickr@phpc.social avatar

One week ago, I watched "20 Days in Mariupol", a gripping film when Russia started the full scale invasion of Ukraine.

At times, I had to pause watching it as it way too much.

The extraordinary cruelty of targeting civilian infrastructure made it even clearer to me that we're doing way too little to help them. Restricting what the Ukrainians can hit is stupid policy.

Any strike on a civilian target MUST be able to result in an appropriate response. Make the suckers pay for it.

#SlavaUkraina

Crell,
@Crell@phpc.social avatar

@saramg @derickr IIRC, Ukraine isn't allowed to hit anything in Russia with US weapons. They have to use domestic gear for it.

Whereas a munitions factory on Russian soil should absolutely be a fair target for the HIMARS we gave them, especially as Russia has made the ineffective in Ukraine through jamming.

Crell,
@Crell@phpc.social avatar

@heiglandreas @syntaxseed @rskuipers @derickr Murder in self-defense is generally considered justified.

If someone attacks you with their fists, it's reasonable to break their nose, but not snap their neck.

If someone comes at you with a knife, gloves off, slit their throat with it.

Any industrial target in Russia should be fair game right now. The Putin operatives in Congress (GOP) are a threat to everyone's national security.

saramg, to random
@saramg@fosstodon.org avatar

Star Trek TNG 3x16 The Offspring (The one where Data builds a daughter).

SHUT UP!
I'M NOT CRYING, YOU ARE!

Crell,
@Crell@phpc.social avatar

@saramg Jonathan Frakes' directoral debut. He came out swinging.

Crell, to Java
@Crell@phpc.social avatar

Oh. My. Fucking. God.

I have just learned that "#Java Bean" has two completely different and incompatible definitions.

One is a dumb, badly designed data object with getters and setters.

The other is... a service object managed by the Spring framework IoC container.

Holy hell. This is 10x worse than #Laravel "facades."

Am I wrong here? This is what I'm finding from online tutorials. Is there more nuance that is not coming through, because for now I just hate #Spring even more.

#Kotlin

Crell,
@Crell@phpc.social avatar

@deane The first kind were because the language designers didn't think about serialization, and how serialization and private properties might be a problem. They're a hack.

The second kind, I mean, services in IoC are a good thing. Just don't use the same damned name!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • Durango
  • DreamBathrooms
  • osvaldo12
  • InstantRegret
  • ngwrru68w68
  • magazineikmin
  • mdbf
  • thenastyranch
  • Youngstown
  • slotface
  • everett
  • kavyap
  • ethstaker
  • megavids
  • tester
  • GTA5RPClips
  • tacticalgear
  • modclub
  • khanakhh
  • rosin
  • cisconetworking
  • normalnudes
  • provamag3
  • Leos
  • cubers
  • anitta
  • lostlight
  • All magazines