HNHacker News
TopNewBestAskShowJobs

ax

117 karma · joined January 12, 2012

submissionscomments
ax··on Visual Studio '11' Announced
Quote from the article:

In VS 11 we have transitioned to glyph style iconography throughout the product. While we understand that opinions on this new style of iconography may vary, an icon recognition study conducted with 76 participants, 40 existing and 36 new VS users, showed no negative effect in icon recognition rates for either group due to the glyph style transition. In the case of the new VS users they were able to successfully identify the new VS 11 icons faster than the VS 2010 icons (i.e., given a command, users were faster at pointing to the icon representing that command). In this and subsequent studies more developers have expressed a preference for the glyph style icons over the former style, especially after having spent time getting used to the new glyph style icons.

ax··on Learn from Haskell - Functional, Reusable JavaScript
Aren't I then computing the value of total_len for my largest object numerous times? That was why I went for the map, it made some sense to pre-compute the lengths and then find the largest one. Certainly I could implement some caching mechanism but that would come with some implementation complexity?
ax··on Learn from Haskell - Functional, Reusable JavaScript
In hindsight the second solution was obvious :) But can you explain your ideal solution more? Is it something that can be accomplished in Javascript?
ax··on Learn from Haskell - Functional, Reusable JavaScript
One bit of trouble I have with functional style programming is something like the following example: if I have an array of people with firstName and lastName properties, how would I go about returning the person with the longest full name without adding any properties directly to the objects? It is a simple map then reduce to return the maximum length, a fairly trivial modification thereof to return the full name, but when I want to return the original object, I can't think of a good way to do this.

The best I can figure is first mapping to a nested array where the first element is the object and the second is the computed property but that seems really messy. Thoughts?

ax··on JavaScript: Warts and workarounds
1. Don't use with. It's hard to reason about, and it breaks many compiler optimizations (you're adding a dynamic object into the scope chain).

2. Just don't ever use == or !=. Forget they exist. Done.

ax··on Vim-powerline: The ultimate vim statusline utility
Yeah I'm getting the same behavior. When you patch it, can you let me know?
ax··on Vim-powerline: The ultimate vim statusline utility
The docs say that this will work best on a unix like system but doesn't say what that means or whether it will work on Windows. Has anyone tried this on Windows? Does it work?
← PreviousPage 2 of 2