Thank you @LegalsenseNL for your sponsorship, and making Joy of Coding 2023 possible!
Also interested in sponsoring our event? Check out our website for pricing and benefits.
https://t.co/4ckRMOjUwR
Stay tuned for more!
#joyOfCoding2023
We are back 👋!
The preparations for Joy of Coding 2023 have commenced!
Meet the team at our new website https://t.co/BQAA8R9evj.
Spread the word because ticket sales will open soon.
Stay tuned for more!
@b0rk in production sometimes attaching a debugger to a running process that's doing something "funny". On development it's easier to just add print calls and re-run, especially if the bug is reproducible in under a minute, or already has an automated test exposing the bug.
@PeterHilton@jessitron I make it a point to start the meeting a few minutes early for chitchat, but not start the actual meeting before the scheduled time. But 1 minute past the scheduled start, the meeting begins even when people are missing.
@bmispelon Does order matter? if it does you need to support at least 14^24 values, which is a bit under 92 bits. assuming 66 urlsafe chars, one should be able to encode it to log(14^24)/log(66) characters (16chars).
@treyhunner I have a rule: I only write `a op1 b op2 c` if when if both `a op1 b` and `b op2 c` hold, than also `a op1 c` and `a op2 c` must hold. (simplified: if op1 and op2 are the same, it means that op1 is transitive)
The case `request[0] == request[-1] in ("'", '"'(` breaks that rule.
@hackebrot@mariatta Which from a business perspective is a cost/benefit consideration. Also: are you satisfied with just smoke testing from 2-3 different countries (to prove load-balancer forwards real IPs), and accepting CI results for further handling/more countries.
@hackebrot@mariatta Same question for the load-balancer: does it parse&forward the X-Forwarded-For header?
If not, you've pretty much painted yourself in a corner, unless you want to rent IP addresses (and likely: servers/vps/vpn) from providers in the countries you want to test from.
@hackebrot@mariatta If not, and the service should ignore that header, put it behind a proxy/load-balancer that ignores the header of incoming requests and adds the header to the forwarded requests. Then run your smoke-tests on the service behind the load-balancer.
@mariatta I'm sometimes inclined to use assert for invariants. It's a shame that AssertionError subclasses Exception instead of only BaseException, as it's one of those things that should not be caught lightly.
@treyhunner For assigning I'd be more inclined to do
for key, val in attrs:
setattr(self, key, val)
Because that also plays well with settable properties