HN user

Autre

343 karma
Posts26
Comments31
View on HN
www.carlopescio.com 13y ago

Ask not what an object is, but...

Autre
1pts0
www.kobrix.com 14y ago

Seco: a software scripting, prototyping environment for the Java platform

Autre
2pts0
axisofeval.blogspot.com 14y ago

Small data and humble sequentialism

Autre
1pts0
news.bbc.co.uk 14y ago

Obituary: Socrates

Autre
3pts0
kazimirmajorinc.blogspot.com 14y ago

Missing Link Between Code and Data

Autre
6pts1
axisofeval.blogspot.com 14y ago

Praising Kernel (The Axis of Eval)

Autre
67pts10
tweeplus.com 14y ago

Twee+: Longer tweets, no strings attached

Autre
1pts0
blog.fogus.me 15y ago

Self

Autre
6pts0
blog.redline.st 15y ago

Smalltalk in small talks: The Setup

Autre
21pts3
matt.might.net 15y ago

Yacc is dead: An update

Autre
93pts18
www.slideshare.net 15y ago

Proxies are Awesome (Brendan Eich on the upcoming features of ES5)

Autre
3pts0
howtonode.org 15y ago

Creating safe and composable 'mixins' with traits.js

Autre
3pts0
blip.tv 16y ago

Jed Schmidt (the (fab) guy) - JSConf 2010

Autre
1pts0
github.com 16y ago

Raganwald's latest project.

Autre
2pts0
www.spinellis.gr 16y ago

Applied Code Reading: Debugging FreeBSD Regex

Autre
5pts0
www.spinellis.gr 16y ago

How to Create a Self-Referential Tweet

Autre
58pts25
www.spinellis.gr 17y ago

A Tiny Review of Scala

Autre
19pts1
confusedofcalcutta.com 17y ago

The Death of the Download?

Autre
4pts0
blog.cosmix.org 17y ago

Not so Heavy and definitely not Crap.

Autre
1pts0
blog.cosmix.org 17y ago

One Big Problem.

Autre
1pts0
funcall.blogspot.com 17y ago

You knew I'd say something (Part II)

Autre
7pts0
github.com 17y ago

Vilfredo Pareto on Software Product Management

Autre
1pts0
www.roughtype.com 17y ago

Complete control

Autre
2pts0
prog21.dadgum.com 17y ago

Revisiting "Purely Functional Retrogames"

Autre
3pts0
webpy.org 17y ago

webpy 0.3 released

Autre
26pts6
www.catonmat.net 18y ago

Designing a Reddit Media Website

Autre
1pts0

The interesting thing here is: why do big companies don't need to keep their talents? Does bureaucracy compensate for lack of talent? And vice versa? Does this also mean that you can innovate without talent?

I was deliberately excluding the constructor situation. I should have made that clearer in my previous comment. I think the way out of the constructor mess is not to require them at all.

I do think the Object.getPrototypeOf approach is feasible for methods.

Yeah, it gets really hairy, really quickly.

Beyond the need for calling the constructor (which I'm currently viewing it as an unnecessary hidrance [objects are already initialized]), Object.getPrototypeOf may provide a way out - but maybe not the way you intended. Have you considered it?

Yeah, but would you be willing to read and develop, say Cassandra, in ed? I, for one, wouldn't. One more thing: would you be able to?

  If you've made changes to your profile, you may force a refresh by pointing your browser to hackerhub.org/r/yourid.

Well, I have to argue that it's not the same pattern. I think the problem is that you still like to believe that js has classes, which it doesn't: js has got objects only. That it also has constructor is an (admitted?) historical mistake. Just think of all the weird crap that goes on to make `new func()' work and produce a new object.

What is no mistake is the refreshing change of view you get when you start embracing objects and prototypal inheritance. See for example the traits library[1, 2].

[3]: Is a cursory introduction to Self, with another points example :)

[4] Contains an example of my own (heavily inspired by Self and Io). I have stitched together various internet sources to come up with `clone', an operator assisting in differential inheritance.

[1] http://traitsjs.org/

[2] http://code.google.com/p/es-lab/source/browse/trunk/src/trai...

[3] http://www.cs.aau.dk/~bt/DAT5E08/MarkusKrogh1.pdf

[4] https://gist.github.com/997910

I don't see how Object.create goes against the grain of the lang. On the contrary, `new' was bolt on to make js look like classical oo languages. I have found, in toy and exploratory projects at least, that using variations on Object.create [1] is a nice, strong pattern, that really gets the best out of js. It certainly feels more natural than class based oo. Though, take it with a grain of salt, since I'm unable for now to provide an example backing my thesis :)

[1] https://developer.mozilla.org/en/Differential_inheritance_in...

Just tried the following:

  for (var i = 0; i < 10; i += 1)
    eval("function function_" + i + "() { print('i am ' + i); }");

  for (i = 0; i < 10; i += 1)
    this['function_' + i]();
but it seems like eval is not supported yet - i guess for good reasons.

Well, i'm not sure about that. Aren't we expected to be professionals and act like ones on any given job? Should we just eschew Knuth and express ourselves? Don't think so.

OTOH, it seems like something is clearly wrong here since, we are having a tough time being professional and working with the current crop of languages, tools, technologies, etc and in the same time, fully expressing our vision while enjoining our work.

It's my understanding that JSqueak was (is?) just a toy. OTOH, redline aims to be a full blown implementation of smalltalk that integrates with the jvm like jruby, scala, clojure, etc do. As you can see from the github repo, it's still pretty much a work in progress (plus a learning tutorial for interpreters/compilers).

Programming FAQ 16 years ago

It keeps hitting me as a contradiction these two suggestions, namely: a) that you have to understand design to be a good hacker; and b) that planning is overrated.

How can you get to a good design without some plan? Could someone shed some light?