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

Crell, to php
@Crell@phpc.social avatar

Please, web app developers, consider how your users will upgrade. If your upgrade process is "remove the old one, unzip the new one", then it's not an upgrade process. It's an encouragement to never upgrade.

#PHP #Laravel #Programming

bobmagicii,
@bobmagicii@phpc.social avatar

@Crell remove the old one?!?!?!? i shout yolo unzip that shi on top boiiiiiiiiiiiiii 🤣 🤣 🤣 🤣

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

Just released a new minor version of my “changelog-updater” GitHub Action.
https://github.com/stefanzweifel/changelog-updater-action

If the heading of a previous release in the changelog has a link to a compare view, the Action will use that URL and add a link to the updated compare view to the new release notes.

It's hard to explain this with words. The attached screenshot gives you a good example.

This previously only worked, if the changelog had a "Unreleased" heading with a link in it.

bobmagicii,
@bobmagicii@phpc.social avatar

@stefanzweifel been fighting this kind of thing too. one thing that has helped me personally is that when i need to print status messages... if i am not in "the cli app file" or 1 level of class deeper, aka my ./bin/whatever.php, then i have done it all wrong and stop.

this has helped me a lot because now i do a terminal app, and then like a terminal app... subcontroller?

so my main app will just be like DoThatStuff() new StuffDoer(this), and i do not allow cli related things to go any deeper.

bobmagicii,
@bobmagicii@phpc.social avatar

@stefanzweifel this highlighted method still being called Run() on Project is a direct artifact of when i had to stop and refactor my depths lol.

davidbisset, to web
@davidbisset@phpc.social avatar

"38% of webpages that existed in 2013 are no longer accessible a decade later." 😞

https://www.pewresearch.org/data-labs/2024/05/17/when-online-content-disappears/

#web #internet #oldschool

bobmagicii,
@bobmagicii@phpc.social avatar

@davidbisset an even bigger issue is that archive.org is not sacred anymore. they are constantly removing things from the wayback machine, to complete the historical scrubbing.

adele, to random
@adele@phpc.social avatar

some big sites have a terrible user interface. With the size of teams behind the development of them, I don't understand they cannot do something better.
I almost think about ebay and facebook (yes I have an account for some association activities only).

bobmagicii,
@bobmagicii@phpc.social avatar

@adele i still don't understand how my mom can use amazon.com but not figure out how to click a button i email her that says "click me"

awoodsnet, to movies
@awoodsnet@phpc.social avatar

I watched The Fall Guy in the cinema tonight. It was great! Better than i expected.

#movies

bobmagicii,
@bobmagicii@phpc.social avatar

@awoodsnet not making metalstorm for real and releasing it as a double feature was a mega oversight. that movie was gonna be rad af.

andrewfeeney, to HashtagGames
@andrewfeeney@phpc.social avatar

Purple Rain

A cautionary tale about the dangers of poor industrial emissions control regulations.


bobmagicii,
@bobmagicii@phpc.social avatar

@andrewfeeney its probably even true lmao

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,
@bobmagicii@phpc.social avatar

@oliver the database is using a 64bit unsigned, and php is 64bit signed. i cant even have a cpu count that high in my life time if it was a solid loop doing nothing.

it's bob magic iii's problem to migrate it to 128bit ints 🤣🤣🤣

bobmagicii,
@bobmagicii@phpc.social avatar

@oliver lulz im sorry thats a big oof 😅 at my first job we didn't have an int sized problem, but an indexing issue which used to require me to drain a lot of tables to an archive database so the live one could always be fast. i think thats the worst i've had to do.

davidbisset, to bluesky
@davidbisset@phpc.social avatar

At this point, if you go to #Bluesky just to document bad things happening to that particular social network or to report back to #Mastodon what people on a social network say about people here… I envy the time you have at your disposal.

bobmagicii,
@bobmagicii@phpc.social avatar

@davidbisset for real i barely have enough time to make fun of the people here, yet alone a 2nd network.

outofcontrol, to random
@outofcontrol@phpc.social avatar

Any quality paid replacement for Apple Music app on the desktop? Only use it for my own music, not the Apple Music service. A bit tired of the app randomly losing/deleting songs :(

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

@outofcontrol everyone claims pine player pro is """""winamp for mac""""" but its also like 30$, which is very unwinamp imho.

Crell, to python
@Crell@phpc.social avatar

No, #Python, this really is a gotcha, and a stupid one at that.

https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments

bobmagicii,
@bobmagicii@phpc.social avatar

@Crell the section titled "What You Should Do Instead" i would have written completely different and also ended the article.

bobmagicii, to random
@bobmagicii@phpc.social avatar

suddenly having doubts about homebrew security

bobmagicii, to random
@bobmagicii@phpc.social avatar

my favourite mac os feature is the one that spell checks your words, but wont let you click the correct word to replace it.

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

its a constant struggle and it usually ends still with me editing the post later, to try and not start every single statement with "i"

youtube isnt helping. 90% of everything it shows me is "i bought something stupid" or "i made something stupid"

not enjoying the trend where everything is about the proverbial me these days.

ramsey, to php
@ramsey@phpc.social avatar

Brent Roose has another great write up about what’s new in #PHP 8.4. https://stitcher.io/blog/new-in-php-84

bobmagicii,
@bobmagicii@phpc.social avatar

@ramsey "as well as chaining methods on new without additional parentheses"

no cap marking this illegal in my personal code standard. those extra parens are what even make it readable. else it looks like a mess and should not have been done.

naturally, imho.

bobmagicii,
@bobmagicii@phpc.social avatar

@ramsey its not the first time i marked something like that illegal. 🤣

derp commas were the first one. im not afraid of my diff being one line longer """than it needed to be"""

bobmagicii,
@bobmagicii@phpc.social avatar

@ramsey excited about the html thing and implicit nullable though, i always thought that loop hole was weirdish as i stare at my method declarations being like "does this reallllllly make sense?"

bobmagicii, to random
@bobmagicii@phpc.social avatar

got some personal health things that are slowing me down from getting dallasphp rebooted as quickly as hoped.

julienbarnoin, to programming
@julienbarnoin@mastodon.gamedev.place avatar

Not many people know about bleh debugging.
It's a technique I use when I want to check whether a certain piece of code is being compiled at all, such as if it's been ifdef'd out.

It works by inserting the following keyword in the piece of code you're looking at:

bleh

This is a special word that triggers an error in compilers of all programming languages, resulting in a message like "error: 'bleh' undeclared" if the code gets compiled. If not, the code is compiled out.

bobmagicii,
@bobmagicii@phpc.social avatar

@julienbarnoin the technical term for that i think is tombstone. in my web work we're mostly looking to see if they leave markers in the logs.

bobmagicii, to random
@bobmagicii@phpc.social avatar

lol, in the intro cinematic of stargate atlantis, one of the chevron lamps is busted 🤣

image/png

dshafik, to random
@dshafik@phpc.social avatar

This is a great example of things you can do... but probably shouldn't: https://github.com/paragonie/typed-arrays (is paragonie in the fediverse?)

bobmagicii,
@bobmagicii@phpc.social avatar

@dshafik man i appreciate the attempt this made but yeah no not like this lol.

theseer, to random
@theseer@phpc.social avatar

Is it just me or is anyone else running their own mailserver experiencing a lot servers being blocked by zen.spamhaus.org currently that one would assume not to be considered offensive?

Like github.com, outlook.com or google/gmail?

bobmagicii,
@bobmagicii@phpc.social avatar

@theseer yeah. thats my problem too. i can send them, but everyone rejects them now.

elazar, to random
@elazar@phpc.social avatar

How an empty S3 bucket can make your AWS bill explode | by Maciej Pocwierz | Apr, 2024 | Medium https://medium.com/@maciej.pocwierz/how-an-empty-s3-bucket-can-make-your-aws-bill-explode-934a383cb8b1

bobmagicii,
@bobmagicii@phpc.social avatar

@elazar @outofcontrol now that we all know they were milking that, now they might actually try to keep their network less full of fuck.

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