|
my homie dhall posted:what is an array but a set with the added complexity of ordering? well, at least in javascript a set can only have a single instance of a thing: JavaScript code:
|
# ? May 22, 2024 07:48 |
|
|
# ? Jun 2, 2024 05:58 |
|
i say that because i'm sure there is some definition of a set that involves greek letters and makes my eyes slide right off the screen
|
# ? May 22, 2024 07:49 |
Wheany posted:i say that because i'm sure there is some definition of a set that involves greek letters and makes my eyes slide right off the screen What about second σετ?
|
|
# ? May 22, 2024 13:29 |
|
just found out that the hard way that if a python function has a parameter with default value that's an object, it's persistent between calls, so you get things like this happening:code:
|
# ? May 22, 2024 21:12 |
|
Colonel Taint posted:just found out that the hard way that if a python function has a parameter with default value that's an object, it's persistent between calls, so you get things like this happening: Yep, python evaluates default params at function definition, so you’re better off using None and initialising the default value in the body instead
|
# ? May 22, 2024 21:23 |
|
yeah only reason i know about that one is because it's a classic interview question. it makes sense from a certain perspective but it is certainly counter-intuitive.
|
# ? May 22, 2024 21:39 |
|
Colonel Taint posted:just found out that the hard way that if a python function has a parameter with default value that's an object, it's persistent between calls, so you get things like this happening: you fell victim to one of the classic blunders
|
# ? May 22, 2024 22:28 |
|
I'm just really glad it is rare enough that none uses it that way on purpose
|
# ? May 23, 2024 01:33 |
|
Corla Plankun posted:I'm just really glad it is rare enough that none uses it that way on purpose lol good one
|
# ? May 23, 2024 02:00 |
|
sweet, my epub decryption script still works. just loaded up on some more books
|
# ? May 29, 2024 13:25 |
|
Subjunctive posted:the client’s authentication could be a cookie, or an Authorization header token, or a client certificate for TLS, or simply being on an internal network for some cases well don’t auto send auth headers either of course. I don’t know about client certs, but local network is a good example and it’s funny IME that sites authenticated that way are likely to have cors disabled!
|
# ? May 29, 2024 13:52 |
|
Carthag Tuek posted:sweet, my epub decryption script still works. just loaded up on some more books Eyy, I've got one of those too. Shout-out to Hoopla for calling theirs decrypt.ts and not minifying it!
|
# ? May 29, 2024 13:55 |
|
|
# ? Jun 2, 2024 05:58 |
|
CPColin posted:Eyy, I've got one of those too. Shout-out to Hoopla for calling theirs decrypt.ts and not minifying it!
|
# ? May 29, 2024 14:00 |