Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wingspan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
wingspan
14y ago
With reference to AMD and CommonJS modules, the spec has more info [1]: TypeScript implements modules that are closely aligned with those proposed for ECMAScript 6 and supports code generation targeting CommonJS and AMD module systems
92.
▲
by
wingspan
14y ago
I'd have to defer this one to the language designers, I'm sure they've done such a comparison. Per the spec [1]: TypeScript syntax includes several proposed features of Ecmascript 6 (ES6), including classes and modules. [1] http://g
93.
▲
by
wingspan
14y ago
I tried to get around this by creating overloads of almost all methods when you are operating on an array. `each` for instance, has a standard implementation using moveNext, and then an array implementation using a fast for loop. In some ca
94.
▲
by
wingspan
14y ago
The language support in VS is really great, and getting better with each release. Go to definition, code outlining, folding, type information on hover, intellisense; all these make writing code much less easier and error prone, especially i
95.
▲
by
wingspan
14y ago
Typo, updated. Should have been n * n
96.
▲
by
wingspan
14y ago
Ah yeah, typo, updated.
97.
▲
by
wingspan
14y ago
I did look at underscore when figuring out how to design the library, along with many JS LINQ variants ( http://ianobermiller.com/blog/2012/09/19/linq-for-javascript... ). It should be pretty straightforward to provide Underscore bindings f
98.
▲
by
wingspan
14y ago
Yes I see what you mean, it'd be interesting to see what the exact rules around type checking are; especially when dealing with []. The string type for example, always give you a string when indexed, even when incorrect: var s = 'foo';
99.
▲
by
wingspan
14y ago
I believe the monaco editor is already being used in Azure Websites and possibly the TFS preview. I wouldn't be surprised if more information about it would be released soon, they are also a major dogfooder of TypeScript.
100.
▲
by
wingspan
14y ago
A team member could comment better than I, but unless TypeScript adds some kind of operator overloading, supporting a new type would be difficult since it compiles to normal JavaScript. Even then, creating a performance decimal type without
101.
▲
by
wingspan
14y ago
Debugging would be helped greatly if they supported source maps ( http://www.html5rocks.com/en/tutorials/developertools/source... ).
102.
▲
by
wingspan
14y ago
`7[2]` is valid Javascript, so it is also valid TypeScript (fetching the '2' member of the `7` object). Detecting null expressions at compile time might help. There are "nullable" types, but afaik only in signatures: foo(x?) { ale
103.
▲
by
wingspan
14y ago
Would be a good thing to suggest to the team, it is the first release of the language, after all. In the interim, a simple library like underscore is quite succinct: _.map([1,2,3], n => n * n) With more library support you could
104.
▲
by
wingspan
14y ago
I've written a LINQ style library for TypeScript that allows you to write something like this: from([1,2,3]).select(n => n * n).where(n >=2).toArray() which outputs [4, 9] Hoping to open source it soon. Edit: typo, n *
105.
▲
by
wingspan
14y ago
If you have a small sample, you could try it out in the playground ( http://www.typescriptlang.org/Playground/ ) and see what TypeScript can recognize. Generally, I've seen TypeScript plays well with other OO forms and gives you intellisens
106.
▲
by
wingspan
14y ago
Here are some off the top of my head: 1. Lambdas (as you mentioned) are not only shortened syntax, but also capture the `this` variable automatically for you. Try typing in the following at the playground in the body of the `greet` method t
107.
▲
by
wingspan
14y ago
Awesome, great to see this finally released. I'm a dev in FUSE Labs ( http://fuse.microsoft.com ) and we've been dogfooding TypeScript for a while now. I'd be happy to answer any questions about using TypeScript vs vanilla JS, converting a
108.
▲
by
wingspan
14y ago
Like others have already pointed out, the experience of one person in a 100k+ employee company is not broadly applicable. Many employees have iPhones, yes, but many also have Windows Phones as well. I agree with you that since there is real
109.
▲
by
wingspan
14y ago
In some orgs it is actually relatively easy for a PM to get a MacBook Air, for instance. You don't even need a bulletproof justification. Although with the new crop of ultrabooks, the MacBook Air is no longer so unique, so it may be more di
110.
▲
by
wingspan
14y ago
It's a small gesture when you look at the big picture (total compensation, etc), but this means a lot to me as an employee, and really shows Microsoft's commitment to the new era of Windows 8 on beautiful devices. It will be interesting to
111.
▲
by
wingspan
14y ago
Personally, the new stack ranking bit doesn't bother me much, as it doesn't seem a whole lot different than before (transposed system of assigning numbers 1-5 and different sized buckets). The healthcare changes are most upsetting to myself
112.
▲
by
wingspan
14y ago
I used to use Fireworks all the time, I love the export comparison and slicing. Recently though I've taken to some free options (I'm on Windows mainly): 1. Inkscape for all vectors 2. Paint.NET for everything else 3. PNGGauntlet for optimiz
113.
▲
by
wingspan
14y ago
Cool! I'll have to remember this when we can't pick a name for our next baby. A little hit or miss, but for a geeky name it is better than little Bobby tables...
114.
▲
by
wingspan
14y ago
Isn't this what http://lastpass.com does?
115.
▲
by
wingspan
15y ago
Beautiful! Is anyone else slightly annoyed by the front-loaded easing when you click the arrows? (I have no idea if that is the right term, but I mean to say the fact that it starts slowly, then speeds up. I'd prefer the other way around).
116.
▲
by
wingspan
15y ago
Why redirect from nathansuniversity.com to nathansuniversity.appspot.com? Shouldn't it be the other way around?
117.
▲
by
wingspan
15y ago
Thanks for the Ur link. But seriously, 2 clicks to get to a page (docs > tutorial intro) just to see a code sample?
118.
▲
by
wingspan
15y ago
From my recent experience (past month or so), TortoiseHG is definitely more polished than TortoiseGit. The thing I miss the most is the "Workbench", a single window that contains everything you'd need to do (commit, view history, sync, etc)
119.
▲
by
wingspan
15y ago
The technique exploits the redirection mechanism of most login pages. Consider the url "foo.com/login?redirect_after_login=%2Fimages%2Fspinner.gif". If you put that url as the src of an img tag, and the user is logged in, some sites will 30
120.
▲
by
wingspan
15y ago
Very useful, thanks. It would be quicker (and a bit less jarring) if instead of going to a new page with the listing details, the row you clicked on just expanded with the details inline.
More ›