@bobmagicii@phpc.social
@bobmagicii@phpc.social avatar

bobmagicii

@bobmagicii@phpc.social

Resident PHP & Jacascript iconoclast. I still think PSR is the worst, even now that I'm on Mastodon. You might remember me from Dallas PHP and Lone Star PHP.
:elephpant_gold: :elephpant_white: :elephpant_purple: :elephpant_black:

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

cspray, to php
@cspray@phpc.social avatar

I found myself needing to write tests for code that throw an exception with domain-specific information. I actually need access to the exception thrown in my test. So, I created a testing utility that will do just that.

https://github.com/cspray/assert-throws

bobmagicii,
@bobmagicii@phpc.social avatar

@cspray am i correct in understanding that your goal was to replace this style of construct?

ramsey, to Matrix
@ramsey@phpc.social avatar

A single-user #Matrix #Synapse server should not require so many resources to run. 1 vCPU and 1 GB of RAM should be plenty.

bobmagicii,
@bobmagicii@phpc.social avatar

@Crell @mcg @ramsey inb4 all your repos get spammed with tickets from people """"suggesting"""" you start over in rust, there larry.

grumbles in linux kernel 2.4

bobmagicii, to random
@bobmagicii@phpc.social avatar

think ill survive lol

davidbisset, to email
@davidbisset@phpc.social avatar

https://email.ml is "Minimalist temporary Email". "Private" #email valid for one hour. Runs on #cloudflare

bobmagicii,
@bobmagicii@phpc.social avatar

@davidbisset a great idea if they are not lying about farming. i give it a 40% chance of being run by the fbi.

bobmagicii,
@bobmagicii@phpc.social avatar

@davidbisset it will be interesting to see what happens after they start getting millions of bounces a day. like say if a bunch of people used this just to get an account started on a website they wanted to be anonymous on. but the site doesn't know it was ultra transient and continues to send notifications to it.

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar
bobmagicii,
@bobmagicii@phpc.social avatar

@lewiscowles1986 i agree its shitty but 1986 you should have been around for all the packs of decks of cards for everything from sports to games, that were also mysteries too.

ollieread, to random
@ollieread@phpc.social avatar

I know the convention is for singletons to have an "instance" method, but I quite like the idea of a "get" method.

Though I suppose as a convention it can be an issue, as a class is more likely to have a get method as standard.

bobmagicii, (edited )
@bobmagicii@phpc.social avatar

@ollieread get is not a great choice. get already has heavy implications on the style of operation.

our system ended up on Container::New() and i make zero apologies for it.

bobmagicii,
@bobmagicii@phpc.social avatar

@ollieread think i tend to build everything as a multiton even if its intended to be a singleton.

mostly because if think i wanted a singleton the reality is i wanted a single managed instance for the common use case, not so much a device that can literally only burn itself once. which leads me to mostly writing something like this:

https://gist.github.com/bobmagicii/f3888f0032a2b2932b4571b23aac3204

where Init() comes from my distaste of "instance" as a verb.

18+ virtulis, to random
@virtulis@loud.computer avatar

A guy submits his manuscript to a publisher. The publisher skims over it for a few minutes and says:

The plot certainly has some potential, however your words are rather crude and repetitive. Perhaps you should read more of the classics, see if something inspires you.

The guy is dumbfounded:

I think you misunderstood. I am a writer, not a reader!

(it me, I'm that guy)

bobmagicii,
@bobmagicii@phpc.social avatar

@virtulis "codebase" that is a nope from me. there are lots of small well written libraries but you'll never find a good code base. by the time anyone calls it that, its over abstracted to hell.

ramsey, to random
@ramsey@phpc.social avatar

Why do IDEs always default the terminal to the bottom of the screen? I’m always—always—going to move it to right side of the screen. No matter what. Am I the only one who does this?

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

longing for a day where the typecast can be part of the foreach() instead of this magic comment stuff that i absolutely loath doing. or hard typed collections.

for context, in Skyrim scripting, if it doesnt fit the cast you get NULL that iteration. and im 100% ok with that. (but an exception is cooler)

bobmagicii,
@bobmagicii@phpc.social avatar

@ramsey i would probably prefer an exception to yell at you about your mixmatched collection when you said to expect a specific thing.

bobmagicii,
@bobmagicii@phpc.social avatar

@ramsey then on the last loop an exception is thrown. just like anything else in php thats more or less just in time? i can already throw a null in that final slot and now that $Util->Print($V->Title) is going to bomb on reading Title on NULL.

instead the foreach could stop you before that iteration starts and be like "expected a type fool" instead of that worse error.

ramsey, to random
@ramsey@phpc.social avatar

What happened to firefish.social? I wanted to log in (first time in ages) to check things out, but site doesn’t load. Did it go away?

bobmagicii, (edited )
@bobmagicii@phpc.social avatar

@iacore @ramsey https://fediversereport.com/an-uncertain-future-for-firefish/ seems like it was struggling to perform on a developer level.

afilina, to random
@afilina@phpc.social avatar

Yes, Disney+, when I press Continue, what I really want is to start from the beginning and lose my place. This issue remains unfixed after over a year.

Programming is apparently so hard that a profit of 3B dollars is not enough to get basic functionality right.

bobmagicii,
@bobmagicii@phpc.social avatar

@afilina disney plus's tracking has been a disaster since they launched it. it has forgotten entire seasons that i have watched already. and i personally do not think they have updated the web app once since they first published it.

bobmagicii, to random
@bobmagicii@phpc.social avatar

bots i have banned this month for too many hits on my tiny websites that only have a few pages and most are non-profit. hits are since may 1st 2024.

anthropic dot com "claudebot" - 80,429 hits
babbar dot tech "barkrowler" - 24,347 hits

and i am seriously considering blocking the entire http client lib for go with its default user agent.

these are only the hits against the php application not any of the supporting resources.

syntaxseed, to TodayILearned
@syntaxseed@phpc.social avatar

My son's grade 6 teacher is leaning full tilt into the "embarrass you in front of the class for benign requests/mistakes" method of authoritarian .

I'm caught between wanting to call her out on it, vs, not wanting to make things worse for him since she seems like the retaliatory type. And there's only 1 month left in the school year.

Sigh.

bobmagicii,
@bobmagicii@phpc.social avatar

@syntaxseed my parents got my third grade teacher and principal fired for this. their mistake was thinking you can embarrass the class clown.

bobmagicii, to random
@bobmagicii@phpc.social avatar

github and sites i log into with github keep telling me i have partial passkey support and offer to use it.

i have no idea wtf this means. i have been using the ms authenticatior app with github for the past 4 years never even heard of this passkey crap.

bobmagicii,
@bobmagicii@phpc.social avatar

@ziadoz even if it was a good thing how tf is "partial support" acceptable lmao.

bobmagicii,
@bobmagicii@phpc.social avatar

@ziadoz https://support.apple.com/guide/mac-help/create-a-passkey-mchl4af65d1a/mac

considering i only added my right middle finger to TouchID, and yet three of my fingers on each hand can unlock it i am now extremely afraid i have fucked up hard core.

bobmagicii,
@bobmagicii@phpc.social avatar

@ziadoz good call. based on how i named it, i can tell they hijacked me in the middle of being already pissed off just trying to learn how to use mac os.

bobmagicii, to random
@bobmagicii@phpc.social avatar

microsoft has their ai generating the answers now i see.

bobmagicii, to random
@bobmagicii@phpc.social avatar

in school i never skipped any classes but i constantly have dreams about skipping too many and being a credit short to graduate. its usually p.e. class im skipping cuz i hated that. plus high school was over a score ago, come on.

bobmagicii,
@bobmagicii@phpc.social avatar

@paulshryock my mother told me once that she still has dreams about forgetting her locker combo.

mine were worse. in my dreams, i would completely forget where the locker even was. 🤣

elazar, to random
@elazar@phpc.social avatar

Array.reduce() is Goated 🐐✨ - DEV Community
https://dev.to/mattlewandowski93/arrayreduce-is-goated-1f1j

bobmagicii,
@bobmagicii@phpc.social avatar

@elazar remembering that i renamed reduce to Accumulate check out this absolute insane thing match() acted as an enabler for lmao.

imagine if i did something smart and just indexed the tags by their alias instead 🤣

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