Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
MrJohz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
481.
▲
by
MrJohz
2y ago
Based on the article, it's happening before anything gets served, it's specifically happening during the Astro build phase, but only on the Cloudflare build machines. So by the time it comes to serve the assets, stuff is already b
482.
▲
by
MrJohz
2y ago
The best way to practice writing is to write, but that doesn't mean that the writing is the goal . I write to communicate, and if you haven't understood what I've written, then I've not met my goal. That's true e
483.
▲
by
MrJohz
2y ago
This doesn't have to be about making your writing more generic. Both Mark Twain and George Orwell wrote about the need to be concise when writing, and you'd be hard-pressed to describe either of them as generic. For me, I write a
484.
▲
by
MrJohz
2y ago
I suspect it's more likely an artifact of how the number is lexed. `-3^2` probably gets lexed into Number(-3), Operator(^), Number(2), which results in the aforementioned precedence issues. The reason for parsing the operator with the
485.
▲
by
MrJohz
2y ago
CSS as a language is different from the style attributes that you can insert into `style=`, mainly because it's a lot more powerful. You can do things like set a background colour on hover, or apply a style only to the first child elem
486.
▲
by
MrJohz
2y ago
I know vscode had this feature built in, and it's come in handy a couple of times for me.
487.
▲
by
MrJohz
2y ago
I believe they're referring to hieroglyphics, although I didn't know the story about religious persecution and would be interested in some context there.
488.
▲
by
MrJohz
2y ago
I went searching for it the other day, and my impression for most tablets/phones is that it's supported at the hardware level by most modern devices, but it needs to be enabled at the OS level. Right now, only Samsung are really d
489.
▲
by
MrJohz
2y ago
Date-fns uses the native Date object which makes the same mistake, but then has a bunch of additional mistakes like not accounting for timezones and being painful to use. Date-fns can resolve some of these issues, but it's generally to
490.
▲
by
MrJohz
2y ago
I confess I was sceptical about this article based on the URL, but this is a really good article and articulates some ideas about "semantic and shit" that I've thought about but not really been able to express. Using the corr
491.
▲
by
MrJohz
2y ago
A lot of systems that work this way also cap your fare so that you never pay more than the day rate. Say the day cap is £5, and an individual fare costs £2, then if you take two journeys you'll pay £2 each, but from the fifth journey o
492.
▲
by
MrJohz
2y ago
FWIW, I've just pulled up a pretty large project I work on using NPM, and almost all of the duplicate dependencies had different major versions. Most of the ones that had the same major version were 0.x dependencies with different mino
493.
▲
by
MrJohz
2y ago
In fairness, I don't have so much experience with C#, but my experience with Java and OO-heavy JS codebases is that most of the boilerplate can be automated away without much problem - typing "cl<tab>" generates a class
494.
▲
by
MrJohz
2y ago
But surely you can still run into the same issue: I import a@1 and b@1 a@1 transitively depends on c@1 b@1 transitively depends on c@2 Even with different import paths, I still have two different versions of c in my codebase. It'll
495.
▲
by
MrJohz
2y ago
cargo tree -i log@0.3.9 will show which dependencies require this particular version of log, and how they are transitively related to the main package. In this case, you would clearly see that the out-of-date dependency comes from
496.
▲
by
MrJohz
2y ago
> Edit: It's now dawned on me that they're storing this plain text so that they can do this... or at least encrypting rather than hashing, meaning that they can always decrypt the password. It could well be that they're do
497.
▲
by
MrJohz
2y ago
I've had similar problems with python packaging in both the web dev and embedded spaces. There are ways to largely solve these issues (use package managers with lock files and do irregular dependency updates), but I rarely see that bei
498.
▲
by
MrJohz
2y ago
I've tried it a few times, and each time there's been something missing that was too irritating to live without - stuff like git integration, or extensions that I use a lot. It's nice, but I don't really notice the speed
499.
▲
by
MrJohz
2y ago
My private details leaking is damage, that's the point here. If I trust you with my confidential details (which can be anything from my bank details to my email address), and your data security protocols mean that my data gets stolen
500.
▲
by
MrJohz
2y ago
With GDPR, simply leaking personal data is enough to earn you penalties. If your security is insufficient that someone can take this much personal data (and based on some of the other comments here it was a lot of personal data), then you h
501.
▲
by
MrJohz
2y ago
There are more and more frameworks that avoid the VDOM but still resolve this fine. As long as DOM mutation is handled by the framework (and not done ad-hoc), and as long as the framework has a mechanism for deferring those mutations until
502.
▲
by
MrJohz
2y ago
Float is necessary for some layouts, particularly documents where you might have a lot of text that wraps around a handful of images. I don't believe it's possible to implement that without floats (at least not without some cleve
503.
▲
by
MrJohz
2y ago
I don't quite understand the point about rendering, unless you mean it in the Angular sense (i.e. on every state update, the whole app gets rendered, and elements are updated to the new state during that render). But I can imagine that
504.
▲
by
MrJohz
2y ago
> I know Flutter/Dart doesn't get much love here on HN but in my opinion I think it's much easier to reason about than a system like React which I think is the wrong level of abstraction compared to Flutter's render t
505.
▲
by
MrJohz
2y ago
Even easier than that: npx tsx ./file.ts
506.
▲
by
MrJohz
2y ago
This is untrue. Both "free" and "open" licenses do the same thing in this context: they are legal documents that tell you what different parties are able to do with the code, but none of the licenses mandate how you run
507.
▲
by
MrJohz
2y ago
Fwiw, I'm not a Nix user nor am I really following the whole discussion here. I'm not trying to spread "FUD", just point out that there's a difference between "bad person" and "bad at the role one is
508.
▲
by
MrJohz
2y ago
You're not a bad person, but you might be a poor leader in that situation, which, as I understand it, is the main focus of the complaint. There's a difference between letting people do their thing, and letting them lead a large co
509.
▲
by
MrJohz
2y ago
For me it's less about trusting coworkers, and more about trusting myself. When I see these sorts of discussions through those eyes, I can understand much more why people want guard rails when they're programming. I fancy myself a
510.
▲
by
MrJohz
2y ago
To a certain extent, there are bills of rights already - consumer protection legislation exists, and is getting better at targeting badly-made software. Consider the EU's GDPR regulation, which forces company to handle users' priv
More ›