1 hour ago · Tech · 0 comments

Heya! So, when i made the post announcing that i was hosting the bearblog carnival for this month a couple days back, i said I was gonna talk about my favorite PHP function names. So, here's that post! Now, before we get started, I want to talk about why I can even make a blogpost about this. Because, the reason I'm writing is is that much of php early functions are named in very, very strange ways. And there's a reason for that! Not a good reason, but there is one. So, long story short: When you call a function in a programming language, it needs to check what that function does. To do this, it needs to search for the function. And to speed up that process, early PHP had a bunch of different buckets of functions. It would first determine which bucket to search, and then search for your function only inside that bucket, which would be a smaller subset of all the functions in PHP, so it would take a shorter amount of time. For this system to be effective, you would obviously need all…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.