Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
d4n3
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
d4n3
7y ago
Great idea... I don't mind paying for good games, but what i do mind is games that try to squeeze as much money out of you for just playing it, which fits your definition of bullshit games. So unlockable DLC and removable ads are fine,
2.
▲
by
d4n3
10y ago
> The price is defined primarily by how much you ask for and what you can offer in return. I couldn't agree more. I know a lot of developers that have the mentality to just accept what they are offered without negotiating. It's
3.
▲
by
d4n3
11y ago
It seems like you're comparing current conversion rates vs. past conversion rates.. Did you try AB testing this side by side? It's not necessarily only the effect of image optimisation, could be just organic growth of your site?
4.
▲
by
d4n3
11y ago
I think this actually wasn't an arbitrary choice, but a result of the algorithm.. e.g. factors are displayed as clusters ordered in a circle (factors of 2 is a circle with groups of 2, factors of 3 is a circle of groups of 3). So for p
5.
▲
by
d4n3
11y ago
Very cool visualization... I wonder how they get their data?
6.
▲
by
d4n3
11y ago
you could probably combine this with the font-face trick to target different letters
7.
▲
by
d4n3
11y ago
you could combine this with ::first-letter and custom selectors for each item of interest to get more specific data from targeted page elements... If there was a way to target n-th letter in css, you could also get the full plaintext of an
8.
▲
by
d4n3
11y ago
Chrome devtools sort selectors by specificity by default and you can quickly see what order the selectors / properties were applied in and what overrided what. Most of the !important uses I've seen are more due to "Why doesn&
9.
▲
by
d4n3
11y ago
> as they seem not fully aware of the standard order of conflict resolution I'd say it's the other way around - a lot of usages of !important are due to lack of understanding of CSS specificity, usually as a symptom of somethin
10.
▲
by
d4n3
11y ago
There' a user switcher button in the top right corner, you can have multiple browser sessions with seperate histories / cookies (e.g. work / personal)
11.
▲
by
d4n3
11y ago
Right, with lots of elements, React still needs to render and diff each component which for a lot of elements causes a lot of garbage and diffing work. ShouldComponentUpdate / PureRenderMixin avoids this altogether when props/stat
12.
▲
by
d4n3
11y ago
PureRenderMixin is basically shouldComponentUpdate with a shallow comparison of previous/next props and state, but the big win is avoiding render and diff for the component, so returning false would be about the same as PureRenderMixin
13.
▲
by
d4n3
11y ago
PureRenderMixin would defenitely help here, even to the point where it's comparable with the js solution. Even though keys help here, render is still called for every image every time and then diffed. He'd have to extract the imag
14.
▲
by
d4n3
11y ago
For me it was trying to index a huge folder containing images, you can use project settings to exclude some folders with the folder_exclude_patterns setting.
15.
▲
by
d4n3
12y ago
I think modern browsers prevent cross-requests to local subnets so this may mitigate CSRF
16.
▲
by
d4n3
12y ago
Ah ok. At first glance it looked like he was putting together something like an url.
17.
▲
by
d4n3
12y ago
It's way better to use [values].join('') here... It's probably faster and it coerces all values to string. If the first couple of results were numbers or booleans, they would be summed: > true + 10 + " resu
18.
▲
by
d4n3
12y ago
Javascript has "semicolon insertion". It tries to parse a newline with no semicolon as continuing the current expression, if it can't, it inserts a semicolon. It's a 'feature' that's caused too many bugs a
19.
▲
by
d4n3
12y ago
Jshint catches this with 2 warnings: missing semicolon and expected assingment or function call. In Sublime text 3, you can have inline warnings and as-you-type linting with the sublimelinter jshint plugin: https://github.com
20.
▲
by
d4n3
12y ago
I love this quote in the comments: > when you have REPL you are TDD’ing in a different way as opposed to constructing persistent unit-test classes that could potentially form a layer of cement. Lately I've been using the console for
21.
▲
by
d4n3
12y ago
Wow, that was exactly what happened to me... Everything is so sharp and square here.
22.
▲
by
d4n3
12y ago
Sorry, which library do you mean? The OP is a javascript library.. I just wanted to point out that regex is much faster in javascript than doing things 'by hand'.
23.
▲
by
d4n3
12y ago
> you'll want to replace them with code written in the native language Probably not true for Javascript (and other scripted languages) - matching regex uses native and highly optimized regex lib, which will usually be orders of magn
24.
▲
by
d4n3
12y ago
This is kind of disappointing.. I thought it would actually compile or something. Is it even possible with that BMP header? Only writing some text as a bitmap isn't very impressive when the pixels are stored directly as bytes by defaul
25.
▲
by
d4n3
12y ago
but how would you deal with async data fetches then? I want to have the same routing and data fetching logic both on the client and on the server, and for that I would need to have stores that are independent for different incoming HTTP req
26.
▲
by
d4n3
12y ago
- dispatching and listening to actions. you need to pack your action with a magic string and a param object then unpack the params again in every listener. It's easy to forget what the params names are and its hard to see what the func
27.
▲
by
d4n3
12y ago
Anyone tried doing isomorphic (server/client) flux? Most implementations rely on the flux stores being singletons which can't work for multiple requests on the server. The only one that's isomorphic is yahoo's but that o
28.
▲
by
d4n3
12y ago
The official OSX build ( http://phantomjs.org/download.html ) crashes for me with Killed: 9
29.
▲
by
d4n3
12y ago
I upgraded because of SublimeLinter plugins (inline error checking for js, jsx, ruby, php etc.) only available on ST3. ST3 seems pretty stable for regular use.
30.
▲
by
d4n3
12y ago
seems like lodash now has lazy evaluation as well when using the _(obj).method() syntax: http://filimanjaro.com/blog/2014/introducing-lazy-evaluation...
More ›