@Crell@phpc.social avatar

Crell

@Crell@phpc.social

Anything worth doing is worth doing well.

Anything worth doing well is worth teaching others to do well.

Author of Thinking Functionally in PHP, now on LeanPub: https://leanpub.com/thinking-functionally-in-php

#tootfinder

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.

Crell, to Kotlin
@Crell@phpc.social avatar

This app is written in a language with a very strong and powerful type system, and is going out of its way to not use it. cries

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.

Crell, to php
@Crell@phpc.social avatar

I've just tagged a new release of Crell/Serde, version 1.2.

This release includes support for Unix timestamps, makes TypeFields more flexible and customizable, and fixes an issue with handling null values. Note that the latter fix has a very small BC break that only impacts a select number of custom Importers, so odds are you won't notice.

Get it while it's hot!

https://github.com/Crell/Serde

#Serde #Serialization #PHP #Programming

Crell, to random
@Crell@phpc.social avatar

When you say what a word "means", what do you mean by "mean?" It's actually not a trivial question.

https://peakd.com/language/@crell/bounded-vs-centered-sets

Crell, to StarTrek
@Crell@phpc.social avatar

🎵 It is life but not as we know it... and I feel fine... 🎼

-- Michael Spock

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.

Crell, to Russia
@Crell@phpc.social avatar

The US has already been at war with Russia for a decade, just not with bullets. Or rather, has been at war with us, and all of NATO. It's high time we recognized that for what it is.

Crell, to webdev
@Crell@phpc.social avatar

"You build an integration with the API you have, not the API you wish you had." --Programmer Rumsfeld

#api #webdev #humor

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

I've seen software built like this, too.

https://youtube.com/shorts/ptRjzMBSTW8

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

Crell, to random
@Crell@phpc.social avatar

Impeach Justice Sam Alito.

(And Thomas, while you're at it.)

https://www.youtube.com/watch?v=fuHFFkezgVs

Crell, to random
@Crell@phpc.social avatar

When all you have is a hateful hammer, everything looks like a culture war.

https://youtu.be/HQMgeasXjLs

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

When you say what a word "means", what do you mean by "mean?" It's actually not a trivial question.

https://peakd.com/language/@crell/bounded-vs-centered-sets

Crell, to random
@Crell@phpc.social avatar

I do not endorse violence. Which is why strong unions are the better option.

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 security
@Crell@phpc.social avatar
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.

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

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