Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xapata
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
81 ms
·
961.
▲
by
xapata
6y ago
Use the same method to verify in dev as in staging (Docker image). If you don't know it works in staging, then you didn't know in dev either.
962.
▲
by
xapata
6y ago
Then one should talk about how convenient the related abstractions are. I like the concurrent.futures library.
963.
▲
by
xapata
6y ago
It is funky, but importlib package resources helps.
964.
▲
by
xapata
6y ago
Ever watch an ad that's so good, you can feel yourself being manipulated? I equate freedom in the Huxleyworld to be like that. So long as you're aware that your choices are, through overwhelming convenience, limited to whatever
965.
▲
by
xapata
6y ago
It may be a naive philosophy, but my choice of it is studied. If you're curious about the literature, check out discussion of Liebniz' view of free will. I didn't agree that the cult member was not free in a binary sense, be
966.
▲
by
xapata
6y ago
I agree that my dog is less "free" than myself, but only because he is less self-aware. I like the philosophy that one is "free" to the extent one understands the various causes that constrain and motivate one's ch
967.
▲
by
xapata
6y ago
Exactly. I'd use a different term than captive in this case. The situation isn't as extreme as for a cult member.
968.
▲
by
xapata
6y ago
Indeed. Thus, to say the article's protagonist is in captivity is clearly a subjective judgement and not a fact.
969.
▲
by
xapata
6y ago
Docker does matter, because the Docker image should take the place of requirements.txt (your "locked" dependencies) in your deployment process. I suggest you pip-install the package, rather than the package's requirements.tx
970.
▲
by
xapata
6y ago
Funny, I'm working on a project about the same size, and the overly aggressive type and value restrictions are the main problem that I struggle with daily.
971.
▲
by
xapata
6y ago
I don't understand the distinction you're making. Are you pip-installing or not? If not, why not? My method for deploying a web application is to have a Dockerfile which pip-installs the Python package, but I could see someone u
972.
▲
by
xapata
6y ago
That's the whole point of distinguishing between logical dependencies and reproducibility dependencies. I use setup.cfg to describe the logical dependencies, I supply a requirements.txt (or environment.yml, or a Dockerfile) to provide
973.
▲
by
xapata
6y ago
I have a dog right now. He enjoys my company. I don't think he's a captive. I love him, he loves me. I let him off leash and he generally stays nearby. Am I a captive of my wife? I don't think so. Are children captives
974.
▲
by
xapata
6y ago
Seems reasonable.
975.
▲
by
xapata
6y ago
In that case, it was an unnecessary joke and not helpful to the conversation.
976.
▲
by
xapata
6y ago
> Sure you can pip freeze your dependencies out to a file but this includes dependencies of dependencies, not just your app's top level dependencies. Isn't that a good thing? > no concept of a separate lock file with pip. se
977.
▲
by
xapata
6y ago
You've constructed a false linearity here. The concepts of freedom and captivity aren't well-suited to a linear continuum.
978.
▲
by
xapata
6y ago
For most pet cats, no. In my own experience with a pet cat, if he really wanted to run away, he could have. The opposite would happen. He'd sneak out when we weren't paying attention and then we'd accidentally lock him out
979.
▲
by
xapata
6y ago
> living in captivity That's a big leap, and you've given no explanation for it. Perhaps we have different understandings of what captivity means, so it'd be helpful if you define your terms. To me, captivity is a locati
980.
▲
by
xapata
6y ago
I actually appreciate that API change, as it makes my use of resources more explicit. However, you might be interested in using ``weakref.finalize`` to keep that C++ style. https://docs.python.org/3.6/library/weak
981.
▲
by
xapata
6y ago
The need to add cleanup code is a change to the interface. If you don't change the interface, you've left yourself open to bugs around accidentally using an instance after it's been cleaned. If you really want to keep the sa
982.
▲
by
xapata
6y ago
I'd argue the context manager concept is better than destructors, because it's more explicit. BTW, Python does have the `__del__` special method. It's just that almost all usage of it would be better implemented via context
983.
▲
by
xapata
6y ago
I'd go a little further and say context managers are underused on the whole. They're a great tool and aren't used often enough. ExitStack enables using context managers in more situations.
984.
▲
by
xapata
6y ago
Yeah, it's interesting how similar our viewpoints are, including the stubborn itch to debate rhetoric. Have a good evening.
985.
▲
by
xapata
6y ago
You've confused a critique of your rhetoric for a critique of yourself. There's no need to defend a turn of phrase so vigorously. If you'd just led off with, "No, I didn't mean it like that," as you've d
986.
▲
by
xapata
6y ago
I'm not interested in arguing for it's own sake either. I spoke up to fight a frustrating trend in internet argumentation. > ... pretty plainly not a legitimate criticism What's plain to you isn't plain to me, and vi
987.
▲
by
xapata
6y ago
You can patch by linking a different library in C. What's the difference? I suppose it's easier in Python to patch. Seems like a good thing to me.
988.
▲
by
xapata
6y ago
"When you're rich, they think you really know." -- Fiddler on the Roof People have a hard time understanding randomness, so of course they can't distinguish luck from skill. If you ask the average person to put dots on
989.
▲
by
xapata
6y ago
> no actual content Indeed, the criticism is not of the facts but of the logic. My critique is primarily of your rhetoric. You requested a citation without offering a rebuttal. Yet, you you made a claim that appears to be equally well
990.
▲
by
xapata
6y ago
Because you don't think I'll change anyone's behavior or opinion? I'm holding out hope.
More ›