"Maybe if you invited the operations people earlier, they'd have some ownership in the product."
Awww... You like each other but none of you dare to make the first move :D
32 karma · joined July 21, 2020
"Maybe if you invited the operations people earlier, they'd have some ownership in the product."
Awww... You like each other but none of you dare to make the first move :D
Hah! Nice one :D
Did any of his statements really need vindication though? Have we not known about this forever? (e.g. https://en.wikipedia.org/wiki/ECHELON) I suspect the real problem is, and always has been, our perceived inability to change any of it.
Thank God!
It's not about rights, it's about desires and personal insecurities. People who derive pleasure from condescension are just telling you that they're vulnerable to manipulation via flattery. It's bad opsec! :P
I did a quick test of this `reverse` function (which probably shouldn't exist in the first place) and, unsurprisingly, it became ~30% faster when `len(arr)` was only called once.
You're right! I noticed it a few minutes ago and changed the wording accordingly. Thanks for pointing out how shockingly bad that algorithm actually is! :D
> (...) the reverse function mutates its argument and returns it.
Yeah, that mutate + return is confusing. It's also worth noting that, as a result of the mutation, the function doesn't work on immutable types like strings and tuples.
We don't need to understand the process to evaluate the output in this case. Bad code is bad code no matter who/what wrote it.
The author's comments on that "reverse" function are equally bad - https://youtu.be/9Pw-Roo_duE?t=171
It's described as "efficient" but it calls `len` on an unchanging list in 3 places.
I handle QR codes by taking a picture and decoding on the command line using zbarimg. If the decoded output is a URL and looks safe I might visit the site. No way I'm letting an insecure device (basically all smartphones) follow random links blindly like that. And no way I'm giving up my data points for free if I can avoid it (remember how market researchers used to pay people to participate in focus group interviews?)
# secret_key = random.randrange(1, bitcoin_gen.n) # this is how you _would_ do it
I know the article is mainly for learning purposes but someone should point out that the `random` module in python is not meant for cryptography. Please use the built-in `secrets` module or `os.urandom` instead.