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

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.

stevegrunwell, to random
@stevegrunwell@phpc.social avatar

Regular reminder: if your site or app doesn’t work in Firefox, it’s broken.

I lived through the “this site requires and/or is best in IE” era, and I’d rather burn it all down than return to that.

Pro-tip: Firefox does most things better anyway. Give it a spin and enjoy a less-tracked web.

stevegrunwell,
@stevegrunwell@phpc.social avatar
stevegrunwell,
@stevegrunwell@phpc.social avatar

@dustinrue @chris :shudder:

stevegrunwell,
@stevegrunwell@phpc.social avatar

@GrumpyGirdle @grrrr_shark I bet that site loads fast as fuck, though. Hemming and hawing over a couple hundred kilobytes while today’s sites are cramming five or six megs down the pipe.

Oh, ActiveX? Never mind…

stevegrunwell,
@stevegrunwell@phpc.social avatar

@hexxy_the_grouch @dustinrue @chris the only way to win is not to play 🙃

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

#PHP #Testing #PHPUnit

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 😉

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.

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

@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,
@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!

davidbisset, to space
@davidbisset@phpc.social avatar

Cool. beta site runs on :

https://beta.nasa.gov/

stevegrunwell,
@stevegrunwell@phpc.social avatar

@chris @curtismchale @davidbisset unless he looped back, he left LW/Nexcess/Stellar a couple months before I did

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”

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.

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.

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.

grmpyprogrammer, to random
@grmpyprogrammer@phpc.social avatar

Whenever you feel like a task is impossible, remember that I have been married for 25 years as of today.

stevegrunwell,
@stevegrunwell@phpc.social avatar
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.

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!

exchgr, to random
@exchgr@mastodon.world avatar

it sucks that mocha is the name of a testing framework and not a mock framework

stevegrunwell,
@stevegrunwell@phpc.social avatar

@exchgr there’s an opportunity to create Mock-iato?

stevegrunwell, to wordpress
@stevegrunwell@phpc.social avatar

I’m glad to hear that #WordPress 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.

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

It’s after midnight, and I’m just laying here thinking about all of my friends in the LGBTQ+ community.🏳️‍🌈

Truly some lovely people, and my life is better for having them in it. I try to return that kindness whenever I can, because we’re all just people trying to make it through this world.

I almost feel bad for the bigots sometimes, because they’re missing out on getting to know some of the coolest, most interesting people.

Instead, they choose to live their shitty lives being shitty shits. 🙄

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