Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
saila
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
121.
▲
by
saila
5y ago
It would be criminal to allow children to rampantly spread COVID too, even if they themselves were/are at low risk. Imagine the damage when a child brings home COVID and one of their parents ends up dying or even "just" disab
122.
▲
by
saila
5y ago
"Although it is too early to quantify fully the long-term impact of the pandemic, it has exacerbated the burgeoning crisis..."
123.
▲
by
saila
5y ago
I prefer code in this style too: if something: return something if something else: return something else return default It's not applicable everywhere, but where it is, it seems tidier to me than the al
124.
▲
by
saila
5y ago
I'm not seeing the irony. The file you linked to is only ~2600 lines of code and seems to be well-modularized and fairly well commented. Assuming that's the whole site, I think that's pretty reasonable.
125.
▲
by
saila
5y ago
Perhaps true but misses the point. If you’re using len() for type checking , it’s essentially no different than doing isinstance(items, Sized). The latter explicitly calls out what you’re doing and makes it clear, to me, that’s it’s not re
126.
▲
by
saila
5y ago
This is incorrect, because you can generally do this for sequence types: isinstance(items, Sequence) Or perhaps: isinstance(items, Iterable) # works with numpy arrays Or, equivalent to using len() for type checking, you c
127.
▲
by
saila
5y ago
I’m working on multiple Flask apps currently and I have a lot to say about it, but regarding docs, the main Flask docs might be fine, but the docs for some of the extensions we use are quite bad. Also, there’s nothing about these apps that
128.
▲
by
saila
5y ago
I rarely use the Django Admin except maybe for poking around in the early stages. I’ve never tried to build a full blown app/site with it. I think the right comparison here is to Flask-Admin, though, not Flask itself, and I’ll just say
129.
▲
by
saila
5y ago
I think that is exactly the problem with Flask. Look how simple it is! Except, as you say, you almost always need at least some of that stuff, and wiring it together yourself is/becomes an unholy mess (IME). And getting set up with Dja
130.
▲
by
saila
5y ago
Being able to choose the correct answer in a test environment by process of elimination or similar methodology is a useful skill to have in some non-test circumstances, but it’s not a great test of domain knowledge. Anecdote: I recently did
131.
▲
by
saila
5y ago
I don't see how using len() this way is any different than doing an isinstance check. You're essentially saying, "If this object doesn't respond to len(), raise a TypeError."
132.
▲
by
saila
5y ago
There's nothing paradoxical going on here. When people are oppressed via categorization, it's only natural to embrace that categorization to reduce the stigma and turn it into a source of social and/or political power. It see
133.
▲
by
saila
5y ago
It's seems pretty obvious that they made the video in this style intentionally as an example of weirdcore.
134.
▲
by
saila
5y ago
> The big question is (ignoring spatial audio), can I tell a difference between 16 bit / 44 kHz (CD) and 24 bit / 192 kHz (studio master)? Unless there's something different about the mix (as you note), it's unlikely
135.
▲
by
saila
5y ago
I was looking for an example of using locals() to "fill a data class from kwargs" or something similar to that. The example here doesn't use locals(). That aside, I generally wouldn't use the kwargs approach shown in th
136.
▲
by
saila
5y ago
If you want to do type-checking, I don't think this a good way to do it. As a sibling comment points out, it doesn't work all that well since many objects respond to `len()`. I think it would be preferable to add type annotations
137.
▲
by
saila
5y ago
I personally wouldn't let any usage of locals() through code review, except perhaps in some extremely rare circumstance. Do you have an example of "filling a data class from kwargs"?
138.
▲
by
saila
5y ago
Have you tried building trust ? The tone of your comment here makes me think you haven’t. If you build trust with people, they’ll just tell you things. If you just say they can tell you things, no rational employee will believe that. And
139.
▲
by
saila
5y ago
The first part of the article describes the common situation where we see similarities across projects and effort being duplicated, apparently unnecessarily. To improve understanding and efficiency, we come up with proposals that involve so
140.
▲
by
saila
5y ago
They're useful to some people for accessibility reasons.
141.
▲
by
saila
5y ago
Your reply here comes across as reactionary and rather condescending but really doesn't address anything I said. Nowhere did I say the U.S. is worse than anywhere else nor did I imply perfection exists or even could exist. I was respon
142.
▲
by
saila
5y ago
Modern identity politics in the U.S. seems like the inevitable result of telling people they are "free" but then excluding certain identified groups from social life, jobs, etc. Over time, people will bond around their exclusion t
143.
▲
by
saila
5y ago
I rarely found those kinds of interactions positive. They were often very one-sided where I felt like a captive audience with no easy out. I really don't enjoy talking about my personal life, even benign stuff, with 99.99% of coworkers
144.
▲
by
saila
5y ago
5 x 7 would be a good start. For many jobs, that would probably boost productivity, since a lot of people don't work anywhere near 8 hours a day anyway.
145.
▲
by
saila
5y ago
Centrist by definition or by some objective measure? In the U.S. for example, the "center" is quite conservative compared to some other western nations. If people could vote as they truly wanted without fear of throwing away thei
146.
▲
by
saila
5y ago
This looks like bad coding style to me--trying to cram too much on a line and an overly complex conditional expression. Using the same three lines, you could instead assign each result to a temporary var: x = outputs.get("foo.bar
147.
▲
by
saila
5y ago
I have to bump up my font size a bit and find 120 characters too wide on a 27" monitor where I need to look at multiple things side by side. It's also harder to read even when viewing a single file. IMO, < 80 is ideal where pos
148.
▲
by
saila
5y ago
There was a contingent of what might be called libertarians who supported Bernie but then went hard for Trump and shifted rightward. It doesn't make much sense to me except that they're both nominally anti-establishment (in differ
149.
▲
by
saila
5y ago
Democrats aren't leftist though--they are largely conservative--and a lot of what Rogan espouses fits with modern right-associated narratives.
150.
▲
by
saila
5y ago
What you're framing as an extremely un-nuanced left/right dichotomy is really a power dichotomy. All the companies you're calling "leftist" seem quite conservative to me, regardless of their supposedly liberal venee
More ›