5,570 karma · joined Oct 5, 2013 (13y ago) · 1,210 submissions
comment 6y ago · link · parent
OpenID was that technology, but it didn't really get any adoption. OpenID Connect seems to be the replacement based upon OAuth, and seems to be pretty easy to implement if you already support OAuth.
comment 6y ago · link · parent
In Python you don't need to explicitly declare keyword arguments either (though it is possible). This is perfectly valid and working:
def foo(a: str, b: int, c: bool=None, d: float=None):
pass
foo(b=5, a='something', d=3.0)
# is equivalent to
foo('something', 5, None, 3.0)comment 6y ago · link · parent
comment 6y ago · link · parent
Not really. Most of commerical aviation doesn't use leaded fuel anymore, and general aviation uses leaded gasoline because it is technologically still mostly stuck in the sixties.
comment 6y ago · link · parent
It works fine over wifi. For those without internet at all, well, then you can't order anything online either ;)
(I know of at least one bank, but there are probably more, that also offers a (free) hardware device for people without a smartphone.)
comment 6y ago · link · parent
That's an American thing, it's non-existant in Europe (at least in The Netherlands). Also, in the end it's not a discount, it's just your own money that you get back in an inconvenient way. It's paid from the creditcard fees that retailers pay, which pass it on to you (either directly as a fee, or indirectly as higher prices). The whole idea of e.g. paying less for gas when you pay in cash is insane in most of Europe.
> Credit cards help you build a good credit score to get better interest rates on loans and mortgages.
Credit scores are another American thing that seem insane to most Europeans.
comment 6y ago · link · parent
That might be because usage of associative arrays is more or less discouraged in modern PHP in favor of value objects (especially with property promotion in PHP8). Main reason for that is that this usage is horrible for IDEs and static analysis. Way too easy to rename a parameter and create a runtime error. Typing is also enforced at usage instead of creation, and you have to repeat the type information in every function signature.
comment 6y ago · link · parent
It kind of makes sense if you look at the signatures (array_map takes a callable and a variable number of arrays, while array_filter takes a singe array and an optional calable), but yeah, it's horrible to use.