Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
garethrowlands
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
garethrowlands
4y ago
I think the author of the post you're replying likely understands category theory terminology and is arguing that the article misuses it and is incoherent. Functional programming theory has relied heavily on category theory ever since
92.
▲
by
garethrowlands
4y ago
The OP means accessing instance variables really. That is, the `.x` in `this.x` or `that.x`. They're not making a distinction between manually created getters and setters and what the compiler generates.
93.
▲
by
garethrowlands
4y ago
"The received wisdom suggests that Unix’s unusual combination of fork() and exec() for process creation was an inspired design. In this paper, we argue that fork was a clever hack for machines and programs of the 1970s that has long ou
94.
▲
by
garethrowlands
4y ago
speculative trading on future price, not utility
95.
▲
by
garethrowlands
4y ago
For Kotlin, there's http4k. It just gets out of your way.
96.
▲
by
garethrowlands
4y ago
Rust and Go are surely different classes of programming language. Rust is a systems language and Go is garbage collected. That is, Go is in the camp with Ruby, Python and Javascript, whereas Rust is in the camp with C and C++. Garbage colle
97.
▲
by
garethrowlands
4y ago
The same considerations apply, though not always. JavaScript can be JIT compiled, though the JIT might not make the same optimisations as a C compiler. It's running on the same CPU though.
98.
▲
by
garethrowlands
5y ago
The answer is that your "composition root" constructs the objects using normal code. Usually the composition root is the `main` function. def main: a = ... b = ... c = ... my_object = MyObject(a,b,c)
99.
▲
by
garethrowlands
5y ago
Yes you're right, it works really really well.
100.
▲
by
garethrowlands
5y ago
A good supportive team helps. It's our code, not your code. It's our problem, not your problem. We will fix it together, dropping other work to mob it until it's under control. By the way, the incremental testing you describe
101.
▲
by
garethrowlands
5y ago
Good point, that's an improvement.
102.
▲
by
garethrowlands
5y ago
Python has types?
103.
▲
by
garethrowlands
5y ago
Most language type systems can say AND but relatively few can say OR. For example, Java can say a `Point` has an `x` AND a `y`: class Point { public int x; public int y; } ...but it can't say a `Point` has _either_ `x` and `y`
104.
▲
by
garethrowlands
5y ago
In my opinion, Window management on Mac is bad compared with everything that isn't Mac. On the other hand, there's lots to like about Macs, so I keep using them.
105.
▲
by
garethrowlands
5y ago
Absolutely! The "minimum" in MVP is about minimising the time until a viable product's in the market. It's not that worse is better, it's that - other things being equal - quicker is better.
106.
▲
by
garethrowlands
5y ago
We have a severe shortage or workers. We could definitely use them. They might have to accept poor housing but that's due to housing policy.
107.
▲
by
garethrowlands
5y ago
Well, if you just wanted no garbage collector, you could use C.
108.
▲
by
garethrowlands
5y ago
Surely the value proposition of Rust is fewer security vulnerabilities than an equivalent C program.
109.
▲
by
garethrowlands
5y ago
Lenses solve a problem you don't have in OOP. Since OOP allows mutation, to change a value within a nested structure, just mutate it. If you don't want to mutate, then getters and setters don't help and changing nested struct
110.
▲
by
garethrowlands
5y ago
React
111.
▲
by
garethrowlands
5y ago
Fun computer science fact: any type system will disallow some otherwise valid programs and also allow some invalid programs. The trick for type system designers is to find a sweet spot.
112.
▲
by
garethrowlands
5y ago
How do you avoid the OS randomly deciding to write a page to disk, per https://db.cs.cmu.edu/mmap-cidr2022/ ?
113.
▲
by
garethrowlands
5y ago
No that's not why it's not modular. If that was the case, then other relational algebra-based query languages would suffer the same problem. They do not.
114.
▲
by
garethrowlands
5y ago
Anonymous functions aren't well supported in python, for sure.
115.
▲
by
garethrowlands
5y ago
OP is not making the claim that Earth will stop spinning tomorrow though. Nor did OP mention 50 years. Nor does OP need to prove global warning, since many others have done that. Not that you'd read it but here's a readable summar
116.
▲
by
garethrowlands
5y ago
Premature or wrong anything is clearly bad. But is parameterisation a premature or wrong abstraction? I'd say that parameterisation - even in the type language - is the original proven abstraction.
117.
▲
by
garethrowlands
5y ago
It can rename file that are in use though.
118.
▲
by
garethrowlands
5y ago
You don't need Spring to maintain large codebases with many interconnected parts that you might want to swap out at a given notice. You can just create ('wire up') your objects in your `main` method.
119.
▲
by
garethrowlands
5y ago
Can you give examples of things this misses?
120.
▲
by
garethrowlands
5y ago
It's a good trick. The function didn't return a value, so its caller cannot interpret that value and cannot change it behaviour.
More ›