Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
l0b0
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
67 ms
·
751.
▲
by
l0b0
6y ago
I'm pretty sure there are plenty of people living close to London Ontario who refer to it as simply "London", but that's besides the point. We are nowhere near being able to algorithmically take into account everything e
752.
▲
by
l0b0
6y ago
There's a lot of context that goes into this question. Almost all grown-ups understand time zones at least enough to know that somewhere far away (at the other side of the equator or longitudinally) is likely to have a different time o
753.
▲
by
l0b0
6y ago
Trying to create a mouse mat from tōtara wood, by cutting it into thin diamonds and gluing them together. It's been tricky to get the slices properly flat with the tools at my disposal, but it could be an interesting result.
754.
▲
by
l0b0
6y ago
I think the GP comment demonstrates that it very likely will stop working very shortly if left on the open web.
755.
▲
by
l0b0
6y ago
Saying that some piece of software is "bad" (or any synonym of "bad") of course isn't helping anyone. It's demoralizing and counterproductive. I suspect a lot of the bad blood is because so much of the software
756.
▲
by
l0b0
6y ago
Reminds me of The Server™ at my last job, built in a hurry using Node.js 0.something to talk to IoT devices in people's homes. It was amazing how well it scaled once we had time to refactor and test everything thoroughly. Everything wa
757.
▲
by
l0b0
6y ago
I don't think OP argued that this was a bad thing. It's just a quick exploration of the use of metaphors, if anything showing just how prevalent and effective they are. I've barely started reading Douglas Hofstadter, but isn&
758.
▲
by
l0b0
6y ago
I once had the idea for a tool which would print the next few crontab runs, to make sure they were staggered correctly. Asked on Stack Overflow how to do it ( https://unix.stackexchange.com/q/36307/3645 ), and someo
759.
▲
by
l0b0
6y ago
The only endpoint to ever do anywhere near as little work as this example would be the heartbeat. Most of the cost comes from a combination of a bunch of things other than simply fetching some data from a local device: - Web-anything is f
760.
▲
by
l0b0
6y ago
Our minds are enormously flawed: - There's a certain fidelity to any memory which you just can't get beyond, and the vast majority of memories are nowhere near that. - Our memories warp and decay with time. - Even our most logical
761.
▲
by
l0b0
6y ago
There is still a huge difference in the amount of complexity in a solution and the amount of complexity in the computer system implementing that solution. In extremely simple cases, such as implementing a mathematical formula, the solution
762.
▲
by
l0b0
7y ago
** is not "expanded to all files and directories in the children directories, with a depth limit of 1." It's hard to see using `ls` because `ls` doesn't just list its arguments, it also lists files inside its
763.
▲
by
l0b0
7y ago
"shirt -stripes" seems to work on google.com at least, even though they and others like DDG have been getting really bad at ignoring "-foo" terms recently.
764.
▲
by
l0b0
7y ago
This was always one of the biggest failings of open source software. Most communities in my experience absolutely explode when anyone suggests an UI change, even if it's to bring the application in line with well-known usability, acces
765.
▲
by
l0b0
7y ago
Weird article: > The idea is that programmers must fight the natural tendency to treat their programs as part of themselves, and therefore to reject all criticism. This seems to suggest that the author believes people have a natural tend
766.
▲
by
l0b0
7y ago
15 years ago I might've agreed with this. The current project I'm working on checks many of OP's boxes: Black, isort, flake8, mypy (although even with a strict configuration we've not had to use generic types yet), pre-c
767.
▲
by
l0b0
7y ago
For sure! Black and isort complement each other in formatting your code, and both have flags to check whether they would change anything in your code. You can do the former either as a script or Makefile target, and the latter in CI to ve
768.
▲
by
l0b0
7y ago
Black, flake8, isort and mypy (with several type strengthening flags) have together ensured that Python editing and code reviews are an absolute breeze. The structure basically disappears, and all that I ever need to concentrate on is the a
769.
▲
by
l0b0
7y ago
Some of my favourite diffs were related to linters: - Linting files different from origin/master in a pre-commit hook. - Linting everything in CI. - Making the linter rules stricter (mypy does a great job of having several orthogonal s
770.
▲
by
l0b0
7y ago
Agreed except for the part about refactoring: > if management believes them and gives them a free hand, then sprint velocity goes down by 80% and bug counts go up by 90% as stuff randomly breaks in the refactor. 5x less velocity and 10x
771.
▲
by
l0b0
7y ago
I really wish there still existed a search engine which would absolutely, without reservation of any sort, simply respect the quote and minus operators. I searched both DDG and Google this morning for something with a minus operator, and th
772.
▲
by
l0b0
7y ago
I understand that it makes sense intuitively, but how do you justify it to yourself mathematically? As far as I can tell there is nothing in the original formulation that explains why it would scale that way.
773.
▲
by
l0b0
7y ago
There's also cognitive bias bias - prematurely jumping to the conclusion that some opinion is simply based on cognitive bias, and should therefore be dismissed or contradicted. Basically, it's good to use awareness of cognitive
774.
▲
by
l0b0
7y ago
Good idea, but it's not intuitive why the original problem is equivalent to the host revealing N-2 (98) goats rather than, say, (N-2)/2 (49) or 1.
775.
▲
by
l0b0
7y ago
Forums everywhere end up with their own set of memes which are very effective thought-terminators. It's hard to stay engaged in serious debate in the first place, and even a couple people are usually enough to derail a discussion among
776.
▲
by
l0b0
7y ago
I vaguely remember the exact same sentiment being expressed for both pip and Pipenv. The project I'm working on is currently migrating from Pipenv to Poetry, and while it's an improvement I have no hope that the fifth generation (
777.
▲
by
l0b0
7y ago
I always thought that was a simple fiction to stop selfish hoarders from giving themselves a (randomly chosen) 10% better chance of staying healthy as opposed to people who actually need a mask to have a 200% better chance of not developing
778.
▲
by
l0b0
7y ago
You can improve that situation somewhat by starting scripts with `set -o errexit -o noclobber -o nounset -o pipefail` and `shopt -s failglob` to fail fast.
779.
▲
by
l0b0
7y ago
As someone who used PowerShell for a year and has used Bash for 10+, PowerShell is much less scary than Bash. The scariest thing about PowerShell is .NET, which (at least 8 years ago or so, so cue someone correcting that below) had extensiv
780.
▲
by
l0b0
7y ago
That's a great metaphor for language smells! Some more anecdotes: - Python shepherds you into using list comprehensions, even when it's almost always premature optimization and much harder to read than a loop. As a language smell
More ›