Viewing profile — tubthumper8
tubthumper8
HN member- Joined
- Fri, Aug 18, 2023, 3:40 AM UTC
- HN karma
- 229
- Public activity
- 131 items
- HN profile
- View on Hacker News ↗
About tubthumper8
No profile information was provided.
Recent public activity
-
comment
Comment #46131919
What do you mean by "failing tests", are you talking about runtime code? TypeScript erases all types at compile so these wouldn't affect tests. Unless you meant "compile errors" in…
-
comment
Comment #45922669
Who said that anyone is absolved of the responsibility to write tests for business logic when using Rust? I struggle to see anything in the comment you replied to that is anywhere …
-
comment
Comment #45206347
Not sure what you mean here by "most JavaScript parser rejects null" - did you mean "JSON parsers"? And why would they reject null, which is a valid JSON value? It's more that when…
-
comment
Comment #44177263
Inline breakpoint, the same way you set a breakpoint on an expression in any language
-
comment
Comment #44177217
The "Error Return Trace" described in the next section down also seems like an interesting alternative to a stack trace, possibly solving the same problem with less noise. How well…
-
comment
Comment #44177173
I've read elsewhere that one idea for the zero value of sum types is not making it nillable, but rather making the zero value as the 0th variant of the sum type (and if it has asso…
-
comment
Comment #44082883
This post from the React team has more detail on that topic: https://overreacted.io/algebraic-effects-for-the-rest-of-us/
- comment
-
comment
Comment #43938126
Can you expand more on the Gang of Four comment? Which separation does GoF describe that is applicable in this context? And what is the definition of a "concern"?
-
comment
Comment #43771260
Can you do it for functions defined by other people, or only for functions that you defined? I'm thinking in the general case, but motivated by this example of a 3rd party function…
-
comment
Comment #43751442
Do the python type checkers / linters / whatever have the ability to warn or error on calling certain functions? That would be nice to eventually enforce migration over to the newe…
-
comment
Comment #43583546
"pit of success" from the previous comment might refer to this video, which is long but good especially to adjust to a different mindset https://youtu.be/US8QG9I1XW0?si=N07ZsYSYfA1…
-
comment
Comment #43575166
>that's what discriminated unions (aka product types aka algebraic data types) Just an FYI, discriminated unions are not product types, they are sum types. It's named so because th…
-
comment
Comment #43563740
There's also going to be quite a big ecosystem / standard library difference between languages that had fundamental type system features since the beginning vs. languages that adde…
-
comment
Comment #43500977
> But that is unnecessary in Go as it believes that values should always be useful – which means you don't need to even consider the error to use the value. Is this true? Are value…
- comment
-
comment
Comment #43500746
> You can do something like this Do people actually do this? Is it included in the standard library? If not, should it be?
-
comment
Comment #43495065
It's not just syntax, a sum type forces checking for the error whereas a product type does not, so it's a semantic distinction too
-
comment
Comment #43489577
That _shouldn't_ be ambiguous, `false` is a valid JSON document according to specification, but not all parsers are compliant. There's some interesting examples of ambiguities here…
-
comment
Comment #42884162
Yeah, that's one of the core problems, there's no overloading of equals in JS and no other cases of objects using non-reference equality. Adding that in itself would be a big deal …
-
comment
Comment #42795906
> I understand you have an advertising quota to fill This is a ridiculous statement and you are intentionally engaging in bad faith. There's no need for this in response to people …
- comment
-
comment
Comment #42784863
Sorry to have disappointed you. I don't walk, talk, or sleep either Rust or Go, but was trying to provide some resources to help in case you hadn't seen them yet. One difference I …
-
comment
Comment #42783200
The documentation is probably the best resource to start with the concept and how it works / what the goals are: https://doc.rust-lang.org/edition-guide/editions/index.html For exa…
-
comment
Comment #42782569
That's exactly what what they're talking about, "tenantId" shouldn't be in the function signature for functions that aren't concerned with the tenant ID, such as business logic