Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kenbot
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
31.
▲
by
kenbot
14y ago
This is a commonly made argument, but it's silly. The wars in Iraq and Afghanistan were declared by the secular government of a secular state for geopolitical reasons. Most of the individuals are Christian, but the war and tactics have no
32.
▲
by
kenbot
14y ago
Making things like if/else/switch statements true expressions is a great feature, but I'm not sure it deserves a new foo-oriented programming buzzword.
33.
▲
by
kenbot
14y ago
I find preconceptions bite ass way harder when you try to design big things all at once. If you grow them you can pivot and refactor more easily while they're small.
34.
▲
by
kenbot
14y ago
That's certainly true. I'd argue though, that most code is in a position where good naming and tests provide sufficient clarity, without requiring free-text comments.
35.
▲
by
kenbot
14y ago
Sounds to me like tests could have helped your code far more than any comments would have.
36.
▲
by
kenbot
14y ago
Scala's feature-space is admittedly crowded, but there is a method to the madness. Scala's core design is generally to use a small number of rules to create a wide range of possibilities; the macro design they've chosen fits right in. At th
37.
▲
by
kenbot
14y ago
Granted macros are a two edged sword complexity-wise, this implementation is no exception. I think this is generally true for macros in other languages though. Scala's "self cleaning" reify/eval mechanism is practically free syntax-wise -
38.
▲
by
kenbot
14y ago
Do you mean the macros specifically, or Scala in general?
39.
▲
by
kenbot
14y ago
I'm sure it's cold comfort to someone learning it, but I've always liked having English history baked into the language. Saxon, French, Latin and Greek words are all readily identifiable by their spelling, unlike say, German or Italian wher
40.
▲
by
kenbot
15y ago
Regarding the for loop, it's not magic either. "For comprehensions" in Scala are a wonderful syntax sugar that can look like familiar "for loops" for Java folk, or familiar "do loops" for Haskell folk depending on how you use them. But t