Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jcparkyn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
151.
▲
by
jcparkyn
3y ago
... except in this case (and many others), where it was written for-purpose and then never tuned.
152.
▲
by
jcparkyn
3y ago
Not foolproof, but you could get fairly high confidence by trying different variations of the prompt and seeing how consistent the output is. If it's the same every time, chances are it's being copied verbatim from somewhere.
153.
▲
by
jcparkyn
3y ago
I'd love this as a multiplayer game, where users can submit custom challenges for others to crack (a la mario maker).
154.
▲
by
jcparkyn
3y ago
I'd argue that typescript is the same, just stricter by default if using TSC. Many people run type checking separately from building/running the code, just like in python.
155.
▲
by
jcparkyn
3y ago
> .net is good for network infrastructure, .org is good for organizational purposes Genuine question: Is there any tangible/technical benefit to this, or is it just for the sake of keeping them organised?
156.
▲
by
jcparkyn
3y ago
Spoken like someone who's never used Matlab :)
157.
▲
by
jcparkyn
3y ago
I don't think that's a fair metric. Many people using TS (myself included) will typically use "JavaScript" in search queries because the answer is usually the same. The only time I search for "typescript" is if
158.
▲
by
jcparkyn
3y ago
As another point of reference, Hangfire also uses expressions for a similar use-case and it seems to work quite well. E.g. https://docs.hangfire.io/en/latest/background-methods/passin... BackgroundJob.En
159.
▲
by
jcparkyn
3y ago
An analogy is "if you take half of what's left each day, you'll never run out".
160.
▲
by
jcparkyn
3y ago
You seem to have a different definition of "emergent" to the rest of the world. Just because there _is_ an explanation for waves doesn't stop them from being an emergent behaviour.
161.
▲
by
jcparkyn
3y ago
That somewhat falls apart when you start comparing infinite sets that actually _do_ have different cardinalities.
162.
▲
by
jcparkyn
3y ago
> Half way into renaming it decides I will not rename it and just clears my editing, or exits editing mode. In case you're curious what's actually going on here, it happens when one of the status symbols (e.g uploading or synce
163.
▲
by
jcparkyn
3y ago
I've done my share of weird stuff with TS types before, but I'd never seen the trick of using interfaces to make higher-order functions. Neat.
164.
▲
by
jcparkyn
4y ago
Doesn't seem too far fetched. I doubt many working engineers would pass all their undergrad exams without doing some revision first. And as other commenters have pointed out, this is clearly not a representative example of most exams.
165.
▲
by
jcparkyn
4y ago
The workaround is just to nest multiple `alt`s inside each other.
166.
▲
by
jcparkyn
4y ago
The big advantage of doing it ahead of time is that you can proofread and edit it. LLMs are good, but it'll be a while before they get to a point where a bit of human editing doesn't help.
167.
▲
by
jcparkyn
4y ago
> If the human writer has access to google (everyone in modern society) this point is moot. But a single human can only read so much information in a finite amount of time (their life). Sure, the same thing applies to LLMs, but the theor
168.
▲
by
jcparkyn
4y ago
It supports SVGs. Not a replacement for all the options in latex, but that certainly qualifies as "vector graphics".
169.
▲
by
jcparkyn
4y ago
Multiple desktops is a big one for me.
170.
▲
by
jcparkyn
4y ago
I'm not a particularly hardcore latex user, but in my observation it's the opposite: Because it's a "real" programming language, not just a macro system, it scales much better to complex tasks. Even simple things ge
171.
▲
by
jcparkyn
4y ago
For me the biggest ones are: 1. Compilation is ridiculously fast. 2. The language is miles more intuitive, and doesn't require nearly as many hacks. In a handful of hours using typst I've written much more interesting things than
172.
▲
by
jcparkyn
4y ago
> Vim can be an essential tool for editing remote files Even this point is being weakened by how good vscode's remote editing support is.
173.
▲
by
jcparkyn
4y ago
> It's much easier to type multiple lines of equations, with the equation signs aligned, in LaTeX than in Word. I actually disagree. The equation editor in word is really quite good (if a little laggy sometimes), once you learn the
174.
▲
by
jcparkyn
4y ago
I'm beginning to feel like every single comment in every thread related to python package management is just this: "Package management in python is so easy, just use [insert tool or workflow that's different to literally ever
175.
▲
by
jcparkyn
4y ago
> I tell Junior/Level 1 engineers focus on becoming net productive, meaning providing more value than you take. This feels like it could backfire, by encouraging people to ask less questions. It's easy to provide more value tha
176.
▲
by
jcparkyn
4y ago
I think the opposite, TS is much more predictable than hindley-milner inference, mostly because the inference only flows forward. Yes, there are a couple of weird edge cases with arrow functions in generics, and it gets a bit more complicat
177.
▲
by
jcparkyn
4y ago
But the current implementation using reference equality is perfectly valid, and often quite useful.
178.
▲
by
jcparkyn
4y ago
FileInfo is a stateful reference type, so overriding Equals and GetHashCode to use value equality would be a Bad Idea™. E.g.: var f = new FileInfo("image.jpg"); var set = new HashSet<FileInfo> { f }; f.MoveTo(&
179.
▲
by
jcparkyn
4y ago
Perfectly intuitive, just like how `"foo" + "bar" == "foobar"` is only sometimes true.
180.
▲
by
jcparkyn
4y ago
One advantage is that unknown makes it clear at a glance where the unsafe cast is happening, and forces devs to do it in a reasonable place (rather than letting `any` propagate through the code accidentally). Personally though, I think vsco
More ›