@iCaspar@phpc.social
@iCaspar@phpc.social avatar

iCaspar

@iCaspar@phpc.social

Software Engineer. Tech Lead. Not a guru of anything. PHP Junkie.

I play #EveOnline when I get the chance. Find me in game as Casparius.

Also: Dad things, husband things, "Renegade Baptist" things.

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

iCaspar, to random
@iCaspar@phpc.social avatar

Yesterday I added some tooling to auto-generate code coverage info about our new (2-week old) Laravel codebase. ( makes this easy.) It revealed 2 things:

The first thing goes to YAGNI is hard:

We already had lots of classes that had lots of empty, placeholder methods. Many of them for things we will never need. I deleted them. We can artisan make them again if we ever need them.

iCaspar, to random
@iCaspar@phpc.social avatar

Team practice of TDD and YAGNI is hard. Not because people are hard, but because TDD and YAGNI are hard. Especially for teams who are doing these for the first time.

It's hard not to write the code first (and forget to write the test, let alone write it first) when you've written similar code before, but never written a test for code like that.

It's hard not to add a resource class or a controller or a seeder you'll never use to the codebase (esp, when you can just artisan make:whatever).

tomcrinstam, to wordpress

Is there a function in WordPress that can hide a widget from people who aren't logged into the site?

iCaspar,
@iCaspar@phpc.social avatar

@tomcrinstam Wrap the code that displays the widget in a check for is_user_logged_in()

if (is_user_logged_in()) {
// code that displays widget
}

iCaspar,
@iCaspar@phpc.social avatar

@tomcrinstam Indeed, that's a code solution. It won't be available in the dashboard. Sorry. :(

iCaspar,
@iCaspar@phpc.social avatar

@tomcrinstam There did used to be a free plugin in the WP Plugin repository that would allow you to control widget display via the dashboard. Can't remember the name. Search "custom widget display" or something similar.

iCaspar,
@iCaspar@phpc.social avatar
iCaspar, to Laravel
@iCaspar@phpc.social avatar

I've read (somewhere on the internet) that it's possible to run #phpstan at level 9 with #laravel. But after messing around with it most of an evening, getting a clean run has eluded me. Can get a clean run up to level 7.

Most of the issues come from Auth and Profile related controllers that I'm pretty sure were generated by Breeze and have to do with not being able to get a read on User models when they're the result of calling $request->user().

(using the nunomaduro /
larastan package)

iCaspar, to eveonline
@iCaspar@phpc.social avatar

I've done the first 2 parts of a video series for #EveOnline exploration for beginners.

Part 1 - Explorer Career Missions and First Ship Fit is here:
https://youtu.be/vxLakq82Jdo

Part 2 - Skills to Train & Scanning and Hacking Basics is here:
https://youtu.be/ihwNyGxgRMk

iCaspar, to wordpress
@iCaspar@phpc.social avatar

peeps are all over this dropping support for PHP5. Welcome to 2018, friends!

iCaspar,
@iCaspar@phpc.social avatar

@dorzki @hayo
I've heard the argument about lazy hosts, but I'm not buying it. 😜 Good on you for keeping yours up to date. 👍

iCaspar, to Laravel
@iCaspar@phpc.social avatar

Who has experience with implementing a modular #Laravel project (using https://github.com/nWidart/laravel-modules or similar)?

We've identified several core concerns: Users, Locations, Customers... that might be candidates for modules.

Some 3rd party integrations, like Google Maps API, Logging/Monitoring might be Services living in the main app.

But maybe this is backwards? Maybe things that might be swapped out (Google maps vs Mapquest Maps) would be better as modules and the core concerns in the main app?

iCaspar, to eveonline
@iCaspar@phpc.social avatar

No big home-maintenance projects today. Just a haircut, getting groceries, and laundry.
If I'm lucky, I'll get some extended time to play #EveOnline and maybe even make a video.
🤞

carl, to random

Be astute. Your country needs more stutes.

iCaspar,
@iCaspar@phpc.social avatar

@carl Also, lerts.

crazypedia, to eveonline

I, for one, am looking forward to reading about how an #excel plugin was critical in the downfall of a major #EvEOnline player alliance in the coming months 😂

iCaspar,
@iCaspar@phpc.social avatar

@crazypedia I feel certain that the current commotion around the Perimeter Trade Tower is tied to this, somehow.

iCaspar, to random
@iCaspar@phpc.social avatar

And it’s done.

iCaspar, to random
@iCaspar@phpc.social avatar

Last Saturday, pulled out the old bathroom ceiling fixture b/c the fan was dead. Got a new fixture, but the hole was too small to install it, and the framing wasn’t right to fasten it in.
Today’s the day to get up into the attic crawl space, fix the framing, widen the hole, and install. With any luck I’ll also get the wiring right!

GeePawHill, to random
@GeePawHill@mastodon.social avatar

I have no official bedtime tonight, no escape, I will just fade over the next hour or so.

So not my last post of the night, just the one I want you to remember.

It feels so hard because it is so hard.

I done a lotta hard things. None were as hard as being a reasonably good grown-up, generally kind, generally family-funding, generally cheerful, generally authentic, generally useful.

It feels so hard cuz it is so hard.

Tomorrow is another day.

I can tell how hard you're trying.

iCaspar,
@iCaspar@phpc.social avatar

@GeePawHill Thanks for this. I needed to hear that last night.

dgoosens, to random
@dgoosens@phpc.social avatar

Hello all

Looking for some good references on « change management »
Either extensive blog articles or books (no YT tutorials please)

Any good recommendations ?

iCaspar,
@iCaspar@phpc.social avatar
tjlytle, to php
@tjlytle@phpc.social avatar

What's the current state of the art for docker based #PHP development on Windows? PHPStorm as the IDE of course.

iCaspar,
@iCaspar@phpc.social avatar

@tjlytle I've had nothing but grief trying to develop PHP on Windows. Our setup uses WSL/Docker/Lando. Not sure if it's WSL or something else Windows has buggered in the last month, but it's borked PHPStorm's ability to write to the WSL filesystem. I've had to move over to VS Code to get anything at all done, and I hate it. I'd give anything to have a Linux machine at this point.

iCaspar, to random
@iCaspar@phpc.social avatar

C'mon MS Teams... is it 3, or is it "more"?

afilina, to random
@afilina@phpc.social avatar

F*ck cancer.

iCaspar,
@iCaspar@phpc.social avatar

@afilina So sorry for your loss.

iCaspar, to random
@iCaspar@phpc.social avatar

Three surprise visitors met me in my backyard this morning.

iCaspar, to random
@iCaspar@phpc.social avatar

Started dabbling in some manufacturing last week. Made 4 Mobile Tractor Units. All 4 sold in less than a week. Net profit about 13 million ISK. Not too bad for a first go.
#eveonline

stevedsross, to random

Hello! I'm new here. I was going to set up my own Mastodon instance because I like tinkering various services on my home server but they recommended I get started with an existing server to be less lonely. Is it working?

iCaspar,
@iCaspar@phpc.social avatar

@stevedsross Welcome.
Hope it's working!!!

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