Recent submissions

Comment · 12 years ago
Hey Tim,

I knew what you were trying to get at, but wanted to point out that the sentence that you initially wrote wasn't entirely accurate.

Of course I agree that attitude matters, but skills are certainly important, hence my comment.

Comment · 12 years ago
I know loads of hairdressers that have a good attitude.
Comment · 12 years ago
Oona's work is always amazing. Loads of interesting hardware stuff in her blog. I wish I would be better at some mechanical engineering/electrical engineering stuff, my work is mostly web-related or big data stuff, never really get my hands dirty :(
Comment · 13 years ago
London and Berlin have 3).
Comment · 13 years ago
Cheers, thanks!
Comment · 13 years ago
Alright, got it. Thanks!
Comment · 13 years ago
I didn't watch the numberphile video and just read this.

Can someone explain to me why I am allowed to add a padding zero at the start without taking it out at the end?

By adding it, I am giving the sum an offset, and I can kind of understand why adding zero is not a big deal, but they reasoned:

Then S1 + S1 = (1 - 1 + 1 - 1 ...) + (1 - 1 + 1 - 1 ...)

= (1 - 1 + 1 - 1 ...) + (0 + 1 - 1 + 1 - 1 ...)

= (1 + 0) + (1 - 1) + (1 - 1) ....

= 1 + 0 + 0 ... = 1

But I might as well leave the leading Zero out and argue that:

Then S1 + S1 = (1 - 1 + 1 - 1 ...) + (1 - 1 + 1 - 1 ...)

= (1 - 1 + 1 - 1 ...) + (1 - 1 + 1 - 1 ...)

= (1 + 1) + ( -1 - 1) + (1 + 1) ....

= (2 - 2) + (2 - 2) + (2 - 2)... = 0

Comment · 13 years ago
This is great, thanks! I unminified it first to look at the code, but it looks like its not doing anything nasty.
Comment · 13 years ago
Who has the copyright for these images?
Comment · 13 years ago
Exactly.

The same is probably true for this one here:

public bool ShowOptional() { bool bolReturn = false;

    return bolReturn;
}

There should be descriptions why the code snippets are supposed to be interesting, your and my example just look like legacy code to me.

Comment · 13 years ago
sure, but specific instances of both are sometimes baffling.
Comment · 13 years ago
Yes, if you have an IDE you don't have this problem at all.

I am more with the VIM/Emacs crowd though I guess.

I didn't know though that you could create an "evaluation window" in Eclipse. I really liked the refactoring features in Eclipse though and miss them sometimes.

Comment · 13 years ago
Well, I looked into it but gave up soon-ish because it looked to annoying and my hack was sufficient for me at the time.
Comment · 13 years ago
Ah, I forgot to mention gdb as well. gdb and python hooked me on this way of developing.
Comment · 13 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton