Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
goto11
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
goto11
4mo ago
C# was always better than Java as a language. The strength of Java is the ecosystem, and Java being open source and cross-platform from the beginning.
2.
▲
by
goto11
4mo ago
Yes, you must have individual constructors for the left and right cases in order to distinguish them. In C# you would use two distinct record types for this. Haskell’s syntax is more concise though, since you define the constructors inline
3.
▲
by
goto11
4mo ago
You cant have a `type Foo = String | Strimg` in Haskell either.
4.
▲
by
goto11
4mo ago
Well it is a type union. The union of string and string is just string.
5.
▲
by
goto11
2y ago
There is no "the interest of the people". There are lots of different people with different and often conflicting interests.
6.
▲
by
goto11
3y ago
Half of his clever quotes are completely bonkers though and have been disproven by history. How many of you are proving your programs correct before entering them into the computer? Because that is the only correct way to program. And remem
7.
▲
by
goto11
3y ago
The GOTO-paper is widely misunderstood though. It is making a case for blocks and scopes and functions as structures which makes it easier to analyze and reason about the execution of complex programs. The case against unconstrained GOTO fo
8.
▲
by
goto11
3y ago
Sure, you can use parentheses everywhere, but the code would be quite noisy. Do you think this: ((window.location).href) == foo; is more readable than: window.location.href == foo;
9.
▲
by
goto11
3y ago
Thank you for this additional context. So in short, bitwise operators have lower precedence than comparisons to allow you to write: if (a==b & c==d) ... but of course, this means you can't write bitwise checks like this:
10.
▲
by
goto11
3y ago
I think it would be adopted exactly as widely as JavaScript is. People choose JavaScript because it is supported by the browser, not because they think it has a beautiful syntax. If some other language has been supported instead (whether V
11.
▲
by
goto11
3y ago
Netscape had market dominance at the time so Internet Explorer had to keep bug-for-bug compatibility with Netscape to keep up. Given the amount of bugs and the lack of documentation of JS, this must have been quite frustrating for MS who wa
12.
▲
by
goto11
3y ago
Scheme would probably be the most hated language in the world.
13.
▲
by
goto11
3y ago
> Manage your time better. Thank you for the advice which is no doubt well-intentioned. But don't kid yourself. If you use your spare time for research and development to solve problems at work, then it is not really a hobby, it is
14.
▲
by
goto11
3y ago
Are you perchance working in academia? Your suggestion seems to assume unlimited time and resources to write everything yourself, while the purpose of using third-party components usually is to save time and resources.
15.
▲
by
goto11
3y ago
> Identifying high-quality libraries and frameworks that meet your project needs This is a really important skill that I find difficult and frustrating. Does anyone have good advice or resources?
16.
▲
by
goto11
3y ago
But this is just computed gotos. There is no continuation passed. Arguably the main point of continuation-passing style is that you pass a continuation along with the jump. Hence the name.
17.
▲
by
goto11
3y ago
GOTO does not pass a continuation though, so I can't see how it is similar to continuation-passing style. GOTO is just a jump like jumps in machine code. BASIC does not have notion of a continuation as a value.
18.
▲
by
goto11
3y ago
> "When I was younger, I looked at my great grandad's prisoner-of-war diaries and I just love everything about the period." Is this some kind of understated British humor?
19.
▲
by
goto11
3y ago
The Grimm Brothers didn't write the stories, they collected and published folktales. In any case they would have been been out of copyright since Jacob Grimm died in 1863. Disney didn't mind paying for the rights if they wanted to
20.
▲
by
goto11
3y ago
It is still type inference though. If 2 is an int, the compiler perform type inference to figure out that the expression 2 + 2 is also an int. It is just that traditional languages only use type inference for expressions, not declarations.
21.
▲
by
goto11
3y ago
But that would only help you if you assign the numeric literal directly to a variable. If you use it in an expression like `foo(10)` or `10 * bar` you would still not see the numeric type specified. So if you want the type to be always expl
22.
▲
by
goto11
3y ago
And digging a step deeper: Over-engineering often happen because you think you might need the complexity later, but it will be more difficult or risky to extend the system at a later time. E.g. starting out with a microservice architectur
23.
▲
by
goto11
3y ago
Collapsing margins was a sane default in the original use case of CSS - text documents with sections and headers. But it is not intuitive when working with GUI components.
24.
▲
by
goto11
3y ago
Box office across all three of the sequel trilogy moves. The same is the case for the three movies in the original trilogy btw, so I guess we should conclude that "Return of the Jedi" was the only Star Wars was movie people actual
25.
▲
by
goto11
3y ago
The general audience does not care about any of that though. Star Wars is beyond ridiculous in the first place - I mean how does "light-sabers" make any sense? What matters to the general audience is there are relatable characters
26.
▲
by
goto11
3y ago
Solo probably failed because the average cinema-goer does not want to see a Han Solo spin-off with Harrison Ford replaced by an unknown B-list actor.
27.
▲
by
goto11
3y ago
> many of them didn't bother watching the next one. The third movie was still one of the most successful movies of all time.
28.
▲
by
goto11
3y ago
Quality is of course subjective, but I'm questioning whether the audience scores on RT represent what the audience actually thought. Given how easy it is to game scores on such sites by review bombing, I'd take box office as a mor
29.
▲
by
goto11
3y ago
The Last Jedi was incredibly successful. According to Wikipedia is " the highest-grossing film of 2017 and the ninth-highest-grossing film of all time ." I have a hard time believing an audience score of 41% accurately reflects th
30.
▲
by
goto11
3y ago
RT ratings are weird because they don't reflect how much critics liked a movie, only whether they rated it "positive" or "negative". The movie with the highest rating ever is Paddington 2 - not because any reviewe
More ›