Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yangmillstheory
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
Show HN: Ng-prototype
(github.com)
1 points
by
yangmillstheory
10y ago
|
0 comments
2.
▲
by
yangmillstheory
11y ago
yeah, i should probably change that tonight
3.
▲
by
yangmillstheory
11y ago
Thanks. I was writing an application that had unrelated components that all acted like view models. I looked at existing mixin libraries, but found some that either injected themselves into the prototype chain or patched Function.prototype
4.
▲
by
yangmillstheory
11y ago
Thanks for sharing! Have you studied aspect-oriented programming formally? I used the term "aspect-oriented" because a co-worker mentioned it and it seemed appropriate, but I don't have a deep understanding of that philosophy
5.
▲
Show HN: Aspect-oriented mixins in JavaScript
(github.com)
17 points
by
yangmillstheory
11y ago
|
6 comments
6.
▲
by
yangmillstheory
11y ago
I you look at the demo site again, I made the chunk size and delay user-configurable, and I'm displaying the current running code.
7.
▲
by
yangmillstheory
11y ago
The API exposes the chunk/delay parameters as options, so it's definitely possible. If you mean having the library code "learn" the optimal chunk/delay for a given run, that's possible too, but I'd have to
8.
▲
by
yangmillstheory
11y ago
It works - and that's the core of what's being done if you look at the code. I just wanted to make something re-usable, configurable, and play around with ES6 generators :).
9.
▲
by
yangmillstheory
11y ago
Thanks for the reply! I was just thinking I should have that on by default. I'll add an explanation of what's happening.
10.
▲
Show HN: Chunkify.js – A functional API to unblock your JavaScript thread
(yangmillstheory.github.io)
29 points
by
yangmillstheory
11y ago
|
13 comments
11.
▲
mixin-a-lot: a JavaScript mixin framework
(npmjs.com)
4 points
by
yangmillstheory
11y ago
|
0 comments
12.
▲
covenance: Abstract base and covenanted classes in JavaScript
(npmjs.com)
2 points
by
yangmillstheory
11y ago
|
0 comments