Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
snprbob86
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
snprbob86
13y ago
You're dangerously close to trolling, but I'll comment anyway. > a "I hate parens" Lisp-1 Clojure's minimal syntax is, in my opinion, a gigantic improvement over Common Lisp. And I say this as a person who quite likes parens. I feel sim
62.
▲
by
snprbob86
13y ago
See: https://github.com/angular/angular.js/blob/9480136d9f062ec4b... Looks like they are never interpreted, but there are (at least) two different compilation strategies: 1) Anonymous function with a loop 2) Fully compiled Function constr
63.
▲
by
snprbob86
13y ago
At least in Clojure, it's considered bad form to extend your own protocols (aka instance type classes) to types you don't own. Isn't that also true of Haskell? Haskell's type classes, unlike ML functors (I think), are "coherent", which mean
64.
▲
by
snprbob86
13y ago
I've worked on quite a few different large code bases. I agree with the author 100%. Tests are a tool. They are a particularly useful one, but they are just a tool. Unit tests are significantly less useful than TDD folks would have you beli
65.
▲
by
snprbob86
13y ago
Not necessarily more, but it would require a different distribution. Money would need to be spent to relocate the prisoners. Congress has blocked that reappropriation. Quoting Wikipedia: On May 20, 2009, the United States Senate passed an a
66.
▲
by
snprbob86
13y ago
This is something I've been experimenting with. My intuition is that the scene graph will look a lot more like an AST made from algebraic data structures than an OOP actors network. Down that road, the system looks like an optimizing compil
67.
▲
by
snprbob86
13y ago
> just keep on hacking on his fork. I know I would use it. Correct me if I'm wrong, but isn't the problem that Linus brought up this: If you introduce a new object type, you need to get it right. A new object type would create non-backw
68.
▲
by
snprbob86
13y ago
Warning: Shameless self promotion I implemented a concatenative DSL for Clojure called Factjor [1] inspired by Factor [2]. Clojure is to Lisp what Factor is to Forth. I used Factjor to implement DomScript [3], which is sorta like jQuery re-
69.
▲
by
snprbob86
14y ago
I'd be curious to see how much revenue this would generate for the government. I can't help but wonder if this is only a target because of its visibility. Even if this brought in an extra $1,000 per each of 10M IT workers in the US, that's
70.
▲
by
snprbob86
14y ago
I'm a gamer. I genuinely believe that there's a lot to be learned from games via playing, studying, or building them. I know what it's like to have non-gamers look down at your time gaming and view it as worse than unproductive. However, ev
71.
▲
by
snprbob86
14y ago
Clojure maps generally have keywords as keys and keywords are callable as getters: (map :title orders) Is analogous to: (map #(get % :title) orders) Which is shorthand for: (map (fn [order] (get order :title)) orders
72.
▲
by
snprbob86
14y ago
Same here. If it's a nice day in NYC, I'll often opt for a very long walk between meetings. If I stop for a coffee, as I tend to do, I usually try to memorize the directions to where I'm going. Failing that, I have to either put my coffee d
73.
▲
by
snprbob86
14y ago
Disclaimer: I know practically nothing about Rust outside of observing from the HN side lines. Looking at the change log, it seems that they also removed the "static" keyword, so that class vs member methods are distinguished by the presenc
74.
▲
by
snprbob86
14y ago
My girlfriend is a flight attendant. She, and many of her co-workers, are very upset about the new pocketknife policies. Mainly, the issue is this: She's still not allowed to carry one. Company policy: She could lose her job upon uniform in
75.
▲
by
snprbob86
14y ago
Our pitch deck had a timeline slide where there was a horizontal line annotated with months. I jokingly suggested to our CEO/Designer that it should go up and to the right. He chuckled and asked "What should be on the Y axis?" We decided on
76.
▲
by
snprbob86
14y ago
Three files side by side is extremely common for those of us who have to regularly resolve merge conflicts. You put the common ancestor in the middle and the diverging changes on either side, then you edit both sets of changes in to that mi
77.
▲
by
snprbob86
14y ago
Luckily, most code is indented 1 to 4 levels at 2 or 4 spaces per indent. This means that typical code width is limited to be anywhere from 78 to 64 characters wide. That's 77 to 63 if you're actually going with 79 characters, which is what
78.
▲
by
snprbob86
14y ago
This has been covered over, and over, and over again. CoffeeScript has some explicit goals with respect to the generated JavaScript output, and that includes not mucking with your identifiers. In order to implement correct lexical scoping,
79.
▲
by
snprbob86
14y ago
Tries are basically just sorted prefix trees, and you're right, they form the basis of sorted maps and sets in Clojure. However, Clojure also has https://github.com/clojure/data.finger-tree for cases where tries don't make sense: namely,
80.
▲
by
snprbob86
14y ago
First: I'm always skeptical. I fear how easily it would be to be marked with a scarlet letter. I rather 10 guilty men go free, for any crime of any magnitude, than have 1 innocent man be punished. Second: Murder yields a body. Theft creates
81.
▲
by
snprbob86
14y ago
Of course you can, but almost no one does. If people started to do it a lot, it would be just as interesting as it is with Clojure.
82.
▲
by
snprbob86
14y ago
I don't really appreciate the fact that the suspect is named publicly, but the victim is not. It should be either neither, or both, preferably the former. Every time I see an article about rape, there are hints of bias to full on conviction
83.
▲
by
snprbob86
14y ago
Never mind the fact that tail cails are just fundamentally loops, which don't generate any stack frames anyway! If you're application is complex enough that inspection won't reveal the source of the bug, then stack traces are almost strictl
84.
▲
by
snprbob86
14y ago
Through the lens of this example, Lisp does not offer any advantage. In fact, I'd argue, that Python, Ruby, JavaScript, C#, and even Haskell are simply explorations of this example, and others like it, with intentional ignorance of some of
85.
▲
by
snprbob86
14y ago
Yes, but also remember that you'll get loud warnings about non-fast-forwards thanks to the cryptographically secure SHA1 hashes. This means that the repo admins and downstream clones can trivially detect history rewrites for branches they h
86.
▲
by
snprbob86
14y ago
If they are co-dependent, then that, by definition, means that they are not independent. What value do you get by having co-dependent modules that you can't get by having a single module? If you want two public APIs with one common implemen
87.
▲
by
snprbob86
14y ago
Likewise, Scala's "for" loop compiles to calls to map and flatMap, which are the same as Select and SelectMany, which represent the list monad. You can use map, flatMap, and for notation in lieu of a more generally named do syntax.
88.
▲
by
snprbob86
14y ago
> That is not what users expect. It is called a timeline for a reason. Is that reason because things are roughly sorted by time? It's a timeline of interesting events in the recent history of your friends and interests. Being a "timelin
89.
▲
by
snprbob86
14y ago
"Sort By: Most Recent" ?
90.
▲
by
snprbob86
14y ago
Personally, I think Facebook would be broken if every message every person or group I'm connected to made it directly into my feed. The feed has been algorithmic for a very long time and paid placement is neither a surprising nor nefarious
More ›