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

ramsey, to php
@ramsey@phpc.social avatar

Opinions/thoughts/advice on monorepos with . Is anyone working within this problem space? What tools do you use?

I know is a . Are the tools they use specific to them, or can others use them?

bobmagicii,
@bobmagicii@phpc.social avatar

@Alister @ramsey i love how contrary this is to the past 25 years of speakers speaking at conferences 🤣

bobmagicii,
@bobmagicii@phpc.social avatar

@ramsey oh, well if js people think its a good idea then it should double be avoided.

but also yeah trying to replicate a tech giant's current process at step 368 in their growth as a not tech giant oneself is a fools errand. everything they did was in their own interest. plus the dark basement teams of corpos that make things crazy just for job security.

bobmagicii,
@bobmagicii@phpc.social avatar

@ramsey oh for sure, i am glad to have learned about all of this, so i know not to do any of it. 🤣

bobmagicii, to random
@bobmagicii@phpc.social avatar

client's user: "i keep getting this message when i try to register what does it mean?"

to be fair there was no "* fields marked by asterisk are required"

this form has been approved by two levels of management, for two years straight. re-reviewed twice a year. lmao.

and the api shoots out the following message on submit. they sent us the screenshot of it:

Required Field: Office

so i wonder what it meant.

davidbisset, to programming
@davidbisset@phpc.social avatar

"Clever code is probably the worst code you could write... and clear, readable code is probably the hardest to write."

https://read.engineerscodex.com/p/clever-code-is-probably-the-worst

bobmagicii,
@bobmagicii@phpc.social avatar

@davidbisset one thing i found that can convince a lot of developers to stop doing those one liners "because its fewer vars and faster" is if the language can stop being compiled at an assembly stage.

the compilers of most languages will end up making ::temp# variables to assign the results of each call to, ergo being the same as if you had declared them yourself.

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

@ghostwriter

> At first glance, the Recall feature seems like it may set the stage for potential gross violations of user privacy.

and second and third and fourth and fifth and no matter how many fucking times i glance it is clearly a gross violation of user privacy.

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.

bobmagicii,
@bobmagicii@phpc.social avatar

@itsjoshbruce

> 2. Fewer packages (1 package that depends on 50 = 51 packages)

amen brother. its the main reason i avoid sf2 and laravel packages as much as possible. you want one simple thing and end up consuming the entire ecosystem of 3 frameworks in my ram. nobody just writes things anymore. except me. and now you.

bobmagicii, to random
@bobmagicii@phpc.social avatar

i am amused.

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 there's always a map-reduce guy somewhere nearby 🤣 im with you tho

my data object that wraps arrays in php, actually ended up calling the array_reduce() wrapper, accumulate(), because that makes more sense to me. its always an accumulation operation. not a reduction. but i digressify.

dshafik, to random
@dshafik@phpc.social avatar

I've been spending a lot of time in the terminal lately, and setting up a new machine from scratch so re-evaluating everything. I decided to document some tools that I love: https://www.daveyshafik.com/archives/70845-five-command-line-tools-for-developers.html

bobmagicii,
@bobmagicii@phpc.social avatar

@dshafik ack is one of those things i swear i need to add to my repertoire but then never do.

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/

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.

#HashtagGames
#SecretMeangingsInSongs

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, , 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

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
  • JUstTest
  • InstantRegret
  • osvaldo12
  • tacticalgear
  • magazineikmin
  • thenastyranch
  • rosin
  • everett
  • Youngstown
  • khanakhh
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • Leos
  • mdbf
  • ethstaker
  • cubers
  • cisconetworking
  • modclub
  • anitta
  • tester
  • ngwrru68w68
  • GTA5RPClips
  • normalnudes
  • megavids
  • provamag3
  • lostlight
  • All magazines