Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
olavk
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
olavk
8y ago
If you only write code which you yourself will read and maintain, then you should definitely do whatever you feel works best for you and matches your way of thinking.
2.
▲
by
olavk
8y ago
Well written code is obviously better than badly written code. But why assume the functional-style is better written than the idiomatic Python? I think a good developer understand the context they work in rather than try to fit a square peg
3.
▲
by
olavk
8y ago
I believe it started as a way to model real-world object. Simula was designed for simulations. But OO turned out to be useful for much more. The simulation use case mostly live on in tutorial and examples, spreading confusion to beginners
4.
▲
by
olavk
8y ago
I like removing superfluous punctuation, but if parentheses are removed from method signatures than they should also be removed from invocations, which in turn comes with its own set of readability issues. I'm not a fan of the $ operat
5.
▲
by
olavk
8y ago
Haskell does not have borrowing and lifetime specifiers though, which is what makes the Rust example more dense.
6.
▲
by
olavk
8y ago
It is somewhat unfair to compare this to Python, since a lot of the simplicity in Python comes from the semantics (dynamically typed, garbage collected and so on). Rust need to express all this information (types, lifetimes etc.), so it w
7.
▲
by
olavk
8y ago
What editor does not support indenting a block? In most editors I know you select the block and hit tab, or shift-tab to outdent.
8.
▲
by
olavk
8y ago
So again a pet hypothesis which can explain both rising and falling IQ. So what observation could theoretically disprove this hypothesis? Note that you can state exactly the opposite hypothesis and still claim the numbers support it. Th
9.
▲
by
olavk
8y ago
> The roman civilization used lead pipes for drinking water. True, but the theory that this affected public health is a myth.
10.
▲
by
olavk
8y ago
Amazing that the same pet hypothesis can explain both rising and falling IQ.
11.
▲
by
olavk
8y ago
So why is IQ increasing in the US while declining in Northern Europe?
12.
▲
by
olavk
8y ago
So why is this happening in Scandinavia but not in the US? Doesn't the US have just as many play stations and smartphones?
13.
▲
by
olavk
8y ago
Django is not going to be rewritten in Julia. Neither is Linux going to be rewritten in Python. Different languages have different domains. Some of these comments seem to think all languages is competing in the same domain as if Rust is a d
14.
▲
by
olavk
8y ago
Rust will not steal Pythons dinner, they are used for completely different domains. The comment was saying that Rust might be a realistic alternative to C/C++/Fortran for modules which are not written in Python.
15.
▲
by
olavk
8y ago
Good point about the learning curve. I don't think Rust is especially difficult overall, but you need to understand a lot before you get anywhere. Haskell kind of have the same problem, where you need to understand advanced features li
16.
▲
by
olavk
8y ago
Comparing Haskell to JavaScript is silly - JavaScript is popular because it is the only option in the browser. It has noting to do with the quality of the language itself. If VBScript had won, everyone would be using that. If Netscape had d
17.
▲
by
olavk
8y ago
PEP-8 (more than 15 years old) recommend spaces, so unless you are deliberately looking for a fight, the question is settled. Autoindent is a solution to a problem that doesn't exist in Python in the first place. Having two independent
18.
▲
by
olavk
8y ago
You will see a lot of caricatures and ethnic stereotypes in Asterix. Primarily of European and Mediterranean nationalities though. A lot of the stories are Asterix and Obelix traveling to some region and all the stereotypes of that region
19.
▲
by
olavk
8y ago
The Icelandic sagas certainly also portrays emotions. The characters are very much driven by emotions. The point is it is displayed entirely through their actions, not by internal monologue or direct description of their mental states like
20.
▲
by
olavk
8y ago
I think the "I'm going to get downvoted for this..."-baiting leads to a lot of reflexive upvotes and downvotes regardless of the actual content of the comment.
21.
▲
by
olavk
8y ago
Oh I know Go, just haven't used it for numerical tasks. If Add(x, y) is just as maintainable as x + y, why does Go use operators for the regular numeric types? Why have + at all?
22.
▲
by
olavk
8y ago
Is that really true? Sure you can write cryptic code using operator overloads, but the convention is to only use them in cases where they improve readability. For example numpy code would be a lot less maintainable without operator overload
23.
▲
by
olavk
8y ago
Yeah that is what I meant, sorry for being unclear.
24.
▲
by
olavk
8y ago
True, Python allows a lot of crazy hacks like monkeypatching, dynamically creating classes and so on. It is there if you need it. It is not like in Java where those things are simply impossible. The Python culture on the other hand discoura
25.
▲
by
olavk
8y ago
A small-caps header made only with <font>-tags. From the time when web designers cared about the craft!
26.
▲
by
olavk
8y ago
That theory would assume the men from Adam to Noah are actually historical persons with recorded timespans, and there was just some mistake in interpreting the numbers. But consider that Noah is similar to a character known from much older
27.
▲
by
olavk
8y ago
> The unfortunate reality is that a lot of so-called artists have absolutely nothing to say. Well 90% of everything is crap. That said, I don't think the mark of quality is whether the artist have "something to say". What
28.
▲
by
olavk
8y ago
Exactly. Things like sequels as also classified as adapted. Borat got a nomination for best adapted screenplay because it was based on the character from the tv-show. But the screenplay is supposed to be judged on its own merit, the acade
29.
▲
by
olavk
8y ago
I don't see the paradox though. The problem with the liars paradox is not the self reference itself, the problem is that the self reference leads to a contradiction. I don't see any contradiction the sentence presenting Kuhn'
30.
▲
by
olavk
8y ago
> Most SQL systems provide a 1-to-1 mapping of tables That is a bit weird criticism, since the whole point of relational databases is that the physical storage structure is abstracted away. SQL does not prevent databases from using diffe
More ›