Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rcfox
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
211.
▲
by
rcfox
7y ago
Really? I would have figured they'd just do something like: class OrderedDict(dict): pass (Plus a little bit of API shimming.)
212.
▲
by
rcfox
7y ago
I still see dict ordering as an implementation detail; not a technical one but a descriptive one. If you want to rely on insertion order, use collections.OrderedDict. It communicates your intention far better, and there should be no overhea
213.
▲
by
rcfox
7y ago
> whatever was bound to the configured "meta control" Be careful with your terminology, meta is a key too. https://en.wikipedia.org/wiki/Meta_key
214.
▲
by
rcfox
7y ago
That reminds me of the classic Bash.org quote about vi: http://bash.org/?795779
215.
▲
by
rcfox
7y ago
I feel like you just read the headline and not the email in the body. The email quoted is all about their pay-per-use model.
216.
▲
by
rcfox
7y ago
One reason is that volunteers in these moderation positions begin to see it as a symbol of status and the power goes to their heads. About this time last year, Digital Extremes had to pretty much fire all of the Warframe chat moderators for
217.
▲
by
rcfox
7y ago
Relying on the filesystem has its own drawbacks. If you scale horizontally, the local filesystem might not have the file you created because it's running on a different server. Mounting storage across multiple servers will introduce bo
218.
▲
by
rcfox
7y ago
It can be approximated with a single-item `oneof` field. It's ugly and boilerplatey, but at least it's binary-compatible with proto2 and gives the original behaviour. My main problem with proto2 these days is that I needed to inte
219.
▲
by
rcfox
7y ago
One argument I could think of is that it can take a long time for typical users to upgrade their browsers. If they've stopped development on the old version, then open sourcing it could help people find vulnerabilities that will never
220.
▲
by
rcfox
7y ago
> I thought it was poor form to have a lot of code in headers. It is mostly because it makes it harder to reuse compiled objects when you make a change and rebuild. For a drop-in library that you're probably not editing, this should
221.
▲
by
rcfox
7y ago
I wonder if you could add a CSS rule to set the background colour of images to white?
222.
▲
by
rcfox
7y ago
Unless this job was a study on sleep deprivation, how could they possibly believe they had the right to do this?
223.
▲
by
rcfox
7y ago
Would you have an adult new grad lead a team to build a product around an op-amp?
224.
▲
by
rcfox
7y ago
That seems like it would be confusing. Imagine trying to track down the source of behaviour that no longer exists in your code...
225.
▲
by
rcfox
7y ago
Not sure about most excited, but I am looking forward to setting PYTHONCACHEPREFIX to a location that isn't in a volume mounted into my Docker container for development.
226.
▲
by
rcfox
7y ago
It did! https://docs.python.org/3/library/string.html#string.Formatt...
227.
▲
by
rcfox
7y ago
Who is Galaxy Brain?
228.
▲
by
rcfox
7y ago
Oh man, for some reason I thought pytest was a synonym for Python's unittest module.
229.
▲
by
rcfox
7y ago
I like the idea, but I think I would be more comfortable with it generating test files that I could keep beside my other tests. Also, `auto_pytest_magic` doesn't seem to exist. ImportError: cannot import name 'auto_pytest_ma
230.
▲
by
rcfox
7y ago
Actually, I've been using Ritual daily for the past few years in Toronto and it's been pretty interesting to see new small restaurants pop up around my home and office.
231.
▲
by
rcfox
7y ago
I read the title that way too, and the article almost seems like it's reinforcing that point until you get to the end. Kind of a weird almost unintentional form of clickbait.
232.
▲
by
rcfox
7y ago
In Docker terminology, that would be a service?
233.
▲
by
rcfox
7y ago
I've received a few myself and hit the spam button on the calendar events. I'd hope you are looking at that bucket too.
234.
▲
by
rcfox
7y ago
Doesn't ADD do the download unconditionally but only invalidate the cache if the contents change? The only good use for ADD that I've found is for invalidating git clones from GitHub: ADD https://api.github.com
235.
▲
by
rcfox
7y ago
What happens to orphaned gems? It seems like someone could make the case for getting ownership of them much easier than if you kept ownership and added a loud deprecation warning.
236.
▲
by
rcfox
7y ago
That's a good point. Could indicate a targeted attack?
237.
▲
by
rcfox
7y ago
Why bother giving a take-home test if you don't trust the results? Why compare the results to work done in a completely different medium with no opportunity to iterate on the output, take a break or work comfortably? If you assign a ta
238.
▲
by
rcfox
7y ago
I once interviewed at a company that had me write a couple styles of matrix multiplication in C as a take home test, as well as give a one-page description of a project I had done. The project I described heavily involved graph searches. Th
239.
▲
by
rcfox
7y ago
It's not a perfect solution, but you could perhaps hack it with @overload to say that the "str" version returns NoReturn.
240.
▲
by
rcfox
7y ago
> Item: If you allocate all of the RAM on the machine, you have screwed the kernel out of buffer cache it sorely needs. Back off. Why not just permanently allocate enough RAM for the kernel? If I have 16GB of RAM but the kernel needs 1GB
More ›