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

Crell, to random
@Crell@phpc.social avatar

Moving as a metaphor for software management.

https://www.garfieldtech.com/blog/moving-metaphor

Crell, to random
@Crell@phpc.social avatar
mwop, to random
@mwop@phpc.social avatar

Good god, it's been 12 years. Can we stop spreading the fractal of bad design article already?

Do better, @php_discussions - not everything needs to be shared again and again, particularly articles like this that haven't aged well.

https://mastodon.social/

Crell,
@Crell@phpc.social avatar

@mwop @php_discussions I think that's a reddit repost bot.

Crell, to random
@Crell@phpc.social avatar

That the officers weren't fired immediately means the entire leadership of the department needs to be fired immediately. And then charges filed.

When people say the police are institutionally corrupt, this is what they're talking about.

https://www.sbsun.com/2024/05/23/fontana-pays-nearly-900000-for-psychological-torture-inflicted-by-police-to-get-false-confession/

Crell, (edited ) to php
@Crell@phpc.social avatar

Hey . When you use union and intersection types, do you include spaces?

(RT for reach, etc. This is survey data for @phpfig. If you know of any official policies by major projects already, please note/link in the replies.)

Crell,
@Crell@phpc.social avatar

@ramsey @phpfig Have a link for Symfony?

Crell,
@Crell@phpc.social avatar

@edorian @phpfig So it depends on how complex it is?

Foo|Bar|Baz is OK, but not if mixing and &?

Crell,
@Crell@phpc.social avatar

@NanoSector @phpfig We should unify those, definitely. I can't recall seeing multi type catches in the wild very often, though.

mikestreety, (edited ) to php
@mikestreety@hachyderm.io avatar

I'm looking for a solution to branch-based previews for a / stack. We have nearly 60 sites we want to set this up for (a lot of services I find either charge $1000s or don't even support that many).

I don't want anything fancy, I don't need to edit in the browser. I would like to push a branch to gitlab and have the option to spin up an environment to preview.

I have considered doing it myself, but I was hoping to not have to support my own infrastructure.

Crell,
@Crell@phpc.social avatar

@mikestreety @simonrjones Platform.sh is what I was going to recommend. You described exactly what it does. :-)

Symfony Cloud is Platform.sh, tweaked and rebranded for Symfony. Same basic work flow.

Crell, to random
@Crell@phpc.social avatar

This does not give me confidence in this kitchen...

Hooper, to random
@Hooper@phpc.social avatar

Should I have multiple Mastodon accounts on various instances of interest? Or should I consolidate into one account.....????

Crell,
@Crell@phpc.social avatar

@Hooper I have just one account. I am always me.

ntha, to php
@ntha@mastodon.social avatar

Re: Primitive Obsession (https://acairns.co.uk/posts/primitive-obsession)

I like the idea, but has anybody performance tested this? What happens when you're dealing with thousands of rows of data that pass every item along as class instants vs primitive types?

Crell,
@Crell@phpc.social avatar

@ntha Unless you're dealing with very large datasets, the cost of the SQL query to load it will be vastly more than the cost of making an object.

ramsey, to php
@ramsey@phpc.social avatar

Opinions/thoughts/advice on #PHP monorepos with #Composer. Is anyone working within this problem space? What tools do you use?

I know #Symfony is a #monorepo. Are the tools they use specific to them, or can others use them?

Crell,
@Crell@phpc.social avatar

@ramsey Symfony uses a custom Go tool to do their repo split, IIRC. That's the only way I'd even consider a monorepo.

Crell, to ai
@Crell@phpc.social avatar

Google's #AI search is about as accurate as usual, I see...

#AiIsGoingGreat

Crell, to random
@Crell@phpc.social avatar

"It's a DTO so it shouldn't have methods, just data" is an excellent way to end up with procedural spaghetti with a class keyword floating around.

It certainly won't get you a good codebase, that's for sure.

Crell,
@Crell@phpc.social avatar

@SenseException Not basic anemic. (No one can agree on what those mean, either.) But hard core full on thou shalt not have methods or behavior on dumb carrier objects.

I just spent an entire day teaching a junior how not doing that leads to vastly simpler code.

Crell, to random
@Crell@phpc.social avatar

When people complain about being just an over-engineered mess of indirection, they don't mean OOP. Just the Java ecosystem.

Crell,
@Crell@phpc.social avatar

@maxalmonte14 Yeah, what that sounds like is bring pushed back on is over engineered OOP.

Crell,
@Crell@phpc.social avatar

@calinpristavu @maxalmonte14 OOP that's build in a functional way rather than a procedural way.

Crell, to random
@Crell@phpc.social avatar

The one and only thing I like about Macs is that they're not Windows. Other than that, I despise these things. The UI has always been awful.

Crell,
@Crell@phpc.social avatar

@ntha I just want to be able to switch between windows without bringing the entire app to the foreground. Like, switch between my browser and IDE without all my browser windows coming up and covering the IDE. Like, this is basics. Mac has been wrong about this for 40 fucking years. And they refuse to admit it.

Crell, to random
@Crell@phpc.social avatar

"Imagine if Congress was elected by proportional representation"

Structural problems require structural fixes.

https://democracysos.substack.com/p/imagine-if-congress-was-elected-by

#RankedChoiceVoting

bart, to random
@bart@moth.social avatar

Seriously pissed about this. Offering $10,000 in seed funding for a Deviant Art alternative built on ActivityPub. Q&A below or email your pitch to info@moth.social. https://slate.com/technology/2024/05/deviantart-what-happened-ai-decline-lawsuit-stability.html

Crell,
@Crell@phpc.social avatar

@derickr @MisterMoo @bart What's the meaningful difference? (Really, I've almost never used either.)

Crell,
@Crell@phpc.social avatar

@zeruch @derickr @MisterMoo @bart That doesn't tell me much...

Crell, to random
@Crell@phpc.social avatar

I hate mocking libraries...

Crell,
@Crell@phpc.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • thenastyranch
  • rosin
  • everett
  • cisconetworking
  • love
  • Youngstown
  • slotface
  • Durango
  • ngwrru68w68
  • kavyap
  • tacticalgear
  • DreamBathrooms
  • mdbf
  • megavids
  • magazineikmin
  • cubers
  • modclub
  • InstantRegret
  • ethstaker
  • osvaldo12
  • GTA5RPClips
  • khanakhh
  • anitta
  • provamag3
  • normalnudes
  • tester
  • JUstTest
  • All magazines