Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
MrJohz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
271.
▲
by
MrJohz
1y ago
Hmm, I really don't like the idea that you would have these kinds of directives as specialised tools, rather than having a single standard approach. From experience, it's often hard to explain the differences between these sorts o
272.
▲
by
MrJohz
1y ago
I'm sorry, I don't think I'm being clear enough because we keep on talking past each other here.
273.
▲
by
MrJohz
1y ago
> Many huge web applications like Photoshop, Reddit, and parts of YouTube use template re-rendering. Those examples do not seem like ringing endorsements of this technique! For basic functionality - when the template stays the same - I c
274.
▲
by
MrJohz
1y ago
The syntax exists, yes, but the intention of the proposal seems to be that users will use standard JS conditional/looping constructs, and even pushes this as one of the reasons that this style of template works so well here. But these
275.
▲
by
MrJohz
1y ago
My biggest criticism of this design is that the author doesn't seem to have explored how Svelte, Vue Vapor or SolidJS work at all. The design seems largely based on the idea that rendering the template is a cheap operation, and that it
276.
▲
by
MrJohz
1y ago
Honestly, if you're doing something so small, even pico-args is a lot more than you need. Just use lexopt, and you get a very simple match-based DSL for defining your arguments, that even neatly sidesteps the limitations provided in pi
277.
▲
by
MrJohz
1y ago
Neither of those libraries provide cross-shell completions, or coloured output, or "did you mean" suggestions, or even just command aliases, all of which I would consider basic features in a modern CLI. So you need to invest more
278.
▲
by
MrJohz
1y ago
It's not just market mechanisms that ensure risky startups get funded. It's also decisions in government about how to tax those sorts of companies and investments, what sort of writeoffs they have available to them, what safety n
279.
▲
by
MrJohz
1y ago
It comes back to the Stephen Jay Gould quote: > I am, somehow, less interested in the weight and convolutions of Einstein’s brain than in the near certainty that people of equal talent have lived and died in cotton fields and sweatshops.
280.
▲
by
MrJohz
1y ago
Does society benefit from there being lots of lottery winners from a variety of backgrounds? I think there is a big difference between having a thriving arts landscape and having a thriving landscape of people who won the lottery.
281.
▲
by
MrJohz
1y ago
Class in this context is referring to the actors' backgrounds, i.e. parental incomes, rather than their own income. There is an issue if you have to be born to a rich family in order to take on a career like acting, and right now, at l
282.
▲
by
MrJohz
1y ago
Is Germany lecturing anyone else here? I think I'm missing some context to your comment.
283.
▲
by
MrJohz
1y ago
As someone living in Germany, that philosophy of "we don't have the right to intervene or say anything" is definitely embedded in the culture here. Obviously there are plenty of people who don't follow this philosophy,
284.
▲
by
MrJohz
1y ago
The article does link to the DOM part proposal, which would be one useful low-level API. It wouldn't work so well for VDOM-based frameworks, but for other frameworks it could simplify how they work and provide additional room for optim
285.
▲
by
MrJohz
1y ago
It's good when someone advocates for what they believe to be progress on the web platform, but it's not necessarily clear that this would be progress. And that line in particularly is amusing because we absolutely don't know
286.
▲
by
MrJohz
1y ago
The synthetic event also adds its own abstractions though. For example, the `onChange` handler in React behaves very differently to the native DOM `change` event.
287.
▲
by
MrJohz
1y ago
I think it's just the bland "thought leader" LinkedIn-style post - I don't think it's LLM-specific, but rather lowest common denominator writing that's very easy to write and reproduce and therefore easy to mim
288.
▲
by
MrJohz
1y ago
I feel like a teacher saying this, but please show your working!
289.
▲
by
MrJohz
1y ago
I know Cargo recommended your approach for a while, but ended up recommending that all projects always check in a lock file. This is also the norm in most other ecosystems I've used including Javascript and other Python package manager
290.
▲
by
MrJohz
1y ago
There are lots of tools that allow you to generate what are essentially lock files. But I think what the previous poster is saying is that most people either don't use these tools or don't use them correctly. That certainly matche
291.
▲
by
MrJohz
1y ago
How do you plan to handle groups or families with this system? Having larger compartments gives a lot of flexibility and allows families or groups to travel together easily and spend the time with each other. The hotel pods look like they o
292.
▲
by
MrJohz
1y ago
But the point is that almost all of the common places where macros are used in everyday Rust could be replaced by reflection. There are exceptions like some of the ones you mention, but these are clever hacks rather than materially useful.
293.
▲
by
MrJohz
1y ago
But the point is that if you've got reflection (and an expressive base language, and a powerful enough type system, etc), you probably don't need macros. They're a heavy mallet when you almost always need a more precise tool.
294.
▲
by
MrJohz
1y ago
If you look at how macros are mostly used, though, a lot of that stuff could be replaced directly with reflection. Most derive macros, for example, aren't really interested in the syntax of the type they're deriving for, they'
295.
▲
by
MrJohz
1y ago
Note that 4 day work here typically implies 4×8 hours, i.e. a reduction in hours for the same pay. This is how the trial worked in the UK, and is what most groups I've seen are campaigning for. The goal is not just to rearrange work ho
296.
▲
by
MrJohz
1y ago
It is possible to get those features back, in fairness... but it often requires more work than if you'd just let the browser handle things properly in the first place.
297.
▲
by
MrJohz
1y ago
I find the Krausest benchmarks[0] to be useful for these sorts of comparisons. There are always flaws in benchmarks, and this one particularly is limited to the performance for DOM manipulation of a relatively simple web application (the m
298.
▲
by
MrJohz
1y ago
> sending an empty skeleton that then gets hydrated with user data over APIs is fastest for a user's perception of loading speed This is often repeated, but my own experience is the opposite: when I see a bunch of skeleton loaders o
299.
▲
by
MrJohz
1y ago
If you have this issue, I can highly recommend working in another country where all your colleagues are using a different keyboard layout to you entirely. This is particularly bad for programming, because while standard layouts are mostly
300.
▲
by
MrJohz
1y ago
I mean that an election is (theoretically) an 100% sample because every eligible has the ability to interact with the voting process at the level that they choose. So the decision for some people to invalidate their vote, or to vote tactic
More ›