Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
MrJohz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
541.
▲
by
MrJohz
2y ago
And more importantly, because it sidesteps the interesting pedagogy around edge cases and testing that the instructor is interested in.
542.
▲
by
MrJohz
2y ago
It looks like there's slightly too much padding and it doesn't quite fit on my phone's screen - it seems designed for a tablet-sized device, but everything I see on the screen would fit very well on a phone screen. Indeed, if
543.
▲
by
MrJohz
2y ago
That seems like it would make sense though, wouldn't it? To it's important information that you, the patient, need to understand before you can make an informed decision about whether or not the medicine being given to you is the
544.
▲
by
MrJohz
2y ago
> Even across guman languages we see variation in thought coming from what language can express. Only to a fairly limited extent. For example, there is some evidence that senses like colour and direction have a connection to language, bu
545.
▲
by
MrJohz
2y ago
The fence is about all things that you might want to change, whether or not they're still useful. Both of the characters in Chesterton's parable are reformers, and the assumption is still that the goal should be reform. The questi
546.
▲
by
MrJohz
2y ago
At least in the UK, where we also learned these sorts of arithmetic tricks, we still learned the "harder ways". The point of these techniques wasn't to replace long multiplication or something, but more as shortcuts so we did
547.
▲
by
MrJohz
2y ago
Rhino is a very uncommon engine though. It has its niche, but if you're developing for simpler engines like that, then you typically know that in advance and know what considerations you're going to need to make for that. When i
548.
▲
by
MrJohz
2y ago
Can you write functions and classes in Python that roughly mimic the DSL you're aiming for? This is often called an embedded DSL, and it's a great technique for allowing developers to work with domain objects inside a language tha
549.
▲
by
MrJohz
2y ago
But even then, there's degrees of knowledge and familiarity within that. For example, in Python, is using the `else` block of a for-loop clever? It's a part of the language that I'm familiar with - in principle it's just
550.
▲
by
MrJohz
2y ago
I really disagree with this. Touchscreens are not necessarily the best input device for any one task, but they are the second best input device for pretty much all tasks. They are very versatile - you don't need to define all your inpu
551.
▲
by
MrJohz
2y ago
It's the same guy who wrote the "I lied to the CTO" post recently, which has a similar air of "this is a toxic workplace and I hope I never work with any of these people". There's also something about the style
552.
▲
by
MrJohz
2y ago
The point is that Typescript does have nominal typing. It's used if a class is declared with any kind of private member, and for `unique symbol`s. So both in the case I showed, and the case shown in the article, we are using true n
553.
▲
by
MrJohz
2y ago
You can fix that fairly easily using private variables: class A { private value: number } class B { private value: number } const x: A = new B() // error You can also use the new Javascript private syntax (`
554.
▲
by
MrJohz
2y ago
That's quite surprising to me. As someone who writes a lot of Javascript, I usually find it easiest to read with this syntax than without it, and I generally recommend to my team that they use the shorthand where they can. This is beca
555.
▲
by
MrJohz
2y ago
> Imagine a world where you just had drawing and input handling primitives on the web. Good news! We do have those primitives! The canvas element can - and is - used for drawing, and input events are fairly easy to manage. Larger project
556.
▲
by
MrJohz
2y ago
One of the wisest pieces of advice my mother gave me growing up was always to think about what you want out of an interaction. Before you send a text, prepare an email, write a comment, argue a point, etc: what is your goal, and what's
557.
▲
by
MrJohz
2y ago
Do you have a source for that? I've heard that claim before, and I can completely believe it, but I've never seen any real evidence for either side of the story, just a lot of guesses about how the system might have worked.
558.
▲
by
MrJohz
2y ago
But can't you do .selector:not(:last-child) ? Or .selector + .selector ? Both of these seem clearer than adding an extra property just to handle this case. Like, I understand the situation, I've been in that place plenty of times.
559.
▲
by
MrJohz
2y ago
I don't know that I really get the point of margin-trim - there are already plenty of other, arguably clearer ways of avoiding padding at the start and end of an element - using flexbox and the gap property, using :not, even the classi
560.
▲
by
MrJohz
2y ago
No worries! Yeah, the GPL isn't necessarily as strong as it could be, but that's deliberate: the GPL has a very specific and somewhat limited purpose, and is designed for that purpose only. The principle beyond "Free Software
561.
▲
by
MrJohz
2y ago
The FSF did not add the license to your source code, though. You did that (or another contributor), and the FSF gave you permission to use the text of their license. Adding the license does not assign copyright to the FSF.
562.
▲
by
MrJohz
2y ago
And if it was completely deliberate but they simply regretted the decision, then they would not be able to revoke the licenses they'd already given out, i.e. that version would be essentially out in the wild and under GPL forever. But
563.
▲
by
MrJohz
2y ago
I think you may also be misunderstanding the GPL here, though. If you obtain a copy of a project under the constraints of a GPL license, then, if you distribute that project, or a secondary project built using that project, you must also pr
564.
▲
by
MrJohz
3y ago
As someone who has been developing frontend applications since the jQuery era, it would have been nice to see more explanation of why each new innovation happened. There's some of that for things like GraphQL, but to me the biggest and
565.
▲
by
MrJohz
3y ago
The assumption here is that the classical categories of test (integration, unit, e2e, etc) are meaningfully different in the same way that a hammer is meaningfully different from a saw. I don't think that assumption holds up - or at le
566.
▲
by
MrJohz
3y ago
That's an argument for being more careful with floating point operations, and perhaps not using them as a default numeric value, but it's not what Steele is talking about there. After all `1/10` in Python is still pretty clos
567.
▲
by
MrJohz
3y ago
The `sorted_list = my_list.sort()` is a bit of an odd case, though, because, as you've written it, `sorted_list` looks like a new list, even though `sort` does an in-place sort. (Javascript has exactly this problem, where `.sort` mutat
568.
▲
by
MrJohz
3y ago
In a system where those things can't be taken for granted: yes. That's why people talk so positively about job creation, and we praise job creators. It's also why we shame and indeed ban companies that don't do those thi
569.
▲
by
MrJohz
3y ago
The moral issue comes because these jobs are tied to people's livelihoods and ability to provide essentials like food, housing, healthcare, etc for themselves and their families.
570.
▲
by
MrJohz
3y ago
Then you've got mixed tabs and spaces, which seems like it's going to inevitably lead to confusion when someone who isn't aware of the convention starts to make changes. Two different invisible characters in a single file is
More ›