Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
MrJohz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
62 ms
·
901.
▲
by
MrJohz
4y ago
Ironically, the Javascript ecosystem is far better than the Python ecosystem when it comes to packaging and dependencies. NPM just does the right thing by default: you define dependencies in one place, and they are automatically fixed unl
902.
▲
by
MrJohz
4y ago
This is true, but now you're explicitly depending on all of your transitive dependencies, which makes updating the project a lot harder. For example, if a dependency stops pulling in a transitive dependency past a certain version, you&
903.
▲
by
MrJohz
4y ago
This is a fine technical solution to a different problem. The issue is not that people don't trust the ambulances, or want to keep track of them to feel more in control. The issue is that there aren't enough ambulances in the firs
904.
▲
by
MrJohz
4y ago
As a fellow fish user, I agree. Occasionally I write fish scripts/functions, but they're for my environment so I don't expect them to run on other people's fish shells, let alone bash. Then when I am in another shell, I
905.
▲
by
MrJohz
4y ago
The aim here is less about the types (like you say, any string will be valid) and more about autocomplete. When you start a string literal, you can technically type anything in there, but certain answers are more "correct" than ot
906.
▲
by
MrJohz
4y ago
I've been enjoying SolidJS recently, and due to framework limitations, it is generally impossible to have multiple return statements, which I think helps a bit here. The signals stuff also lends itself really well to writing code that
907.
▲
by
MrJohz
4y ago
To a certain extent, I agree that you also don't want overly small components, but it feels a lot like the debate about function size. Sure, you don't want to wrap every statement in its own function, you want functions that are b
908.
▲
by
MrJohz
4y ago
I mean, that's just a laundry list of buzzwords. Yes, these are all things that exist, but that doesn't mean anyone has to learn them or that they're even used in a significant number of real-world codebases. It's like c
909.
▲
by
MrJohz
4y ago
> JSX forces you into small tiny components I'm surprised you see that as a disadvantage, for me that's always the biggest advantage of JSX-style syntax! I don't want huge components that do everything, I want components t
910.
▲
by
MrJohz
4y ago
It include any trips using regional trains or city public transport (so, broadly, any train with an "R" or "S" in the name). That includes travel between cities, but it won't include the fast intercity trains (IC, I
911.
▲
by
MrJohz
4y ago
I really like the idea of mutation testing, but I've never found a situation where I've got it to work well. Either the project just didn't have the test support needed to make it work, or the mutation toolkit wasn't mat
912.
▲
by
MrJohz
4y ago
What do you mean no? I genuinely don't understand what you mean by that. The whole point of them is to be a consistent CLI for managing projects, dependencies, and packaging. It's even using the same sort of vocabulary and covered
913.
▲
by
MrJohz
4y ago
Eh, I find Goodreads reviews really difficult to get a handle on. Moreso than, say, Rotten Tomatoes, where even if the aggregate rating is different to the rating that I'd give a film, the reviews are at least useful enough that I know
914.
▲
by
MrJohz
4y ago
Poetry is basically NPM, Cargo, or Composer, but for Python, and my impression is generally that people who have used those tools see it as incredibly valuable and useful, and people who haven't used those tools don't really under
915.
▲
by
MrJohz
4y ago
The YouTuber Tom Scott did a video shot in the style of a music video that was really interesting, and one of the things that surprised me was how little of the video was shot using the "right" frame right - for example, they shot
916.
▲
by
MrJohz
4y ago
I've been really enjoying using Quickcheck & friends recently for test cases, which is essentially that, but doing the test case generation while the tests are running (and if it finds an error, trying to reduce that error to its s
917.
▲
by
MrJohz
4y ago
A good example here is looking at some of the framework benchmarks for frontend frameworks (e.g. https://krausest.github.io/js-framework-benchmark/current.ht... ) I find useful comparison points are usually React, Preac
918.
▲
by
MrJohz
4y ago
But the key point here is that "fire stuff" is still a pretty ambiguous term. Sure, it does describe a lighter, but it also describes lots of other things pretty well. The compound parts give some clues as to the nature of the obj
919.
▲
by
MrJohz
4y ago
You're cherry picking examples here though. How do you explain the "-zeug" words? If you think of "Zeug" more as tool then some of them kind of make more sense ("Feuerzeug", "Werkzeug", at a pinc
920.
▲
by
MrJohz
4y ago
I wonder if this has more to do with how people visualise commits than branches per se. I think the git UI by default often encourages users to think of commits as diffs. A branch then is a bundle of diffs that, when stacked together, produ
921.
▲
by
MrJohz
4y ago
The key idea is that there is no true timestamp . This is really hard to get across in simple examples, because we almost always describe the example from an objective, external viewpoint, and then start discussing how things appear from d
922.
▲
by
MrJohz
4y ago
I get what you mean, but "minute-to-minute text handling" for me is pretty much always covered by my IDE's refactoring integration. Like, in the last few weeks, I've written a whole load of Python, Rust, and Typescript,
923.
▲
by
MrJohz
4y ago
I broadly that this sounds like a people problem rather than a tooling problem, but I would add: >If you have a team of developers and they're not able to deliver to a specification, the problem is with the developers, not the tools
924.
▲
by
MrJohz
4y ago
Haha, I read the article immediately after this comment and saw that comment, I think it wasn't there last time I read it (so presumably before the end of 2020!). I agree that it's probably not as good for complete beginners, but
925.
▲
by
MrJohz
4y ago
It seems odd to bring in Java applets and similar technologies to the discussion when the original point was that web development shouldn't need a build step. And isn't the whole point of SPAs to implement local interactivity? I.e
926.
▲
by
MrJohz
4y ago
Expanding WASM to the DOM is definitely part of the roadmap. The problem at the moment, as I understand it, is that the DOM was designed with Javascript in mind, and figuring out how to translate that into something that works well for lowe
927.
▲
by
MrJohz
4y ago
I've recommended it before (I think there's even a blog post of mine written in direct response to this article floating around somewhere): A Philosophy of Software Design is really good. It isn't so concerned with all of t
928.
▲
by
MrJohz
4y ago
I don't disagree that it's small scale approach, it's just the language of "bottom up" and "scaling gracefully" that I disagree with. The setup in the article will work only at very small scales, and then
929.
▲
by
MrJohz
4y ago
I think the criticism is exactly of that ability to scale though. This setup is ineffective but manageable at the individual scale, but it's going to get more complicated as soon as anyone else is involved, or if the project lives long
930.
▲
by
MrJohz
4y ago
I'd actually recommend Vite over Esbuild directly. It uses Esbuild under the hood, at least for production builds, but during development it uses the native import syntax with some optimisations to bundle dependencies together somewhat
More ›