@itsjoshbruce@phpc.social
@itsjoshbruce@phpc.social avatar

itsjoshbruce

@itsjoshbruce@phpc.social

Time Lord. Agile Coach, User Experience designer, and software developer. Designing the human experience all around. :)

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

itsjoshbruce, (edited ) to random
@itsjoshbruce@phpc.social avatar

Planning on lean publishing Time: Mastering the Mundane via Leanpub: https://leanpub.com/master-the-mundane

We’ll start with Part 1 on January 1, and a new Part every week.

Here’s a quote:

Principle: Holding your boundaries is easier if you identify what they are before you need them.

Here’s the crowdfunding, if you’re inclined: https://opencollective.com/mastering-the-mundane/projects/book-mastering-the-mundane

#MasteringTheMundane
#TimeManagement
#SelfManagement

itsjoshbruce, to random
@itsjoshbruce@phpc.social avatar

Researching self-hosting options:

Thoughts on providers?

itsjoshbruce, to php
@itsjoshbruce@phpc.social avatar

It’s been so long since I did anything with authenticated users, curious about “modern” patterns and standards.

Specifically, an authenticated user wants to do something. What patterns and standards are you using for permissions?

I’m seeing middleware mentions. But, curious what else is out there. Not looking for “use Framework X” and should be testable. Doesn’t need to be web-specific as I’m just looking for patterns and standards.

#PHP
#WebDevelopment
#SoftwareEngineering

itsjoshbruce, to random
@itsjoshbruce@phpc.social avatar

Part 9 of Time: Mastering the Mundane has been made available for purchase on Leanpub: https://leanpub.com/master-the-mundane

Part 9 is about Collaboration, which often gets conflated with Delegation (Part 7).

Contribute to this project on the Open Collective: https://opencollective.com/mastering-the-mundane/projects/book-mastering-the-mundane

#TimeManagement
#SelfManagement
#MasteringTheMundane

itsjoshbruce, to github
@itsjoshbruce@phpc.social avatar

decided to make the repo for https://mastering-the-mundane.com/ public.

https://github.com/8fold/site-masteringthemundane.com

For those playing the home game, you can see the initial commit is just me using the 8fold repo for projects.

The next commit was me starting to deviate from in the spirit of "I'll need it eventually."

The next commit was me just making a plain page. Taking my own advice: https://joshbruce.com/essays-and-editorials/webdev/absolute-beginners/

And we'll refactor from there. All told, I'm about 60 minutes in.

itsjoshbruce, (edited ) to random
@itsjoshbruce@phpc.social avatar

Might break down and build my time-tracking app again.

Would you be interested in such a thing?

If so, please do the poll and comment on how much you'd pay for such a thing.

It was a nice app, and I miss it. Didn't sell a lot (enough to pay for the developer license each year). Never had someone report a bug or request a feature.

It went a long while without an update, and Apple decided to remove it from the App Store (no hard feelings).

Boost, please!


itsjoshbruce, to php
@itsjoshbruce@phpc.social avatar

GitHub actions CI/CD question.

Desire: Run custom script to generate static file and add/overwrite that file.

When (preferable): After merging to main.

When (acceptable): As part of the PR submission test runs and checks. Meaning the generated file(s) we become part of the PR.

Use cases: sitemap.xml or RSS.

Constraints: I use a vanilla PHP site.

How does one do this? (Search skills are failing me, and I believe I’ve seen it once, but didn’t have time to parse.)

Cheers

itsjoshbruce, to php
@itsjoshbruce@phpc.social avatar

Had a developer moment updating a project: "Man, this is no good; I should do something about it."

That's the judgy part. The part that wants to throw everything away and start over using my current knowledge, patterns, and understanding.

This is the distracting part.

The site still works. The code is well crafted for my knowledge, patterns, and understanding at the time. Time to start making notes of how to get "there" from "here."




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

Hey, @colinodell: I've used a partial in my Markdown for the last year.

I inject the HTML as a preprocessing step before handing it over to League .

A pattern contains a key. Check the user dict of class names. If the key exists, invoke the class.

I'm debating building a CommonMark extension, not part of the core.

I don't think the extension would cause a issue since it's a facilitator, not a processor. Curious about your thoughts and a second pair of eyes.

itsjoshbruce, (edited ) to random
@itsjoshbruce@phpc.social avatar

In kind of a funky mood today.

Have you ever experienced your brain rewiring itself?

I’m pretty sure this is what it feels like. Or maybe it’s just an as yet unidentifiable rumination.

Regardless not sure if I like it or not.

itsjoshbruce, (edited ) to random
@itsjoshbruce@phpc.social avatar

Contemplating breadcrumbs for my personal site.

Does someone want to talk me out of it?

Or, maybe teach me something about doing it well?

See replies for details on the problem.



itsjoshbruce, to php
@itsjoshbruce@phpc.social avatar

Learning how to do a thing.

Pretty sure it’s possible; never tried and haven’t been pulled to do so.

PHP creates sessions. Using cookies, it creates a cookie named: PHPSESSID (or similar).

I’d like to customize this; clean and simple.

Goal: I’d like to not have the PHPSESSID cookie. Not finding it.

Thinking:

  1. Disable session cookie
  2. Implement SessionHandlerInterface
  3. Set mine as the save handler
  4. Pass my session cookie in response header

Feel like I’m missing something.

itsjoshbruce, to random
@itsjoshbruce@phpc.social avatar

I have an affinity for: Wait until the last responsible moment.

I've been contemplating Continuous Deployment on my personal site for years: https://joshbruce.com

But, before I did, I embraced the @jezhumble line: If it hurts, do it more often, and bring the pain forward.

I could deploy my sites in less than a minute using my phone by the time I hit the ceiling of the manual process I used.

Becca and I are ramping up on TIA: https://the-irreverent-agilists.com

#TheIrreverentAgilistts
#Agile
#XP

itsjoshbruce, to random
@itsjoshbruce@phpc.social avatar

This one was an interesting combination of job perks:

  1. Unlimited PTO

  2. 1 month sabbatical for every 5 years employed

If #1 is true, why does #2 exist?

itsjoshbruce, to php
@itsjoshbruce@phpc.social avatar

Here's an interesting experiment that just popped in my head. Curious if there are examples of it in , , and specifically:

Has anyone ever written (and documented) an application wherein you only pass and receive messages?

function doSomething(RequestInterface $request): ResonposeInterface

That sort of thing.

I've seen folks use Arrays and individual arguments, of course.

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

isn't my normal deal so any assistance would be greatly appreciated. See if there's someone who can beat me to it. lol

{!! date:
created=2023-01-01
!!}

I want to match everything between the opening and closing.

solution that seems to work:

{!!([\S\s]*?)!!}

itsjoshbruce, to random
@itsjoshbruce@phpc.social avatar

I'm at the point of removing my likes from Twitter. (Having removed all the posts they list for me, the reposts/replies.)

For some reason, Twitter won't let the removal stick.

After "unliking" a few dozen, all the sudden I click the little heart, it removes the like, and magically it comes back.

I'm not much for conspiracies and thinking software is "smarter" than it actually is, but here I am.

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

Mundane question. Asking real life humans instead of searching or reading docs.

composer.json with the following includes PHP 8.3: php: ^ 8.0

This won’t explode until PHP 9, yeah?

Further, if I don’t use any 8.3 features, I shouldn’t put the following in my composer.json file: php: ^ 8.3

Finally, if my library only uses PHP 7 features, and none of them were deprecated in 8, I should do something like this to allow both PHP 7 and 8 servers to use the thing: ^ 7.0 || ^ 8.0


itsjoshbruce, to random
@itsjoshbruce@phpc.social avatar

I’m suddenly, and for no apparent reason, reminded of a Marsha Warfield line from Night Court: Stop the world, I wanna get off.

itsjoshbruce, to random
@itsjoshbruce@phpc.social avatar

Being pressured in business isn’t limited to management to employee. Consider this exchange with a recruiter.

Received right to represent document to sign. Recruiter calls at 0900 ET:

Me: Yep. I received it. Will send it after 1200.

Recruiter: You can fill it out now with me on the phone. I answered your questions.

M: You did. I appreciate that. I’d like to research things related to the responses before signing.

R: When can I call?

itsjoshbruce, to random
@itsjoshbruce@phpc.social avatar
itsjoshbruce, (edited ) to php
@itsjoshbruce@phpc.social avatar

Is Symfony Console the way to go for creating custom CLI tools using PHP?

I think someone pulled something together from Laravel components.

I'd like to find something excessively lightweight - like CLI is all it does with few or no dependencies.

Curious about what folks are using.

I'll probably start with Symfony as I've built what I'm planning once before.

itsjoshbruce, to macos
@itsjoshbruce@phpc.social avatar

I recently tried to share a calendar tied to an iCloud account with someone who doesn’t use Apple products. They weren’t able to subscribe. We didn’t dive into full-on troubleshoot and solution mode.

Is there some voodoo that needs to happen?

  1. Create calendar
  2. Share calendar (results in email with link)
  3. Recipient follows link…

They received an error saying they couldn’t subscribe to the calendar.

I feel like I was able to do this before without problem.

itsjoshbruce, to webdev
@itsjoshbruce@phpc.social avatar

One of the nice things about being able to write software is when a software company (or series of them) frustrate me enough, I can just write my own.

The drawback is actually doing it.

I’m glad I’m not a data hoarder. Trapped into using software because, “They have all my data!”

I guess we’re back in software mode…unless…

You know of a completely standalone bookkeeping application that doesn’t suck (no account connection needed).


itsjoshbruce, to random
@itsjoshbruce@phpc.social avatar

Experimentation in the following continues:

  1. Less code
  2. Fewer packages (1 package that depends on 50 = 51 packages)
  3. Still have robust dynamic sites

No more databases (not even flat-file). No more admin panels (that’s changing, kind of). Now I’m contemplating abandoning the belov’d front controller + router.

If you would have told the 2005 version of myself this is where I’d be 20 years later, I would’ve laughed in your face before panicking that someone would take away my precious.

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