Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
quinnirill
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
Babel plugin to optimize React Native styles
(github.com)
2 points
by
quinnirill
10y ago
|
0 comments
32.
▲
by
quinnirill
11y ago
Happy to help! Yes, you can use just simple function references, e.g. you could just define flatten as so function * flatten () { for ( const item of this ) { yield * item; } } And it would work just like it
33.
▲
by
quinnirill
11y ago
Sounds like a very healthy company culture. ;)
34.
▲
by
quinnirill
11y ago
> It's a funny world. Each of us is looking at the other library thinking there's too much magic involved. :-) Heh - I think what feels like magic is the syntax that Trine is presuming, which admittedly might seem magical befor
35.
▲
by
quinnirill
11y ago
With Trine this would be function process () { return this ::filter(isOk) ::map(toOtherType) ::flatten(); } and then later: groupsOfItems::map(process); Granted, the `flatten` function is
36.
▲
by
quinnirill
11y ago
Trine can actually already do this particular example: sum = reduce::partial(add, 0); [1,10,20]::sum();
37.
▲
by
quinnirill
11y ago
(Disclosure, Trine author here, and also admittedly very inspired by Ramda.) I actually used Ramda quite extensively a while back, because I was convinced it was the right way. However, a while after looking at stack traces that lead to Ram
38.
▲
by
quinnirill
11y ago
Well, the no CS background and shady Haskell tutorials parts were correct; My highest formal education is high school. ;) But this was done on my free time, and I don't really identify myself as a rockstar developer. Sounds pretty arro
39.
▲
by
quinnirill
11y ago
And also because it has prevented the language itself from standardizing some features, e.g. String.prototype.contains had to be renamed to includes because shipping it as contains would have broken sites that use mootools.
40.
▲
by
quinnirill
11y ago
Yes, sorry, thin arrow, not single - `() -> this.foo()` for function expressions and possibly even `let/const fn () -> this.foo()` for declarations.
41.
▲
by
quinnirill
11y ago
Right on the point. I'm still hoping for that to get in at some point. :)
42.
▲
by
quinnirill
11y ago
This is to avoid multiple versions of Trine required by libraries (or the application itself requiring a different version of babel-runtime) causing the different versions of `babel-runtime` to be included multiple times, which would be a p
43.
▲
by
quinnirill
11y ago
Ramda actually uses data as the last parameter usually, whereas lodash has it as the first. However, I agree, the readme doesn't quite show the full power of Trine. Trine has `partial`, which allows you to do partial application as so:
44.
▲
Trine – A utility library for functional programming in JavaScript
(github.com)
159 points
by
quinnirill
11y ago
|
111 comments
45.
▲
by
quinnirill
12y ago
I'm just talking about design goals - the original assembly was introduced so that people wouldn't have to remember the numeric instructions of the processor. The instruction sets have been legacy even before that, with slight imp
46.
▲
by
quinnirill
12y ago
I liked the "original" assembly more, at least it was designed for helping humans to write and read code. EDIT: That said, this is good news, in a sense.
47.
▲
React-no-jsx – a pure JavaScript alternative to JSX
(github.com)
2 points
by
quinnirill
12y ago
|
0 comments
48.
▲
by
quinnirill
14y ago
> * Often you actually need pixel-perfection in display, which SVG isn't really built for (hence the S) and you'll just end up drawing 1-pixel wide lines in SVG form. Actually you might find it interesting that SVG supports media querie
49.
▲
Dealing with SVG images in mobile browsers
(kristerkari.github.com)
33 points
by
quinnirill
14y ago
|
12 comments
50.
▲
Stupid JS Style Guide
(github.com)
2 points
by
quinnirill
14y ago
|
0 comments
51.
▲
by
quinnirill
14y ago
If implementing every effect out there by yourself becomes tedious, you might wanna give audiolib.js a shot: https://github.com/jussi-kalliokoski/audiolib.js , it's an audio effects library I've been building for 2 years now. :)
52.
▲
Javascript Green Threads
(blog.avd.io)
3 points
by
quinnirill
14y ago
|
0 comments
53.
▲
by
quinnirill
15y ago
That's unlikely, mobile device lifecycles are way shorter than those of desktop computers. Even native game developers often don't target mobile devices that are outdated.
54.
▲
by
quinnirill
15y ago
Current mobile browsers, yes, very much so. But I think Chrome for Android 4 (which I believe will replace stock Android browser eventually), IE10 for Windows 8 phones / tablets, and Firefox on B2G will change this. I've seen B2G already ru
55.
▲
by
quinnirill
15y ago
> There is, as far as I can tell, no way which you can cause a sound to play (programmatically) I suggest you give my audiolib.js ( https://github.com/jussi-kalliokoski/audiolib.js ) and sink.js ( https://github.com/jussi-kalliokoski
56.
▲
by
quinnirill
15y ago
Make sure to make a fuzz about it when it's ready to be played, I sure have to give it a shot!
57.
▲
by
quinnirill
15y ago
> I was hoping for a more technical article Sorry to disappoint, there are a lot of more technical articles out there, I wanted to look at this more from the perspective of the process of making games than a more detailed technical over
58.
▲
by
quinnirill
15y ago
Phones need serious improvement to run these kinds of games anyway, we're probably looking at at least half the time it's going to take for these games to run with the web technology stack on the mobile to get it running even natively on th
59.
▲
by
quinnirill
15y ago
I will always bet on JS as well. The games you're talking about here, however fall in to the category of casual games described in the article. So for more featured games, we'll have to wait a bit longer and mature the platform as we go, bu
60.
▲
HTML5 as a gaming platform
(blog.avd.io)
44 points
by
quinnirill
15y ago
|
28 comments
More ›