Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
clusmore
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
211.
▲
by
clusmore
10y ago
Why do we have this obsession with religiously following methodologies rather than focusing on the goals they attempt to achieve? >CD means every commit gets built and delivered all the way prod if it passes all tests. The key word is &q
212.
▲
by
clusmore
10y ago
>dealing with immutable data in OO languages is tedious and error prone I don't think this is a problem ingrained in OO. You could very easily conceive of an "OO" language that has separate constructs for objects (mutable)
213.
▲
by
clusmore
10y ago
Am I missing something on the 502 page? I don't see the same parallax effect. I'm just getting a static unicorn.
214.
▲
by
clusmore
10y ago
No, not really. I work in a team of four, one of whom is my boss, and I've done code reviews for all three others and been reviewed by all three others. Reviewing others and finding bugs or mistakes in their code, especially my boss&#x
215.
▲
by
clusmore
10y ago
What exactly do you mean by conflicting? Remember that the types, typeclasses and function implementations are all namespaced, so name collisions here are fine. The only problem occurs when you define multiple instances for a type and a typ
216.
▲
by
clusmore
10y ago
>It has this great automatic interface system! I like post hoc polymorphism -- there's nothing more frustrating than knowing that a class has all the functionality required to meet an interface but because the author didn't dec
217.
▲
by
clusmore
10y ago
Well, for one I believe they pre-date comprehensions. Having them as functions is also occasionally useful for partial application, e.g. from functools import partial to_strings = partial(map, str) # vs def to_strings(seq):
218.
▲
by
clusmore
10y ago
Must watch: https://www.youtube.com/watch?v=OSGv2VnC0go I believe that the list comprehension will be faster than filter, but as always, any time you replace readable code with unreadable code for performance reasons, you d
219.
▲
by
clusmore
10y ago
From Surely You're Joking, Mr. Feynman , it seems Richard Feynman too was inspired at a young age and developed a very strong sense of curiosity of the world and how things work. In Feynman's case, though, the inspiration came fr
220.
▲
by
clusmore
10y ago
Ironically I have uBlock Origin installed and I don't get the plea.
221.
▲
by
clusmore
10y ago
If you're checking your code into GitHub anyway, you could turn on GitHub Pages [1] for your project and serve it from there. [1] https://help.github.com/articles/configuring-a-publishing-so...
222.
▲
by
clusmore
10y ago
Wow, I live in Queensland, Australia, and here if you put up a sign on your letterbox that says "Australia Post Only" or "No Junk Mail" or similar, your junk mail intake drops to basically zero immediately -- it's r
223.
▲
by
clusmore
10y ago
Why does everything need to serve a purpose? I can believe the author wrote this just "Because I Can", which is a perfectly good reason to me. Most stuff I work on in my free time, I do just for me. If I think anybody else might b
224.
▲
by
clusmore
10y ago
Here's my take on the authentication vs authorization distinction. Authentication is the verification of identity. Authorization is the verification of permission (authority) to perform an action. The two are often related, but need no
225.
▲
by
clusmore
10y ago
I agree that not all computation would move back to centralized data centres, but then not all computation is done in the cloud now (vs on your mobile phone). 20 years ago, people would have thought it was insane to send data packets ov
226.
▲
by
clusmore
10y ago
So we started with centralized mainframes, because it was too expensive for everybody to have their own computer. As hardware improves, computers become cheaper and more powerful and then everybody can have their own, and we move to a distr
227.
▲
by
clusmore
10y ago
These are all great points, and I'm realising now I have missed the point a little. Reading arbitrary code is good, because you learn something regardless of whether the code is "good" or "bad" -- you learn how to
228.
▲
by
clusmore
10y ago
I'm working on a little JS blogging application which is backed by GitHub issues. It's hosted by GitHub pages, and each issue in the backing repository is a blog post. I get markdown -> HTML, reactions/comments, tagging, e
229.
▲
by
clusmore
10y ago
I'm not sure this is a fair comparison, because books are written to be read , but code is (usually) written to be executed . As much as we all agree that code readability is important, the simple fact of the matter is that executabi
230.
▲
by
clusmore
10y ago
I don't think that this is because of functional vs other, but because of the assignment operator and mutable primitives (which functional languages tend to omit). Consider \x y -> g (f x) (f y) We have no way of knowing what
231.
▲
by
clusmore
10y ago
>Imagine your documentation says: this functions returns a List of items. You can still returns a CopyOnWriteArrayList. I don't write in Go so I don't know how the Go community feels about this, but I don't like the idea o
232.
▲
by
clusmore
10y ago
The linked article doesn't elaborate on the "return structs" part. Personally I prefer to return only the bare minimal functionality that your caller should expect, so that they don't depend on something they shouldn
233.
▲
by
clusmore
10y ago
It's funny that I agree with you and my first instinct was to upvote (and I did). But I can justify that as being because "it's an interesting point that I think more people should read." I think people will always want
234.
▲
by
clusmore
10y ago
I'm getting JavaScript errors in Chrome. Uncaught ReferenceError: $ is not defined at https://milankragujevic.com/app.js?v2:116:1 Refused to load the script 'data:application/javascript;base64,KGZ1bmN0aW9
235.
▲
by
clusmore
10y ago
Yes, it took me a while to "realise" (or perhaps "accept") this as well. What is machine code? Code that a machine can execute natively? What if I built a machine that had primitive instructions for JavaScript? Then Java
236.
▲
by
clusmore
10y ago
I hadn't through of doing that, good idea.
237.
▲
by
clusmore
10y ago
Very interesting. I've had something like this on my todo list for a while, and one feature I would love to try is a distributed heap using something like Datomic that you would do large allocations on so that you can care even less ab
238.
▲
by
clusmore
10y ago
Thanks for clarifying. Off-topic, but related to undefined in Haskell, I love holes in Idris as a way to represent incomplete programs. I'd love if it somebody could take them one step further and have it so that if a hole is evaluated
239.
▲
by
clusmore
10y ago
I agree it's better, you will get a compiler warning about a partial function. I did actually mean worse though. The GP at least to me implied that Haskell (for cases like this) sits in the lowlands between Idris (and other dependently
240.
▲
by
clusmore
10y ago
>This sort of code is trivial in a dynamically typed language: there's no requirement to prove anything ... we just go ahead and use whatever code we like, and hope that we didn't mess something up. >the [Haskell] type syste
More ›