Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Shamanmuni
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
Shamanmuni
12y ago
You better get over that problem because, depending on the language and context, you will find function written as fn, func, def, ->, lambda and many more. Some languages even don't offer a keyword for it. In Rust, the function keyw
32.
▲
by
Shamanmuni
12y ago
The fork means nothing dramatic. I'll make a short summary of both positions: Typesafe: we need to offer our clients a good guarantee on stability and compatibility with Java 8 or they won't take Scala seriously. So, for the momen
33.
▲
by
Shamanmuni
12y ago
I don't think there's a contradiction. Modern philosophy never claimed to be science, while modern Theoretical Physics (science) in many parts strongly resembles philosophy, as you said, while never acknowledging it. Theoretical P
34.
▲
by
Shamanmuni
12y ago
You are completely missing the point. He didn't say that beliefs are disconnected from actual historical events, but that written down beliefs shouldn't be held as unquestionable truths. For example, if the Bible says that God cre
35.
▲
by
Shamanmuni
12y ago
I feel this kind of reasoning is weird. If an author writes a book as a part of a series he's clearly telling you "this book is part of a bigger story which I have my most sincere intention of telling and reaching its conclussion,
36.
▲
by
Shamanmuni
12y ago
It has some minor issues, sure, but I'm completely missing the atrocious part. In fact, I think it's quite nice, hope to use this UI soon. It would be great if you could send an email to the developers with your observations as, y
37.
▲
by
Shamanmuni
12y ago
I get the feeling that many programmers have been bitten by weak typing too many times and have come to appreciate the benefits of stronger typing. If you want to apply defensive programming, which is always a good idea, you usually encount
38.
▲
by
Shamanmuni
12y ago
It's similarly trivial to make syntactically correct code that breaks in Go. Example: if (a == 1) { return a } else { return b } This won't compile in Go. But whitespace wasn't significant in Go, right? Take ou
39.
▲
by
Shamanmuni
12y ago
Sorry, I forgot, you can also do this in Python: def my_func():a=1;return a; Try it, it works!
40.
▲
by
Shamanmuni
12y ago
Did you know that almost all your example is perfectly doable in Python? Try this: def my_func ( ) : a = 1 return a It will run without a problem because only leading space is
41.
▲
by
Shamanmuni
12y ago
Problem 1: you have a slightly old machine (512MB or 1GB of RAM) or something like a Raspberry Pi and you want a resource-efficient but modern-looking desktop. Problem 2: you want a VM with a DE but don't want to spend too much resou
42.
▲
by
Shamanmuni
12y ago
> What it sounds like you're saying is that programming languages should not require expertise. No, I think he says that C++ is overly complex and unsafe without a real need for that complexity and unsafety. And it seems that what y
43.
▲
by
Shamanmuni
12y ago
I think the way Go treats coding styles is great. I don't have any problems following a one true convention enforced by the language and being aware about the minute details of code structuring in order to avoid problems in translation
44.
▲
by
Shamanmuni
12y ago
It means that you have to be careful about how you treat whitespace (mostly newlines and how they relate to curly braces), otherwise a semicolon could be inserted where it shouldn't or gofmt could format your code in a way you didn
45.
▲
by
Shamanmuni
12y ago
I know it's crazy difficult to do it, that's why I was talking about dreams. But maybe a set of guidelines about translatable C code plus a translator which is good enough for a variety of cases would make refactoring the resulti
46.
▲
by
Shamanmuni
12y ago
It's great that they are aiming for an automated conversion from C to Go. It's clear they aspire to convert their code which was written in a certain way. But I think it would be a huge boost in Go usage if they could eventually
47.
▲
by
Shamanmuni
13y ago
Thank you. I think I understand what you say but I simply disagree. einhverfr worked at Microsoft but it's fallacious to think that his view can't be naive because of that. For me copyleft without assignment is the safer choice, t
48.
▲
by
Shamanmuni
13y ago
Copyleft licenses are more conductive to dual licensing because they give you no other choice if you want to sell a closed source premium version. That's the only reason. And for that to work you have to get copyright assignment. I thi
49.
▲
by
Shamanmuni
13y ago
Well, I was surely thinking about the option without copyright assignment. Everybody giving assignment to Microsoft? Yeah, that's a bigger and much more obvious trap. I don't understand what was so upsetting about my previous comm
50.
▲
by
Shamanmuni
13y ago
I don't know, I see this as a good sign but for me it's still "too little too late". At least release it under a copyleft license, make it usable with previous versions of Visual Studio (it only works with 2013) and I&#x
51.
▲
by
Shamanmuni
13y ago
That's a major point of the article. In his work you have a part in which he identifies the problems (eg Das Kapital) and another part which proposes a solution (eg The Communist Manifesto). In medical terms Marx made a good diagnosis,
52.
▲
by
Shamanmuni
13y ago
I get that it can be a bit easier in the eye, but for me this style doesn't work on many levels. 1) You have to scroll a lot, and scrolling means a tiny pause, move to the next point and resume reading; which done regularly becomes dis
53.
▲
by
Shamanmuni
13y ago
That's odd, I found the 100 doors example is the most efective way of explaining it. It's easy, pick a door, then the host discards 98 doors in which the car isn't. Do they still think that the probability of the other door l
54.
▲
by
Shamanmuni
13y ago
Well, we have millions and millions of people using Windows, and in my experience when viruses and malware affect them, they usually blame themselves more than Microsoft. So, no, I don't think they'd put the blame in Apple. And if
55.
▲
by
Shamanmuni
13y ago
Oh, I think you are right, esr was talking about using GCC as a plugin and I understood plugins for GCC. Apparently Alexandre Oliva and many of us made the same mistake. Considering that, I mostly agree with David Kastrup; it doesn't m
56.
▲
by
Shamanmuni
13y ago
There's a reply to esr by Alexandre Oliva which touches this point. I'll quote what he says: "That GCC plugin interface is not sufficiently stable for major uncoordinated developments by third-parties is just as true as that
57.
▲
by
Shamanmuni
13y ago
Most of what's usually said about Steve Jobs' role in Pixar is a complete myth. It's quite outrageous the level of falsehood when you read about it from those who were there before Pixar was big. For starters, Steve Jobs didn
58.
▲
by
Shamanmuni
13y ago
You don't fool anybody, the subject didn't come up untill you brought it. The thread is about a site that shows examples of Go code and explains them, there's no discussion about the advantages or disadvantages of their desi
59.
▲
by
Shamanmuni
13y ago
I tend to think that you and the rest of "Generics or death!" crowd make a disservice to your own cause when you lazily come and repeat the same arguments. The rest gets bored and frustrated. Yeah, we get it, you like generics, it
60.
▲
by
Shamanmuni
13y ago
I suspect many of us use Git because it was made by Linus Torvalds ( I think everyone agrees that he is a great developer) and is used in the Linux kernel. If it can handle that, then you can be pretty sure it will handle whatever you throw
More ›