Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
MrJohz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
511.
▲
by
MrJohz
2y ago
The problem here is orthogonal to bundling, unless I've missed something in the discussion. You can have a Node/NPM-style package manager without doing bundling, and you can bundle together a Deno project if you wanted. Bundling i
512.
▲
by
MrJohz
2y ago
Possibly they wanted it to stop near their destination somewhere and let them out, but instead it kept going. Therefore, they need to get out at the next place it happened to stop (which in this case was a stop light). I have no experience
513.
▲
by
MrJohz
2y ago
Caveat: I haven't used Gitlab in a couple of years, but before that, part of my role was to set up Gitlab CI systems for different projects, so I got a lot of hands-on experience back then. Gitlab CI is 3-4 different systems on top of
514.
▲
by
MrJohz
2y ago
The article makes it fairly clear they this is mainly a kind of nerd-sniping - there are better solutions for practical purposes, but the author wanted to explore a different approach and learn a bit about syscall interception along the way
515.
▲
by
MrJohz
2y ago
I think I feel a bit like your friend: web development is not supposed to hurt that much, and it usually only happens if you start doing things in obscure ways, or unusual environments, or whatever else. Unfortunately, when you're just
516.
▲
by
MrJohz
2y ago
A lot of IDEs these days offer a three-way-merge interface that massively improves on the conflict resolution process. Different tools have different interfaces, but generally you have three panes visible: one showing the diff original->
517.
▲
by
MrJohz
2y ago
Yeah, this was mostly my experience. The Zed editor was fast, but it just felt like it wasn't as good as other editors. For me, the version control integration was particularly poor - it shows some line information, but diffing, blame,
518.
▲
by
MrJohz
2y ago
Can you describe what issues you've had with NPM that you haven't had with Poetry? In principle, they should be doing the same thing - both use a per-package environment and a lockfile, allow you to run commands in the environment
519.
▲
by
MrJohz
2y ago
I've seen people use that setup but not freeze the dependencies and so have errors in production that didn't exist in development and waste days trying to figure out what was going on. I've seen people use this setup and then
520.
▲
by
MrJohz
2y ago
I get that if I'm truly mixing one and the other, but if I'm consistently using tabs for indentation, I mostly want them to be invisible - I don't want visual noise on every line. I guess if the syntax highlighting makes them
521.
▲
by
MrJohz
2y ago
For the SQL case, you can just use a different formatting that puts aligned items into blocks, something like: SELECT this_column, that_column FROM tablename WHERE this_column = 1 AND that_column IS N
522.
▲
by
MrJohz
2y ago
I'm really sceptical of the idea of mixing two different invisible characters in the same file, which is why the tabs+spaces idea makes me feel slightly icky. But another option is just not using alignment spaces at all - if you want t
523.
▲
by
MrJohz
2y ago
I recommend Prettier over ESLint - Prettier tends to produce more consistent results and is a lot faster (because it's doing less work). Moreover, ESLint are deprecating the styling rules at the moment (although they'll be made av
524.
▲
by
MrJohz
2y ago
One great piece of advice that I heard is "it takes two to miscommunicate". Communication is fundamentally two-way, and if there is miscommunication happening, either you or the other person needs to figure out how to communicate
525.
▲
Why Test?
(jonathan-frere.com)
3 points
by
MrJohz
2y ago
|
0 comments
526.
▲
by
MrJohz
2y ago
That's actually a really clever mechanism. Although it'll make the common case (basic string interpolation, no need for security concerns) more complicated unless a lot of APIs support a StringTemplate overload.
527.
▲
by
MrJohz
2y ago
To a certain extent I agree, but I think you're missing a lot of nuance there. Boeing, for example, have built a lot of planes that fly as expected. The problem is the ones they built that don't: where bits fall off them or where
528.
▲
by
MrJohz
2y ago
I can't do France and the UK, but I can do Germany and the UK. There's definitely similarities, but there's a lot of differences as well, and the differences are often important. For example, the longer I rent in Germany, the
529.
▲
by
MrJohz
2y ago
I think you're both right, but I think you're talking about different kinds of knowledge transfer. Imagine, as a simple model of expertise, three different levels of knowledge in a subject: beginner, intermediate, and advanced. In
530.
▲
by
MrJohz
2y ago
That's true, this is the example that most people will run into in practice. But the print example is useful because it shows what's going on more explicitly: the default argument gets evaluated as part of the function's defi
531.
▲
by
MrJohz
2y ago
This has been a source of bugs since long before ChatGPT. I suspect Python tutorials mention it so often because it's such a surprising feature and causes so much confusion. I've been using Python for fifteen years, and it'
532.
▲
by
MrJohz
2y ago
It is correct, it's one of the most surprising things about Python and it causes a number of mistakes, even for experts. The easiest way to see this is by running something like this and seeing what gets printed out and when: pri
533.
▲
by
MrJohz
2y ago
> One of Words big issues is that very few people know how to use it. It's such a massive program, with an absolutely insane feature set. This seems equally applicable to LaTeX, though, at least once you start adding in a handful of
534.
▲
by
MrJohz
2y ago
Interestingly, they've found the opposite effect in a number of places in Europe, which suggests that the Seattle homeless population really are quite different, or that there's something odd in how these sorts of policies are bei
535.
▲
by
MrJohz
2y ago
But how do you do PBT here without having a known-correct algorithm available? Because that scenario is seldom the case in practice.
536.
▲
by
MrJohz
2y ago
Looks good now!
537.
▲
by
MrJohz
2y ago
It's specifically when I click on the demo workouts link in your post - when I click the main link to your site, everything seems to work fine (although I haven't finished the onboarding process). When I click on that on my phone
538.
▲
by
MrJohz
2y ago
Unfortunately in Python, integers have no fixed maximum size and can grow indefinitely, so your algorithm would need to be long enough to cover all the numbers that can conceivably fit in a computer's memory. I guess there's still
539.
▲
by
MrJohz
2y ago
There is no correct solution here. A classroom is not a test environment. The goal is to learn, and the point of the exercises is to teach a specific concept. If a student finds a different way around the problem, that may show that they&#x
540.
▲
by
MrJohz
2y ago
I'm not sure about the property-based testing thing. In this example, yes, you can easily write a test case that compares against the string-based algorithm. But in general, this is one of the biggest weaknesses of PBT, which is that y
More ›