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

bobmagicii, to random
@bobmagicii@phpc.social avatar

"omgggg why is this filter not workingggggggggggg ggg ggggg"

...

"oh"

??=

bobmagicii, to random
@bobmagicii@phpc.social avatar

https://www.youtube.com/watch?v=SsoOG6ZeyUI

"because it would look different on other people's computers"

this is literally the exact reason i need you to use tabs oh my god lmao im crying

if my computer was the same as your computer i'd just be using your computer too.

bobmagicii, to random
@bobmagicii@phpc.social avatar

ok here is my last apple rant for the week: the m1 is not nor was ever fast.

it might have been fast to people who had apple things before.

but getting work done with the gpu, even the gtx 980 with the most basic cuda support is lapping the m1 in both image and audio generation.

and the rtx 3060 isn't even fair to race against. it does in 37 seconds what the m1 could not finish in 10 minutes (text-to-speech).

that said, it all worked easy first try did not have to fight it. just not good.

bobmagicii, to random
@bobmagicii@phpc.social avatar

a good april fools from microsoft would be a post claiming to finally fix this.

bobmagicii, to random
@bobmagicii@phpc.social avatar

i also wish we could be like

foreach($Things as const $Thing)

so i could stop doing unset($Thing) after my foreach loop.

sometimes i will add overhead with a callable that is immediately called just to keep the scopes clean. its an obsession i have. but that doesn't really work well in templates that are more html than anything.

bobmagicii, to random
@bobmagicii@phpc.social avatar

taken to really abusing use in that, i have even been using it in templates because i can.

gonna need to run some benchmarks nobody cares about to find out if there is some hidden lulz behind doing this vs not doing this.

bobmagicii, to random
@bobmagicii@phpc.social avatar

when it comes down to "i want jquery dom api but in php" can never remember which of these abandoned libraries i used to prefer 🤣

bobmagicii, to random
@bobmagicii@phpc.social avatar

php website dont like firefox anymore either. you get that trying to click the zip.

bobmagicii, to random
@bobmagicii@phpc.social avatar

main thing that stops me from using the bit where you can define properties in the constructor of a class, is that, when you do that, you cant (obviously) also define them above the constructor, in a proper property list.

meaning when scrolling the file, you are missing vital info about the structure of the objects this thing shats out that should have been very clearly grokable with a flick, otherwise.

and its even worse when the two styles are mixed together within a single class.

bobmagicii, to random
@bobmagicii@phpc.social avatar

part of me really hates that this works

bobmagicii, to random
@bobmagicii@phpc.social avatar

anyone using siri american 2 is the worst person, and each person exposed using siri american 2 is worse than the one prior. thats just the rules. i made them up. and they are non-negotiable.

bobmagicii, to random
@bobmagicii@phpc.social avatar

struggling to find a mac app that is the quality of HeidiSQL (https://www.heidisql.com) at an open source price point.

say that as a point of principle not budget. boss will annoyingly buy anything i want.

sequelpro isnt maintained, sequel ace is modern fork and so far the best found. dbeaver is atrocious and mysql workbench is somehow still a big joke.

no interest in paying a yearly sub for jetbrains datagrope.

heidi's strong point is it doesn't "just do things" it queues and you commit.

bobmagicii, to random
@bobmagicii@phpc.social avatar

how good are the odds do you think, if i take the platters out of one hdd and transplant them into a twin where the controller board aint fkn up, that i can get a few minutes of read to nab data?

bobmagicii, to random
@bobmagicii@phpc.social avatar

hey i got a table where the primary key iterated over 1mil. its been a while most our projects are tiny.

bobmagicii, to random
@bobmagicii@phpc.social avatar

am i crazy enough to start making objects for primitive types like int so my Vec2 can be all like

$Vec = new Vec2(42, 69);
$Vec->X->Clamp(0, 9);
$Vec->Y->Clamp(0, 9);

there is a very good chance i am.

the real question is will $Vec->X() work if i implement __invoke on the int object lol. there used to be some foolery regarding this a long time ago.

to really make this good php would need like like a __toValue that works like toString but returns mixed.

bobmagicii, to random
@bobmagicii@phpc.social avatar

think i finally stacked the cards just right such that my magical recursive sql query generator with joins and shit "just works" with just an attribute lol lollololol.

main problem i had to solve was joining the same table twice. right now it still requires i be aware that my class is doing this and just give them a new arg to give them custom prefixes.

its um. firstly it works exactly how i want. however im gonna have to clarify intentions. its not my cleanest recursion.

bobmagicii, to random
@bobmagicii@phpc.social avatar

technically the way we fragmented post twitter means i am now publicly representing phpc.social with every single thing i do. so how long before a situation happens where someone gets expelled via on-network committee for off-network comments?

bobmagicii, to random
@bobmagicii@phpc.social avatar

after learning about that continue 2 thing that php yelled at me a week or two ago. now im wondering like.

foreach() foreach() continue 2;

never written code with this design in mind as i literally had no idea continue took an arg.

it seems kind of gross, though.

bobmagicii, to random
@bobmagicii@phpc.social avatar

fact: i had very specific reasons for both of these methods as well as a reason for the naming convention.

also fact: those reasons are lost to time.

bobmagicii, to random
@bobmagicii@phpc.social avatar

today is "normalise the names of exceptions day" to be more nouny.

InvalidConnection => ConnectionInvalid

bobmagicii, to random
@bobmagicii@phpc.social avatar

presently if you check the box in outlook to "try the new outlook"

and you have a microsoft 365 corporate account

it will refuse to allow you to login because its not a supported account type.

and there is no way to go back to "old outlook" without regedit.

the "new outlook" worked on my corporate account just fine 2mo ago.

bobmagicii, to random
@bobmagicii@phpc.social avatar

is there a way to just absolutely disable git storing file permissions at all ever?

like if i push from a server that hasn't had core.filemode 0 set, i want the remote host to just straight up ignore the permissions because they are wrong and bad. they are always wrong and bad, they are never not wrong and bad.

just pushed on accident a blanket 777 to all my repos and you know what thats on you for running my code and not knowing your file permissions. and aint gonna be arsed to rebase max it.

bobmagicii, to random
@bobmagicii@phpc.social avatar

oh man oh man this one commit is going to 100% test this class

99.8%

booooooooooooooo wait what did i miss

totes gonna write a test to test that theory.

bobmagicii, to random
@bobmagicii@phpc.social avatar

imagine asking an api for /user/4 and you got back HTTP 404 instead of { Error: 123, Message: 'User not found' }

spend a day debugging. you typo'd it as /usr/4 and had no idea there is a difference between

HTTP 404 "you failed to ask a question i know"

HTTP 404 "this was an empty dataset"

because this is the future RESTful people want.

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)

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