Better HN
topnewbestaskshowjobs
Log inSign up

_getify

192 karma · joined Apr 23, 2013 (13y ago) · 126 submissions

Kyle Simpson is a web-oriented software engineer, widely acclaimed for his "You Don't Know JS" book series and nearly 1M hours viewed of his online courses. Kyle's superpower is asking better questions, who deeply believes in maximally using the minimally-necessary tools for any task. As a "human-centric technologist", he's passionate about bringing humans and technology together, evolving engineering organizations towards solving the right problems, in simpler ways. Kyle will always fight for the people behind the pixels.

[ my public key: https://keybase.io/getify; my proof: https://keybase.io/getify/sigs/SxqB6BQX2LQ92yiAfs1FYql_tPEhCqCGAZhnkap6tVY ]

Submissions

91.

Tale of Two -ends(blog.getify.com ↗)

1 points · by _getify · 13y ago · discuss

comment 13y ago · link · parent

See other comments here about NIH. To attribute my post to NIH mindset is laughable. You obviously didn't read it fully.

I use all kinds of public OSS'd libraries and tools. I just don't use frameworks that prescribe an exact way those should be glued together, nor do I stick my own opinions about how the glue should work out "there" to try and convince others they should do it exactly like I do.

comment 13y ago · link · parent

total strawman. language abstractions are not even remotely the same as framework abstractions inside of a language. apples and palm trees, at best.

comment 13y ago · link · parent

+1. totally agree with that sentiment.

comment 13y ago · link · parent

I post all my tools/libraries publicly on github. I would never have so much hubris as to post some "framework" I created for some site as "The Getify Framework" that everyone else should use. That's completely contrary to the message I'm trying to get out.

Ironically, the site I vaguely referred to in the post WAS actually fully open-sourced. But NOT so that people could look at that code and say "Ah, he's saying that I should always do that same thing with every site I build".

comment 13y ago · link · parent

At least you read the whole article. More than I can say for a lot of responses so far.

You said "almost entirely wrong". What did I get right?

comment 13y ago · link · parent

I use plenty of tools/libraries, some I've written (and OSS'd on github), some totally popular and widely used/tested.

What I don't use, nor do I try to force on others, is the best ways to glue these pieces together. I have my ideas of "best practices", but those ideas are highly adjustable per site/app, and also just my own opinions. No piece I bring into a project makes an intrusive assumption about how the rest of my code will work.

I love the assumptions that because I write any amount of glue code, the code I write must certainly be less tested and therefore less quality than that which shows up in a popular framework.

comment 13y ago · link · parent

The fact that I have not taken out the wordpress framework yet (because I've been busy with other "more important" things to do) doesn't mean that NOT doing so is somehow justifiable.

comment 13y ago · link · parent

First off, you can't just take the label "framework" and slap it on any arbitrary piece of code which works together for one or more tasks. By that logic, every site and app ever written is its own framework.

But...

> You know what I did? I wrote a framework for that site, and I called it “the site”.

The key differences between my "framework" and these popular frameworks:

1. I'm not holding out my "framework" for that specific site as some general reusable "best practice" for every other site on the planet.

2. It's highly customized, and customizable, to the specific site. When I don't like how events interact with views, I don't need to worry about forking some general framework project (and creating upstream update nightmares) and hacking into the guts of it to change the assumptions it makes. My "framework" is much thinner of abstraction, and far less convoluted.

Not because my "framework" is better. Just because my "framework" is specific to the task.

comment 13y ago · link · parent

I've been meaning to rip out the terrible "wordpress framework" from underneath my blog so that it doesn't suck when 20 people try to read it at once.

comment 13y ago · link · parent

If I really had NIH syndrome, I wouldn't use any tools/libraries. On the contrary, I use them quite frequently. And I build lots of my own tools/libraries on github.

What I don't do is make intrusive assumptions about the entirety of your application's architecture simply because you include my one little focused tool.

comment 13y ago · link · parent

Did you read the post? I said basically that. The difference is, I don't hold my "framework" out as THE general reusable pattern that everyone else should use. It's also extremely disconnected (without the glue code) and really makes no hard assumptions or influences over how you use it.

And, btw, it's not private. Most of my code is on github. I just don't try to force it down others' throats.

comment 13y ago · link · parent

No definition is perfect. I admit that. But I do think, as you say, it's a decent starting point, to reason about how intrusive/assuming (or not) a piece of code is when we build on it.

comment 13y ago · link · parent

...again, the FUD that if you go framework-less, you're automatically re-inventing the wheel. Total B.S.

comment 13y ago · link · parent

What on earth are you talking about? That comparison is from the looney bin.

comment 13y ago · link · parent

I am not reinventing "from scratch" every time. I rewrite a bit of light glue code to weave together various bits I copy-n-paste in from previous successful projects. That's hardly "reinventing the wheel".

comment 13y ago · link · parent

The fact that Dojo and YUI can be used like a framework (so can jQuery, with jQuery UI, etc) is not the point. The point is that, at the point-of-inclusion, those 3 tools/libraries are far less intrusive to the architecture of your site than including Backbone/Angular/Ember.

comment 13y ago · link · parent

...which "underscore"s the fact that you can make a great site prototype with frameworks (JS, CSS, etc). My claim was not that they have no use. But that you start with them, get a great site, then pull out the re-usable framework stuff and leave the customized stuff that makes your site/app so great.

comment 13y ago · link · parent

The pain of removing jquery is indeed a problem. So I can see the point from that angle. But the bigger point, about how much less assuming they are just by virtue of being included... that's the distinction I cared most about.

110.

Silly Rabbit... Frameworks are for Prototypes(blog.getify.com ↗)

18 points · by _getify · 13y ago · 57 comments

111.

"You Don't Know JS" (book series) drafts posted(github.com ↗)

10 points · by _getify · 13y ago · discuss

comment 13y ago · link · parent

I won't do tech interviews either, but not because I think I will fail at them. I think they are completely bogus and give totally the wrong signal. It's a waste of my time AND the company's time. I wrote up my thoughts on this exact thing a few months back: http://blog.getify.com/technical-interviews-suck/

TL;DR: Everything you need to know about if I'm a good fit is available online in my OSS (et al) track-records. If that's not good enough for you, that's not the kind of job I want anyway. I want to work for companies that value the full lifecycle of OSS work, which you can only see in such a way, and CANNOT judge via tech interviews.

By the time I walk in the door for an in-person interview, I expect you to already know that I am fully qualified (tech and otherwise), and you're looking now to judge my cultural fit by sitting me down in a real team meeting and seeing how it works, etc.

If I show up and you try to quiz my tech skills, you didn't do your homework on me, and I have no more time for you, so I'll just chuckle and walk out. Politely of course.

comment 13y ago · link · parent

thanks so much for the backing. really excited to get this off the ground! please help me keep spreading the word.

114.

"You Don't Know JS" book series kickstarter(kickstarter.com ↗)

10 points · by _getify · 13y ago · 2 comments

comment 13y ago · link · parent

The full "JS Objects" article series:

  * Part 1: JS Objects: Inherited a Mess [1]

  * Part 2: JS Objects: Distractions [2]

  * Part 3: JS Objects: De"construct"ion [3]
[1] http://davidwalsh.name/javascript-objects

[2] http://davidwalsh.name/javascript-objects-distractions

[3] http://davidwalsh.name/javascript-objects-deconstruction

116.

JS Objects: De"construct"ion(davidwalsh.name ↗)

8 points · by _getify · 13y ago · 1 comment

comment 13y ago · link · parent

I'm not sure the actual history bears out your assertion that 1995 was the fix-point date for all/most of these concepts.

AIUI, functions were not originally first-class citizens. My understanding is (and I may very well be incorrect), in these very early days, functions not being objects precluded an awful lot of what we currently "know" to be true about how JS emulates "classes" with function.prototype. I tried to find good citations for this fact, but I'm having trouble finding good "early JavaScript" history.

I do know that at least as early as ES1, in mid-1997, we had constructors with prototypes and "new". [1]

In any case, besides `Object.create()` which you've noted, here are some other milestones in the evolution of "OO in JS" I could find:

`instanceof` was added in JavaScript 1.4 [2], which was sometime after Oct 1998 [3], probably officially in ES3.

`Object#isPrototypeOf()` was added in ES3 [4], which was around late 1999.

`Object.getPrototypeOf()` was added in ES5 [5], which was around 2009.

[1] http://www.ecma-international.org/publications/files/ECMA-ST...

[2] https://developer.mozilla.org/en-US/docs/JavaScript/Referenc...

[3] http://en.wikipedia.org/wiki/Javascript#Version_history

[4] https://developer.mozilla.org/en-US/docs/JavaScript/Referenc...

[5] https://developer.mozilla.org/en-US/docs/JavaScript/Referenc...

comment 13y ago · link · parent

To expound on the metaphor I put in this article about inheritance and my mother-in-law:

> If you try to illustrate behavior delegation in terms of the "blueprint" metaphor, you quickly see how it totally breaks down. There's no way that my home, lacking a guest bedroom, could simply refer to another house, or to the original blueprints, to provide a bedroom for my mother-in-law when she comes to visit.

OTOH, I can delegate my mother-in-law to go stay in a hotel room. Or, I can delegate my mother-in-law to stay on a neighbor's couch, but I can send along sheets and pillows for her to use.

In either case, I'm not mutating my own home (inheritance) to handle her visit, I'm relying on someone else to handle it. But it's still my mother-in-law who I send elsewhere, and in fact, I can make sure she takes some "context" (aka, pillows) with her when she does.

Again, metaphors are never perfect, but I just thought I'd complete the perspective to contrast inheritance vs. behavior delegation.

comment 13y ago · link · parent

The fact that Objective-C has a term "delegate" does not mean I can't argue that "behavior delegation" is an accurate term for any prototypical-inheritance mechanism, specifically JS's.

Objective-C taking a specific meaning for that term is nowhere near as ubiquitous as the point I made that "inheritance" has been so well defined across so many class-oriented languages (for decades!) that borrowing the term for [[Prototype]] is a confusing mistake.

comment 13y ago · link · parent

I think you're going to see in part 3 (tomorrow) that it actually is quite simple and elegant to define "objects-only" delegation. You have to do away with constructors, "new", .prototype, and all that other stuff, which in part 2 (today) I'm going to argue are just distractions that keep us further from the simple power that is JS's [[Prototype]].
12345