Posts

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

sarah, to random
@sarah@phpc.social avatar

Just sheltered in my basement from #mdtornado. First time ever in 17 years of living here.

sarah, to php
@sarah@phpc.social avatar

I have used for over twenty years. I know it’s power and I’ve seen it mature as a first class language.

Haters will hate. But PHP is one of the most powerful and versatile languages in the world.

From CLI to web and everything in between, PHP can do it. You can and should feel good about choosing PHP for your project.

sarah, to php
@sarah@phpc.social avatar

I'm offering a FREE copy of my book, Mastering Object-Oriented PHP, to all members of the #php community. It's my way of giving back. Grab your copy at https://masteringobjectorientedphp.com today.

sarah, to random
@sarah@phpc.social avatar

Sarah-Savage.com: Backups matter. https://sarah-savage.com/backups-matter/

sarah, to random
@sarah@phpc.social avatar

Getting ready to network the house and practicing making connections. Morning project.

sarah, to php
@sarah@phpc.social avatar

The language is incredibly powerful. It’s great for many things. But not everything.

I wouldn’t write a web server in PHP and deploy it to production.

But the fact that I could makes the language incredibly powerful.

thgs,
@thgs@phpc.social avatar

@sarah not booting everything every time can be quite performant though

sarah, to random
@sarah@phpc.social avatar

Do you include built-in functions in your namespace “use” declarations or not? Why or why not?

heiglandreas,
@heiglandreas@phpc.social avatar

@sarah is "iconv" or "mb_strpos" actually built in? 😉

It gives a nice overview over what is used.

But usually my codestyle says I should not include functions at all 😁

ramsey,
@ramsey@phpc.social avatar

@stevegrunwell @sarah There’s actually a micro-optimization reason for either importing or using \ in front of internal functions/classes, and that’s because PHP will first look in the current namespace to try to resolve the symbol. It falls back to the global namespace, if it can’t find it. If you tell it exactly where it is, PHP doesn’t have to do that work.

sarah, to random
@sarah@phpc.social avatar

New post: Backups matter. https://sarah-savage.com/backups-matter/

sarah, to random
@sarah@phpc.social avatar

The SOLID principles are backwards.

Starting with SRP produces confusion in software developers.

Starting with Dependency Inversion helps clarify why we have the L and the O and the S and the I.

All of SOLID stems from the dependency inversion principle. It's a shame that it's listed last.

The acronym should be DLOSI.

sarah, to random
@sarah@phpc.social avatar
sarah, to php
@sarah@phpc.social avatar

What is your favorite composer package in #php?

mwop,
@mwop@phpc.social avatar

@sarah psr/http-server-middleware!

paulshryock,
@paulshryock@phpc.social avatar

@sarah pest

sarah, to php
@sarah@phpc.social avatar

One of the things I've learned over the last twenty years is there's plenty of work in #php.

But something else I've learned is that you need a network to find the work.

Building that network should happen in the good times. You never know when you'll need it in the lean times. Plus, having a network means having a community to support you and to be a part of - and that's never a bad thing!

sarah, to random
@sarah@phpc.social avatar

It’s all nice, well and wonderful to say “no one is above the law” and “justice for all” at the Trump decision.

But the truth is Trump isn’t being treated anywhere close to any other defendant.

What other defendant can travel to any state they choose after conviction? And most judges will impose prison on unrepentant convicts - what do you think the chances are of that here?

It’s long past time to treat Trump like any other defendant.

sarah, to random
@sarah@phpc.social avatar

Why is it that so many people know backups are a good idea and yet they never practice with them until emergency strikes?

I think it's human nature. While we know disaster is a possibility, we also feel like disaster is never going to happen to us.

But emergencies can happen to us. So practicing and preparing for them is essential. A backup that's never tested is a prayer, not a practice.

thgs,
@thgs@phpc.social avatar

@sarah I think it's just boring to set up.

sarah, to php
@sarah@phpc.social avatar

Looking for work? Make sure you check out my latest project, PHP For Hire (https://phpforhire.com). It's a directory of PHP talent available for hire!

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