Better HN
topnewbestaskshowjobs
Log inSign up

Cardinal

6 karma · joined Aug 14, 2011 (15y ago) · 5 submissions

Submissions

comment 14y ago · link · parent

It has to be Java Concurrency in Practice. Even though it has Java in its name I think every programmer should read this.

Other books I absolutely loved are Effective Java 2 and Programming Interviews Exposed. I'm waiting for Amazon to ship me the second edition of the latter.

Hackers and Painters is a classic I default to whenever I'm looking for inspiration.

2.

Ask HN: What are the interesting/inspiring people to follow?

2 points · by Cardinal · 15y ago · discuss

comment 15y ago · link · parent

Thanks.

comment 15y ago · link · parent

I have a Java background and I don't really use JavaScript, but I'd like to understand something :

var man = fromPrototype(person, { sex: "male" });

After this code runs, we have a reference to a function (man) inside which we declare an object (newObject) for which we define the new property (sex). That means we can now call newObject.sex

But later he's calling that property on the function itself : jeremy.sex

How is this possible?