@stevegrunwell@phpc.social avatar

stevegrunwell

@stevegrunwell@phpc.social

Software developer, open-source contributor, and speaker. Amateur stompbox builder. Cishet, but love & support my LGBTQ+ homies.

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

grmpyprogrammer, to php
@grmpyprogrammer@phpc.social avatar

What are the weirdest things you did with ?

Convinced people using the mostly loosely-typed scripting language to start caring about testing their code. No ragrets

stevegrunwell,
@stevegrunwell@phpc.social avatar

@grmpyprogrammer really? Not even one letter?

Seriously though, thank you.

Crell, to php
@Crell@phpc.social avatar

I have only recently learned of the "before" attribute in @phpunit. It seems appealing. What I don't get is... why would I ever use setUp() when I can instead use a before method? It seems like the easier, more portable solution in ever case except when I actively want to bypass a parent class's setUp().

(Same for beforeClass.)

stevegrunwell,
@stevegrunwell@phpc.social avatar

@Crell @phpunit another advantage that hasn’t been mentioned so far is the ability to use traits without conflicts.

Have a few test classes where, for example, the DB must be very fresh and seeded? Maybe a beforeClass to explicitly drop everything and re-migrate, then a before to truncate and re-seed before each test case.

These can be especially useful if you’ve spent too much of your career working in an ecosystem with a huge market share but shitty PHP hygiene 😉

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

Hey devs. I'm curious. When using a global class like SplFileInfo, Exception, Attribute, etc, do you say \Exception inline in the code, or do you use it at the top of the file and then use it as Exception inline?

stevegrunwell,
@stevegrunwell@phpc.social avatar

@Crell A friend proposed the convention of “use” for stuff in user land (e.g. “use Ramsey\Uuid;”) and explicit leading slashes for things built into the language (“throw new \RuntimeException(/* … */);”)

If forced to pick one or the other, “use” FTW.

Crell, to random
@Crell@phpc.social avatar

If you give me a popup saying "do X to make life easier when you get to the stadium", then clicking the popup should take me to the place to do X.

This isn't hard, Ticketmaster. Except for you, apparently.

Seriously, the number of companies that fail basic usability is mind boggling.

stevegrunwell,
@stevegrunwell@phpc.social avatar

@Crell At first, I was like “yeah, definitely!”

> This isn’t hard, Ticketmaster.

Yeah, that would explain it. Asking Ticketmaster to create a good (or even passable) user experience would be like asking Atlassian to do…well, the same thing: it’s not going to happen.

I tried multiple times to unsubscribe from their newsletters, to no avail. Whenever I clean up my spam folder, I inevitably find at least one promotional email in there. A pox on the entertainment industry and the web.

stevegrunwell, to AWS
@stevegrunwell@phpc.social avatar

“Yeah, we use

kboyd, to random
@kboyd@phpc.social avatar

Hmm, not only is humidity higher, but it feels like gravity is stronger too.

I wonder how Hoth's gravity compares to Earth's...

Luke on the ice planet Hoth

stevegrunwell,
@stevegrunwell@phpc.social avatar

@kboyd I believe the gravity is canonically about double, making 2000lbs a ton-ton.

grmpyprogrammer, to random
@grmpyprogrammer@phpc.social avatar

Here at Grumpy Learning, we don’t just mine pixels. Our horticultural division is growing

image/jpeg
image/jpeg
image/jpeg

stevegrunwell,
@stevegrunwell@phpc.social avatar

@grmpyprogrammer @saramg plus draining the water below the level of the returns, then sealing the plumbing.

As a bonus, rain + snow help fill the pool over the winter!

stevegrunwell,
@stevegrunwell@phpc.social avatar

@saramg @grmpyprogrammer if you can help it, never own a pool. Instead, become friends with pool owners, and use their pools instead.

That is unless you like dealing with bleach, cleaning out leaves/frogs/rodents, backwash hoses, and replacing pump seals 😅

Chris, do you use TFP’s Pool Math app?

stevegrunwell, to wordpress
@stevegrunwell@phpc.social avatar

I’m glad to hear that is finally dropping PHP 5.x support in the upcoming release. Years later than it should have happened, but better late than never.

If you hadn’t upgraded because your host didn’t offer 7.x+, that’s a negligent, garbage host. Run.

If you didn’t upgrade because you “maintain” the server yourself, you’re asleep at the wheel.

If you were limited because a plugin you rely upon is PHP 5.x only, chances are you have even bigger problems that should be addressed NOW.

awoodsnet, to php
@awoodsnet@phpc.social avatar

i wonder how often people are honest about copy/pasting code from StackOverflow and reference the specific question in their PhpDoc comment e.g.

/**

*/

stevegrunwell,
@stevegrunwell@phpc.social avatar

@awoodsnet @Crell the short URLs for Stack Overflow and the @link@phpc.social docblock annotations are regulars in my coding practices.

stevegrunwell, to random
@stevegrunwell@phpc.social avatar
ian, to random
@ian@phpc.social avatar

Watch for people unmuting in Zoom because if someone is wanting clarification badly enough to hop off mute that's significant. And watch for typing indicators/chat. And look at the camera rather than the screen when presenting. - Tori Brenneison

stevegrunwell,
@stevegrunwell@phpc.social avatar

@kboyd @ian I have googly eyes on my webcam, but my eyes still drift to the screen.

ephbaum, to random

Finish this Toot:

People who cavalierly use git pull --rebase without actually understanding the risk of rewriting commit history are probably the same sort of people that...

stevegrunwell,
@stevegrunwell@phpc.social avatar

@ephbaum add --skip-ci to every commit message “because it’s faster”

stevegrunwell, to random
@stevegrunwell@phpc.social avatar

Hey all, I finally decided to drop my old account (@stevegrunwell) for one with all of my PHP friends.

A bit about me: Staff Software Engineer, FOSS contributor, and conference speaker. I've been remote since '14 and have no intention of going back.

A couple years ago, I also started building effects pedals for guitar/bass.

In 2021, I moved back to my college town with my family. I'll always carry a torch for Columbus, Ohio.

More about me @ https://stevegrunwell.com

stevegrunwell,
@stevegrunwell@phpc.social avatar

Alternate :

Hi, I’m @stevegrunwell. You might remember me from other social media handles, including @stevegrunwell and @stevegrunwell.

I’m here to talk to you today about enshitification and late-stage capitalism: if some rich, white asshole isn’t making a fortune, does it really count as social media?

The answer might surprise you!

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