Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dan00
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
130 ms
·
181.
▲
by
dan00
11y ago
> If the banks were going to default without taxpayer help, why didn't we just nationalize them and let the share holders take the loss they themselves have set themselves up for? That sounds a bit like only risk-taking share holder
182.
▲
by
dan00
11y ago
> I called my local elected representative about it, SPD (social democrat), and "voiced my concern", but only got met with talk about chain reactions and responsibility. Perhaps I shouldn't have shouted. I think the proble
183.
▲
by
dan00
11y ago
It's all about specializing code to a certain type at compile time and therefore removing any kind dynamic dispatch during runtime.
184.
▲
by
dan00
11y ago
You can't push your changed commits without forcing them, and if you force them, then you're overwriting the remote repo and all guys having a clone will have "fun" on their next pull.
185.
▲
by
dan00
11y ago
I don't know if it's such a good idea to start by showing how easy changing commit messages is or even have this option that easily available, because after all you're changing the history and the beginner might not be aware
186.
▲
by
dan00
11y ago
Strange, I just restarted spacemacs and now 'ci(' works. In the previous session I've changed some settings and that seems to have irritated spacemacs. 't' is for html tags so pressing 'cit' anywhere on &#
187.
▲
by
dan00
11y ago
> I switched a few months ago and I must say I'm really impressed: there is (nearly) no Vim feature I miss! Well, I just tried it literally for a few seconds and just stumbled over the not working text objects. I really like things
188.
▲
by
dan00
11y ago
I just followed the installation description and during the first start of emacs (after the 'git clone' of spacemacs) several things get downloaded and installed, and then I got asked if I would like to have vim or emacs like keyb
189.
▲
by
dan00
12y ago
Wouldn't it be smart to add one easy recognizable and breakable tracking system and another more hidden one? ;)
190.
▲
by
dan00
12y ago
> The big picture is that computer programming is a field with low barriers to entry and where young people have a significant advantage. Computer programming isn't just one field, there're several completely different fields.
191.
▲
by
dan00
12y ago
pub trait SomeTrait { ... } pub fn some_function<T: SomeTrait>(arg: T) { ... }
192.
▲
by
dan00
12y ago
> getLine >>= (return . (++) "Hello, ") >>= putStrLn A pointfree solution - if you want one - would be more in the form of: getLine >>= putStrLn . ("Hello, " ++) It's really mostly abou
193.
▲
by
dan00
12y ago
> Haven't yet written any Rust code, but aren't those two things contradicting each other? I don't think so. One way to ensure that data isn't mutated by different parts of a program, is to have immutable data structu
194.
▲
by
dan00
12y ago
> Fwiw, that's one instance where unnecessary information/features were removed I would rather had been preserved. If the information isn't necessary to reason about your program, to write a correct and performant program,
195.
▲
by
dan00
12y ago
> It feels much easier to reason about but then again maybe that's just because I'm more familiar to it. I'm a professional C++ programmer for a decade and have started to look into Rust, and there's no way that C++ i
196.
▲
by
dan00
12y ago
I think it's easy for technology-minded folks to overestimate the impact of the weaknesses, and underestimate the deep complexity of the strengths. I'm also really astounded when I'm reading the answers about self driving c
197.
▲
by
dan00
12y ago
> However, the question I have been struggling with lately has been: how do you pick up something new later on in life? > If you start to learn basket-weaving at 40, you are not going to be a great basket-weaver. > If you start pro
198.
▲
by
dan00
12y ago
Like buovjaga rightly points out, Linus says "suicidal" and not "suicided". Sorry for that, I seem to have misheard it.
199.
▲
by
dan00
12y ago
Oh, thanks, I just heard it again and yes, Linus says "suicidal", at the time I might just heard "suicided".
200.
▲
by
dan00
12y ago
Linus told a story about a guy, that wrote something for the kernel and Linus thought in the first place that it was more or less bullshit, but didn't told it directly to the guy, so when the guy was finished and wanted to get his stuf
201.
▲
by
dan00
13y ago
Perhaps you wouldn't be as good without these "downtimes". I think a lot of the true potential thinking is just misguided.
202.
▲
by
dan00
13y ago
> There is an unimaginable amount of suffering in this world. Around 150,000 people die each day. About 5 million children die each year. Millions of people are maimed or killed by accident, disease, and violence. Considering this
203.
▲
by
dan00
13y ago
It might be a satire on filtering comments by "certain" words.
204.
▲
by
dan00
13y ago
> who gives a shit? The problem with this line of thinking is, that you might ask yourself: why should I give a shit about life at all? What is than the point of life? I'm not saying, that the "universal" perspective can&#
205.
▲
by
dan00
13y ago
Well, I'm more or less a programming language nerd and these kind of things just hurt =). Just try to pass a 'map' or a 'struct' to an other function. The 'map' behaves like passed by reference and the &#x
206.
▲
by
dan00
13y ago
Well, but this again works: type pair struct { x, y int } func main() { var p pair fmt.Printf("%d\n", p.x) fmt.Printf("%d\n", p.y) } That's just wrong, that dec
207.
▲
by
dan00
13y ago
Thanks, that makes sense. So the 'make' function is more about the reserving of memory.
208.
▲
by
dan00
13y ago
Is the documentation of go regarding the 'map' data type and the usage of the function 'make' out of date? Because I can't see any difference in: package main import ( "fmt" )
209.
▲
by
dan00
13y ago
> An alternative that worked really well for me is "do not push broken code". Linus is saying "If you pull at a random time, you might get cruft in your local tree". Why is that? It's not about pushing broken cod
210.
▲
by
dan00
13y ago
> I'm not sure to understand the point about rebase destroying the history. Does he speak specifically about `git rebase -i` ? When rebasing, you're at least changing a parent commit and therefore changing all of your rebased c
More ›