Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
MrJohz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
361.
▲
by
MrJohz
2y ago
Sure, but only some of the unit tests are about values. Others, at least in my experience, are any handing various aspects of the implied types of values, and those can largely be removed. Moreover, a good type system can also force the val
362.
▲
by
MrJohz
2y ago
One of the big advantages of Rust's type system is that, if you decide you want to change something (add a parameter, give a type a lifetime, rewrite an entire module), you can just do that, and then follow the errors until they'r
363.
▲
by
MrJohz
2y ago
I'm not a business person, so take this with a grain of salt, but my understanding is that this is common for a lot of smaller startups and tech companies. If you can raise funds outside of revenue (i.e. outside of directly selling you
364.
▲
by
MrJohz
2y ago
It's not about "fixing" it, it's about choosing what you want to be consistent with. You can either be consistent with the DOM API (e.g. `document.getElementById().className = "hello"`) or with HTML (i.e. `cla
365.
▲
by
MrJohz
2y ago
In fairness, `className` makes a lot of sense given that the native DOM uses the `className` attribute rather than `class`. In that sense, it's a consistent choice, just a consistent choice with the DOM rather than with HTML. The bigg
366.
▲
by
MrJohz
2y ago
I've wanted something like this for a while, although I've not looked into it much. That said, the snapshot search either isn't working, or isn't doing what I'd expect it to do. If I search for `fsf`, the snapshot
367.
▲
by
MrJohz
2y ago
I could believe that. Plus, because both of those are more dynamic, they're going to have to do more work per request anyway, meaning the effects of scraping are exacerbated.
368.
▲
by
MrJohz
2y ago
Is this really more friction? I can very easily imagine creating an alias that runs `git push && gh signoff` for the cases where I know the tests have passed, and I can equally easily imagine running that alias and forgetting that
369.
▲
by
MrJohz
2y ago
It typically takes me maybe an hour to update my dependencies? I run type checks and e2e tests as part of that to have a relatively high degree of confidence that nothing has been broken. Also splitting the change into multiple steps (i.e.
370.
▲
by
MrJohz
2y ago
Surely if this is about creating a step in a checklist, all you need is a box to tick in the PR template, and that would be an even simpler version of this, requiring far fewer moving parts and being easier to use. I think part of the criti
371.
▲
by
MrJohz
2y ago
Fwiw, I run a pretty tiny site and see relatively minimal traffic coming from bots. Most of the bot traffic, when it appears, is vulnerability scanners (the /wp-admin/ requests on a static site), and has little impact on my overa
372.
▲
by
MrJohz
2y ago
Well, there's libraries like this one, which is the point here. And even in JS, Temporal won't be available broadly for a good while yet (it will probably be rolling out in Firefox in a couple of months' time, but in Safari i
373.
▲
by
MrJohz
2y ago
I've definitely seen this in real life, but recently I've started trying to actually watch when people use these interfaces, and they usually seem very slow - lots of hesitation, lots of mistakes, lots of repetition to do very sim
374.
▲
by
MrJohz
2y ago
The Date example is possibly an even better example of why dependencies that get hard problems right are so important. If Python's datetime library is bad, Date is truly terrible. Every time I have used it I have regretted it long term
375.
▲
by
MrJohz
2y ago
The issue isn't that the comparison should be valid, the issue is that datetimes should not be dates. At best, there is a "has a" relationship, but there shouldn't be an "is a" relationship.
376.
▲
by
MrJohz
2y ago
No, it's more like a type reflection system, at least as I understand it. You can use it to parse types, but you can also do a lot more than that.
377.
▲
by
MrJohz
2y ago
The man was deported due to his tattoo. His tattoo was of an autism awareness ribbon. The man was deported due to his autism awareness ribbon tattoo. The US government doesn't seem to be specifically targeting autism awareness, but it
378.
▲
by
MrJohz
2y ago
Assume for the sake of argument that it is not obvious: can you clarify that statement?
379.
▲
by
MrJohz
2y ago
Apparently this is an EU/US thing, because here overtime and on-call is always paid extra (as is essentially anything beyond your usual 40 hrs/week, or whatever you've got in your contract). That said, I also see very few job
380.
▲
by
MrJohz
2y ago
This has the advantage compared to OP's solution that it will also work if JS doesn't load correctly (as opposed to if it is blocked/deliberately not loaded). You can add this line to the end of the main JS file that you
381.
▲
by
MrJohz
2y ago
Python 3 is not that different from Python 2. Yes, if you're a mindless interpreter designed to specifically parse and evaluate Python 2 code, you're going to have a hard time with Python 3. Thankfully, software developers are h
382.
▲
by
MrJohz
2y ago
Ah, if that's the case I can understand the argument a bit better, but maybe the article should then be titled "the insanity of being in one of the best-paid professions in one of the richest countries in the world, and still havi
383.
▲
by
MrJohz
2y ago
That does not sound like normal work for a software engineer. That sounds more like you have found an unusually bad workplace. Why are you changing out tools every few months? Why are you working overtime for free? Why is there only one per
384.
▲
by
MrJohz
2y ago
Fwiw, I am one of the other two people with Firefox on Android and am not having this issue, so it might be a question of screen size rather than browser?
385.
▲
by
MrJohz
2y ago
This is their explicit platform. Trump's presidential campaign officially ran on the basis of "Agenda 47", which clearly sets out their goals and aims. It includes dismantling the basic structures of democracy (in the form
386.
▲
by
MrJohz
2y ago
Sure, but in the US, the choices right now are between a party that you might not fully agree with, and a party whose explicit platform is to strip fundamental rights away from women, LGBTQ people, and other minorities, all while dismantlin
387.
▲
by
MrJohz
2y ago
> TypeScript is not "real" static typing in the same sense as Go, Rust, C#; the type information disappears the moment you build it. The type information in both Rust and Go disappears the moment you build it. The generated ass
388.
▲
by
MrJohz
2y ago
I also grew up in the UK, and yes people do, what are you talking about? Here is the Standard calling her one of the Queens of England. It does later point out that she was technically the Queen of the United Kingdom, but the headline is co
389.
▲
by
MrJohz
2y ago
The compose key, for those who use it, also makes it very easy to do em/en dashes, and I use them quite regularly as a result.
390.
▲
by
MrJohz
2y ago
In my experience, people write overly short commit messages when they're writing too many commit messages. The solution is usually not to teach people to write better commit messages (although that's also good), but to teach them
More ›