Bendegúz Csirmaz

software developer

Requests Session for OAuth 2 Client Credentials Flow with Authlib

April 4, 2020

Lately I've been writing a lot of background jobs that need to interact with different OAuth 2 service providers. Not knowing any better, I coded my own authorization logic using the Requests library. This approach works, but there's a better solution.

PHP quiz #5 - constructor overriding

June 16, 2019

Most PHP developers probably have already used constructor overriding, as it would be virtually impossible to create object oriented applications without it. Still, many of them might not be familiar with the exact rules around the subject - I know I wasn't.

PHP quiz #4 - hoisting

June 16, 2019

The term "hoisting" is used exclusively by JavaScript to describe its feature of moving variable and function declarations to the top of the current scope. Other languages have concepts resembling hoisting too, but for some reason they aren't discussed nearly as much as they should be.

PHP quiz #3 - operator associativity

June 16, 2019

Operators are the building blocks of computer programs. You might think you know them, but the devil is in the details. After all these years, I still find myself revisiting the precedence table every once in a while.

PHP quiz #2 - echo

June 15, 2019

When people get into PHP development, the first thing they learn is usually the echo statement. Despite its elementary nature, I've found its handling of multiple arguments to be quite tricky.

PHP quiz #1 - for loop

June 14, 2019

For loops are one of the most fundamental and ubiquitous control flow statements. They are so essential to computer programming, you would expect every developer to know them inside out. As for me, I never would have thought I could learn anything new about them - I was wrong.