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

comment 11y ago · link · parent

Yes, that was my intended (subtle) joke.

62.

Iterating ES6 Numbers(blog.getify.com ↗)

1 points · by _getify · 11y ago · discuss

comment 12y ago · link · parent

I'm honored to see people are finding it useful!

The truth is, we all don't really fully know JS, and we all need to work on knowing it better. The books are my way of learning it, and hoping that others can learn along with me. :)

comment 12y ago · link · parent

Thanks for the idea. I'll pass that along to my editors at O'Reilly. :)

comment 12y ago · link · parent

There will be once I get the book series finished (five titles expected). :)

comment 12y ago · link · parent

glad you caught the joke. :)

comment 12y ago · link · parent

Of course, if this movement took off, I would absolutely want to come up with a defined list/scope for our efforts.

comment 12y ago · link · parent

As soon as I get a a github repo for this thing, I'll happily accept your PR to change to 01/10/11111100010. :)

comment 12y ago · link · parent

Yes, "how we get into this mess" is incredibly complicated and yet far too much a "pit of failure" for developers.

But that doesn't mean we have to just accept it'll never change.

I take a sense of pride and ownership in the web, and I have big hopes for its future. That means I have to want to try to make it better, not just keep it afloat. I just hope I can inspire others to do the same.

comment 12y ago · link · parent

Sure. But the web is well past its infancy, its hype curve, etc. It doesn't need "help" to find adoption. It made it.

Now it's time for maturity, in my opinion. I just think this is one way of going about shuffling off some of the old baggage (that admittedly got us here).

comment 12y ago · link · parent

> I love the implicit assumption that the standards-of-the-moment are any better.

Of course they are objectively "better" (by almost any measure) than the mixed old-and-new-that-conflict crap we have.

Is the "new new" we have bettter than the "old new" we had back then? Who cares? That's an institutional question about standards in general.

I'm focused on a very different problem: how we as an industry react to the standards. Currently, we always pile up extra tech debt and almost never (not never, but very rarely) accept the pain of kicking out the really old.

> This whole 'effort' is moot since web practice veers so quickly

I'm not suggesting it's a one-time fix. It might have to happen once a decade, or once every 20 years.

BUT, I think there's a good amount of evidence to suggest this idea could achieve more positive forward motion than it might've in years' past.

Namely, the fact that all modern desktop browsers are on a drastically more rapid update cycle than we were in back when much of this tech debt was accrued (circa 2005). The quicker browsers auto-upgrade, the less likely we are to have widespread "adoption" of bugginess that sets in and becomes permafrost on our industry.

If we fix mistakes quickly, and often, it continues to spur companies to keep their apps fresh and updated.

Is it a perfect solution? Hell no. But I think it's better than what we've got now, which is to say, "approximately nothing."

comment 12y ago · link · parent

We've tried "document modes" before, and it was terrible. And it's even worse for JS and CSS.

> Is it really worth breaking all legacy websites?

In any organization, this question gets asked of their product's technical debt, many times over, and gets many "no" answers, until finally there's too much, and their "technical bankruptcy" is unavoidable. They suffer the (temporary) pains to deal with some or all of that debt, and get back on track.

I'm just wishing we could treat our industry that way. I think we're "there" at that point of decision. I just want to tip us over the edge into admitting it.

comment 12y ago · link · parent

In particular, lots of legacy JS bugs that we can't get rid of since people "rely" on them. Also, the biggest one that spurred me to launch this today is all the proprietary -webkit- CSS prefix stuff, especially the non-standard stuff everyone is relying upon in mobile!

comment 12y ago · link · parent

What's a date you're free? :)

75.

International “Break The Web Forward” Day(breakthewebforward.com ↗)

19 points · by _getify · 12y ago · 17 comments

76.

Promises: The Extension Problem (part 4)(blog.getify.com ↗)

4 points · by _getify · 12y ago · discuss

77.

Promises: The Trust Problem (part 3)(blog.getify.com ↗)

3 points · by _getify · 12y ago · discuss

78.

Promises: The Inversion Problem (part 2)(blog.getify.com ↗)

2 points · by _getify · 12y ago · discuss

79.

Promises: The Sync Problem (part 1)(blog.getify.com ↗)

3 points · by _getify · 12y ago · discuss

comment 12y ago · link · parent

OK, draft figures posted now.

https://github.com/getify/You-Dont-Know-JS/tree/master/this%...

comment 12y ago · link · parent

A super quick, simple illustration of the difference, which comes down to the fact that delegation is differential, whereas composition is complete:

https://gist.github.com/getify/9895188

For a bit more "real world" of a scenario, you can also compare the `LoginController` / `AuthController` mechanism here, first shown with inheritance+composition, and then shown with simpler OLOO-style delegation:

https://github.com/getify/You-Dont-Know-JS/blob/master/this%...

comment 12y ago · link · parent

OLOO is quite different from both inheritance and composition. It embraces delegation rather than covering it up or running away from it. :)

comment 12y ago · link · parent

They're coming. It's an artifact of working with a book publisher and the art department and all that. Sorry for the confusion.

comment 12y ago · link · parent

Huge fan of this article. Makes some really great points! Wish I could share and vote it up a thousand times. :)

I have been writing about exactly this topic, of why classes don't make sense (specifically for JS), in my second title of the "You Don't Know JS" book series, "this & Object Prototypes".

In particular, Chapter 6 makes the case for an alternate pattern to class-orientation design, which I call OLOO (objects-linked-to-other-objects) style code. OLOO implements the "behavior delegation" design pattern, and embraces simply peer objects linked together, instead of the awkwardness of parent-child abstract class semantics.

https://github.com/getify/You-Dont-Know-JS/blob/master/this%...

85.

Optimizing Visual Updates(blog.getify.com ↗)

1 points · by _getify · 12y ago · discuss

86.

Adaptive Hybrid JavaScript(blog.getify.com ↗)

3 points · by _getify · 12y ago · discuss

comment 12y ago · link · parent

> In Q1 2013, average connection speeds on surveyed mobile network operators ranged from a low of 0.4 Mbps to a high of 8.6 Mbps. Only nine operators demonstrated average connection speeds in the aforementioned broadband category while 64 more operators showed average connection speeds above 1 Mbps.

http://thenextweb.com/insider/2013/07/23/akamai-average-inte...

My 80% number was hyperbole, but I do think the data supports that on world-wide average, mobile connections are drastically lower, and so making assumptions about a file size downloading quickly on fast broadband is ignoring an increasingly important part of the web traffic, which are years behind wired connections in terms of speeds.

comment 12y ago · link · parent

> Minified jquery is like 32kb. That means literally nothing in modern web. Unless you are from 1995 using 2G connection, this doesn't matter.

Or on like better than 80% of all mobile data connections in the world. But mobile is so niche, right? No need to worry about them.

comment 12y ago · link · parent

> it's fairly lightweight

Really? 93kb of code is lightweight? Yeah I know it gzips smaller, but that's still not what I'd call "ligthweight". It's not bloated, but it's certainly not a micro-lib.

> you might on the next

I think this might miss the point. If you're just writing code on sites, sure, consider jQuery. But if you're creating a library or framework that thousands of others may use, your decision to pick jQuery is making that choice for THEM, which means you should think about it a lot more closely.

It's not then about whether you might like it "next time", but whether the people using your lib/framework will likely need jQuery. That decision should not be made glibly or lightly.

Especially if you're only using a small portion of that 93kb of jQuery, and could just "do it yourself".

90.

Should I Pick jQuery?(shouldipickjquery.com ↗)

13 points · by _getify · 12y ago · 16 comments

12345