Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jcparkyn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
jcparkyn
2y ago
The real answer IMO is how they (don't) integrate with generics, first-class functions, and the type system in general. If you try using a checked function inside a stream() call you'll know exactly what I mean. Yes, it's tec
32.
▲
by
jcparkyn
2y ago
> Java is perfectly capable of expressing an enum I think this is a bit of an exaggeration, unless you're talking about very modern versions of Java (sealed interfaces and better pattern matching). Java has no good way to attach dif
33.
▲
by
jcparkyn
2y ago
But then what name would they use for tuples, which are distinct from records?
34.
▲
by
jcparkyn
2y ago
You forgot to test for associativity: ((1-1)-1) vs (1-(1-1)). Your implementation does handle it correctly though, but it requires some care when using parser generators :)
35.
▲
Show HN: A mutliplayer word game where all state is stored in the URL
(scrobburl.com)
3 points
by
jcparkyn
2y ago
|
0 comments
36.
▲
by
jcparkyn
2y ago
I've never experienced this. Have you tried disabling all your extensions to see if one of them is causing it?
37.
▲
by
jcparkyn
2y ago
> what's wrong with pip freeze? Aside from all the obvious issues of having no distinction between transitive and direct dependencies, it completely breaks cross-platform support if any of your dependencies have platform-specific su
38.
▲
by
jcparkyn
2y ago
Installing it is easy, what's harder is making sure all your collaborators have the same packages and versions of everything.
39.
▲
by
jcparkyn
2y ago
I don't think anyone had tried copying it until after I figured out the problem, the bug report would've just been a screenshot.
40.
▲
by
jcparkyn
2y ago
Here's a fun one that's not really code-related: I was working on a web application with a maintenance mode feature where it would show a "system offline" while changes were rolled out etc. We noticed there was a typo (o
41.
▲
by
jcparkyn
2y ago
Well somebody had better discard it now, lest it start existing at some point in the future.
42.
▲
by
jcparkyn
2y ago
A fun example of that (making a neural network using floating point error as a source of non-linearity): https://youtu.be/Ae9EKCyI1xU?si=n9vgvCvxoxrQeKd8
43.
▲
by
jcparkyn
2y ago
I was with you until the second sentence - there's so many better syntaxes C could've used but that's not one of them.
44.
▲
by
jcparkyn
2y ago
One of my personal projects uses a similar idea, but it's a word game (scrabble-like) and it's hosted statically: https://jcparkyn.github.io/scrobburl/ Repo: https://github.com/Jcparkyn/s
45.
▲
by
jcparkyn
2y ago
What kind of deprecation are you talking about? Assuming deprecated functions/types/etc, isn't this something your compiler or linter should catch?
46.
▲
by
jcparkyn
2y ago
I think an important difference is that when you shuffle them, the unfairness stops being correlated across multiple assignments, so the "aggregate" unfairness over the course of the semester is much lower.
47.
▲
by
jcparkyn
3y ago
One feature I've never seen in test frameworks that I think would be good: Instead of concurrency being a boolean on/off, tests should be able to declare a list of shared dependencies (e.g. using arbitrary string identifiers). The
48.
▲
by
jcparkyn
3y ago
Your first example should be more like return source(criteria).results In your SQL, `results` isn't the variable you're assigning to, it's the column you're reading from source.
49.
▲
by
jcparkyn
3y ago
- The comment is referring to a graph that used 10^6 on the vertical axis, which is a very common way to format graphs with large numbers (not just "lately"). It's also the default for a lot of plotting libraries. - 10^n is m
50.
▲
by
jcparkyn
3y ago
> if you are going to get them during the interview you study for them And a lot of interviewers (at least in my limited experience) are quite okay with you referencing your notes during the interview.
51.
▲
by
jcparkyn
3y ago
(Not saying anything in your comment is wrong, just an additional data point) For "big tech" in Australia, ~$160k is pretty much the starting compensation for graduate/entry level SWEs.
52.
▲
by
jcparkyn
3y ago
> people remember the name just fine. What about all the people who mistakenly call it ChatGTP? (and yes I have heard this more than once in real life). I assume this is also the origin of the HN user with the same name.
53.
▲
by
jcparkyn
3y ago
Another option would be to replace the X with a small (i) symbol or similar, so at least users won't be confused when it doesn't do what they expected.
54.
▲
by
jcparkyn
3y ago
Disclaimer: I'm not an expert, so take this with a grain of salt. There's always going to be some trade-off between how full you charge the battery and how much it degrades, so of course manufacturers choose a threshold that isn&#
55.
▲
by
jcparkyn
3y ago
Maybe I'm optimistic, but I find it unlikely that someone went to the time to build this app, maintained it for the last eight years, and thousands of people went to the trouble to find it, install it, and leave a review, all without a
56.
▲
by
jcparkyn
3y ago
Is there any evidence of him actually following up on any of those pledges? The example from the article about his "billion dollar" donation (of which only $4MM seemed to have actually been spent) makes me skeptical. Edit: It appe
57.
▲
by
jcparkyn
3y ago
> The top 5 programming languages contain C (including C# and C++), [...] Including C++ in the "C" category is _maybe_ defensible (at least the use cases overlap), but including C# is crazy. And then in the same sentence they l
58.
▲
by
jcparkyn
3y ago
Interesting example that I hadn't considered. But, since Typst is a programming language, there are lots of ways the same thing could be achieved directly in the language. E.g.: // Change this to switch languages #l
59.
▲
by
jcparkyn
3y ago
Looks cool (I'm a big fan of Typst), but I do question the value of moving the data to yaml, rather than just building a set of Typst functions and styles (see example below). To me, it's one of those things people often do becaus
60.
▲
by
jcparkyn
3y ago
I know you were mostly joking, but for cloning dates you can "just" use the constructor ( https://stackoverflow.com/a/69601256 ).
More ›