@sarah@phpc.social avatar

sarah

@sarah@phpc.social

Member of the #php community and developer for 20 years. Speaker/mentor/teacher. Business owner. Aviation enthusiast.

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

sarah, to random
@sarah@phpc.social avatar

Writing automated tests makes writing code easier.

The marginal time it takes to write the test is faster than the time manual testing takes.

Someone who says "we don't have time to write tests" is wrong.

sarah,
@sarah@phpc.social avatar

@f_lombardo if you’re using substantial mocks you’re ending up testing the mock rather than the unit.

Write a functional test for that, which hits the database. And then write an acceptance test with Behat that runs end to end.

Unit tests have a place for testing specific logic and discrete units. But there are other forms of testing that work and are important.

sarah, to random
@sarah@phpc.social avatar

A website told me I needed a new password because my current password didn’t fit their new standards.

I figured this was an upgrade in security.

Tell 1Pass to generate a new password. Rejected. It didn’t contain the right characters.

This happened a few times.

Tried a known, old password that’s been leaked. Passed and changed to that password.

🤦‍♀️

sarah, to php
@sarah@phpc.social avatar

Job-seekers should check out PHP For Hire, a place where you can create a profile and be found by those who are looking to hire exceptional talent. It's free. https://phpforhire.com

sarah, to random
@sarah@phpc.social avatar

I’ve ordered everything I need now to wire my house, including the media center, the cabling, the testers and crimpers and more.

This weekend: wiring time.

sarah,
@sarah@phpc.social avatar

@Daddaniele I’m doing rj45 connections and wired keystone drops.

sarah, to random
@sarah@phpc.social avatar

Figuring out what your customers want is easy.

But figuring out what they need is harder.

A customer will say "I need a pen" but what they really mean is "I need a written document." The value is not in selling the pen (a commodity) but in producing the document.

Produce the document and you've solved their problem. Give them a pen and you've merely made the problem obvious.

sarah, to php
@sarah@phpc.social avatar

Here are my top 5 favorite Composer packages in (in no particular order):

  1. mezzio/*
  2. psr/*
  3. monolog/monolog
  4. league/flysystem
  5. symfony/console

There are many others I love but I find myself using these on most if not all projects.

sarah, to random
@sarah@phpc.social avatar

Just sheltered in my basement from . 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.

preinheimer, to random
@preinheimer@phpc.social avatar

The Brits aren’t okay.

sarah,
@sarah@phpc.social avatar

@preinheimer is…that just mayo?

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

sarah, to random
@sarah@phpc.social avatar

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

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 ?

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 .

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.

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!

sarah, to random
@sarah@phpc.social avatar

No one is above the law. No one.

sarah,
@sarah@phpc.social avatar

@afilina no, accountability.

Justice happens after he’s sentenced and punished.

Accountability started when twelve people stood up in judgement.

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