Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
MrJohz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
691.
▲
by
MrJohz
3y ago
Are people really struggling at that level, though? It has never been easier to write a complex page with minimal Javascript - there are more and more HTML elements that do what you expect (expandos and modals as some recent examples), Java
692.
▲
by
MrJohz
3y ago
I find I'm in the opposite position - I would rather the date picker is not consistent, because different date pickers have different purposes. The date picker I want to use to put in my date of birth is different to the one I want to
693.
▲
by
MrJohz
3y ago
I'm not sure that's always the case — we don't expect assembly to be a high-level language after all! The more specific and batteries-included the browser becomes, the harder it is to go off the beaten track. My standard ex
694.
▲
by
MrJohz
3y ago
Tailwind doesn't exist without a build step (at least since v2) — the whole point of Tailwind is that it is a build tool, an alternative syntax for writing CSS. There's a kind of development version where that build step runs in
695.
▲
by
MrJohz
3y ago
I find Rust is really effective in this regard. From my understanding of the capabilities of mli files, Rust's visibility modifiers are even more powerful in terms of effectively hiding implementation details and maintaining invariants
696.
▲
by
MrJohz
3y ago
> A lot of beginner material uses List to introduce algebraic data types, inductive and equational reasoning - but you don't have to use them. In fact, the standard library encourages Seq instead over List. I have repeatedly found t
697.
▲
by
MrJohz
3y ago
That's an interesting decision, because it's the reverse of one of the big complaints about Typescript: that it only works up to the API boundary, and doesn't include external data sources (unless you use libraries like Zod t
698.
▲
by
MrJohz
3y ago
I'd go a step further, and suggest that most languages are able to embed some level of DSL, although you might not be able to reach quite the expressiveness that you had in mind. Generally a combination of block closures and being able
699.
▲
by
MrJohz
3y ago
I use it fairly extensively whenever I have code like <Cpt>{props.children}</Cpt> (i.e. whenever the only thing I'm doing with the children prop is passing it to another component. This comes up pretty often with conte
700.
▲
by
MrJohz
3y ago
Web components solve encapsulation of structure, style, and behaviour within a single component, but they don't solve the larger state problems, because web components don't come with any sort of state management beyond what you c
701.
▲
by
MrJohz
3y ago
One of the things I found interesting about this paper is that they find that there were more contributors in Rust projects. The first headline I saw posted from this paper was that first time contributors to Rust projects are 70× less lik
702.
▲
by
MrJohz
3y ago
It comes down a lot to your definition of responsibility. Yes, those teachers were adults who could make their own decisions. But sometimes you can make all the decisions that you see as being the best and most informed at the time you ma
703.
▲
by
MrJohz
3y ago
I'd love for you to correct me on this, but I believe this is nonsense. The only places that discuss this are very dubious articles from infotainment-style blogs, and I can't find anything to back this up on Wikipedia, let alone a
704.
▲
by
MrJohz
3y ago
I agree that you don't need the default colours, and in fairness this is one of the things that Tailwind fairly explicitly encourages. That said, I also used to use "primary"/"secondary"/etc names for the
705.
▲
by
MrJohz
3y ago
I think that's also a valid view of the problem (i.e. the further away from pure Python you get, the more complex and unclear things are). But I also think that's just the view from the "library developers" perspective
706.
▲
by
MrJohz
3y ago
Unfortunately no, the problem here is that you're probably going to need a lot of compiled extensions, and some of these extensions are going to be running on your GPU (especially if you're in the ML world, but also more generally
707.
▲
by
MrJohz
3y ago
My impression is that there's lots of different niches that have developed, each with their own needs, and trying to unify them is a mess. If you're putting something like a web app or something else that will be bundled and distr
708.
▲
by
MrJohz
3y ago
I think the situation with TS has improved, but yes, I only really use it with a bundler where that isn't an issue - in this case, Vite. But typically Vite does most of the things you'll need out of the box, and I find I rarely ne
709.
▲
by
MrJohz
3y ago
I'm not quite sure I'd go as far as calling React minimal, but yeah, there are definitely fairly light options here. Mithril is pretty classic as a "bare minimum framework" option. Vue can be used without any bundling&#x
710.
▲
by
MrJohz
3y ago
And of course, much the same thing is true for the frontend as well. Most of the time, the worst takes off frontend excess or backend complexity are being told by people who aren't working in field, and just looking in from outside. Re
711.
▲
by
MrJohz
3y ago
Wow, that discussion does not warm me at all to OpenBSD. A lot of those responses seemed way more abrasive than they needed to be. It's interesting, though, that at least initially, the only examples of memory-safe languages were ones
712.
▲
by
MrJohz
3y ago
Or even before election day approaches - how many by elections are we on now?
713.
▲
by
MrJohz
3y ago
The article kind of explains it, but Dick Whittington is mainly a folklore/pantomime[1] character who journeys to London with his cat, and together they solve a big rat problem there and become heroes of the town. A fairy usually turns
714.
▲
by
MrJohz
3y ago
The author has written a lot (1000+) of libraries, and earned a certain amount of controversy for how they manage them, and whether all those packages are necessary. I think the most recent controversy was that they switched all of their pa
715.
▲
by
MrJohz
3y ago
Rust has fairly strong backwards-compatibility guarantees, so that sort of claim surprises me. Can you give an example of the code you wrote four months ago that won't compile using the latest stable toolchain?
716.
▲
by
MrJohz
3y ago
I guess what I don't quite understand in your comment is why these two categories of "web app" and "document" are so fundamental, in the sense that we can divide all web content into either document or web app. Is t
717.
▲
by
MrJohz
3y ago
I strongly disagree with the idea that the interactive elements are only there to "spark joy" - in both of the cases you mentioned, the interactive elements are pretty fundamental. Their purpose is to let you get somewhat hands-on
718.
▲
by
MrJohz
3y ago
> Rust makes the caller allocate the buffer for reads. I don't think this is true in this context. The buffer initially will have a capacity of 0, and will grow to fit the available data, so that as read_to_end is inserting data, th
719.
▲
by
MrJohz
3y ago
> In particular the political process should work in reverse: people voice issues, and their governing bodies come up with viable solutions. That's their job. I get what you mean but the governing bodies of the people are the peop
720.
▲
by
MrJohz
3y ago
I don't know why you're jumping to nuclear weapons as your analogy when gun control laws in other countries make a far better comparison point. Australia is probably a good example here: they have urban and suburban centres in the
More ›