HNHacker News
TopNewBestAskShowJobs

jasondenizac

302 karma · joined August 29, 2009

this account is inactive.
submissionscomments
jasondenizac··on Firefox 25 will get a major UI overhaul
You can download the UX nightly for all platforms at http://people.mozilla.org/~jwein/ux-nightly/

I'm using it now as my primary browser.

jasondenizac··on Ask HN: Who is hiring? (June 2013)
Or, you know, someone with the same name.
jasondenizac··on How To Create an Ownership Mentality on Your Team
step 1: give actual ownership.
jasondenizac··on What happens when you give 4chan images of the Boston Marathon?
Now apply that in reverse, that is, a militant regime trying to identify legal but politically inconvenient protesters. Relevant: http://www.youtube.com/watch?v=Dw3h-rae3uo
jasondenizac··on What happens when you give 4chan images of the Boston Marathon?
Without due process, law enforcement is just the vengeful application of (well financed) power.
jasondenizac··on Jsig - precise & concise javascript signature notation
In this case, I am deferring to the notation adopted in the upcoming version of JavaScript, ES6 - see http://wiki.ecmascript.org/doku.php?id=harmony:arrow_functio...

I think jsig's role is more to describe JavaScript, rather than to say the language is "doing it wrong"

jasondenizac··on Jsig - precise & concise javascript signature notation
TypeScript was actually an inspiration - and jsig draws heavily on TypeScript's inspirations (especially ES6, Go, and to some extent [particularly generics], C#).

However TypeScript was optimized for building tooling. It also requires changing the actual executable code you write and investing in a workflow around the TypeScript compiler. With jsig, you just write a comment. My experience working almost exclusively in Node.js for the past year as shown me that plain JavaScript and minimal IDE support is sufficient if you embrace a philosophy of small, self-contained, loosely-coupled modules, each with their own tests and documentation. Writing this documentation in a clear way has been a pain point for me, however. jsig grew out of some of the conventions we've been using on my team to address the ad hoc or underspecified documentation we've dealt with.

With TypeScript, it's possible to write just in JavaScript and keep your TypeScript declarations in an external file (see, for example, [TSD](https://github.com/Diullei/tsd)) - but this is impractical. Plus, TypeScript does not support generic types, which are especially convenient for things like Callback<Buffer> or Promise<Buffer>.

jasondenizac··on Jsig - precise & concise javascript signature notation
@cromwellian jsig can just be put in regular JavaScript comments. It's not really designed to be machine parseable, although a documentation generator (or other tooling) could easily extend it to do so. jsig's scope is concerned with succinctly expressing type information to programmers, whether inline with a function definition or in a readme. In that sense, it doesn't take an opinion as to how or where it should be embedded. Think of a jsig notation as a free-standing expression.
jasondenizac··on Jsig - precise & concise javascript signature notation
My issue with JSdoc is that it's based around some notion of constructor-based inheritance, rather than structure. This is find if you're writing type annotations for a compiler to optimize a single codebase, but breaks down when trying to describe APIs meant to interoperate with modules written independently. Could you give examples of "deeply nested callbacks"? The example you linked to is perfectly expressible in jsig as show in this gist: https://gist.github.com/jden/5317051
jasondenizac··on Jsig - precise & concise javascript signature notation
If you have feedback, please open an issue thread or pull request on github
jasondenizac··on Reloadlive - Markdown editing made easy
Why not just have an editor in the browser and render as the source changes? A la codepen, jsbin, etc.
jasondenizac··on Callbacks are imperative, promises are functional
HN comment threads are my favorite learning environment.
jasondenizac··on Callbacks are imperative, promises are functional
> I just feel like they might be a bit heavy-weight and a lot of API surface area to solve this particular problem.

The surface area is `.then()`

jasondenizac··on Callbacks are imperative, promises are functional
The project I'm working on right now is about 6 months old. Promises have greatly simplified our data access layer. My argument here is mostly syntactic (not semantic, like the OP), but being able to assign promises to a variable has improved the readability of the code and the intent of the code, improving readability, testability, and flexibility. I don't claim that promises are the One True Way, but they get a lot of noise out of my way and let me focus more on what our code is doing than on how it's doing it.
jasondenizac··on Did PayPal Just Clone Stripe’s API Documentation?
um, how is this even a thing?
jasondenizac··on Godel Escher Bach QR Code shadow cube
This is the first thing I have ever wanted a 3D printer for.
jasondenizac··on Show HN: We're writing a book about Meteor
also sharejs.
jasondenizac··on What's so great about JavaScript Promises?
see also: https://gist.github.com/3889970
jasondenizac··on What's so great about JavaScript Promises?
I read that as after 1.0, aka "whenever".
jasondenizac··on What's so great about JavaScript Promises?
timeout IDs are similar in a sense. By having the promise as an object, you can do neat things to modify program control flow as a separate concern from resolving a particular asynchronous operation. Sure, you can compose promises, just like you might with callback-oriented code. But you can also do neat things like await an object graph of mixed synchronous and promised values, eg: https://npmjs.org/package/resolved
jasondenizac··on What's so great about JavaScript Promises?
Promise consumers have a very small interface to worry about, and in fact there are many interoperable implementations (Q, when, rsvp, etc). Unfortunately, jQuery is not one of those implementations, because rejections don't propagate.

At any rate, JavaScript is not built around having a monolithic base library, and as others have pointed out, it would not make sense to have language level support for promises per se.

However, I do agree that it would be great to have host APIs, for example, DOM, to make more widespread use of promises. In fact, WinJS for Windows 8 _does_ make use of promises in their async APIs.

jasondenizac··on PlaceIt by Breezi - Generate Product Screenshots in Realistic Environments
'cause the only customers worth having use apple products!
jasondenizac··on $26,679 in 24 hours: Stats from my latest book launch
Having met Nathan in person, I assure you 1) he did it, and 2) I'm still not sure how.
jasondenizac··on 30 days with Windows Phone 8 — Perspective from an admitted iOS addict
Given Microsoft's relationship with Nokia, doesn't that make the Lumia 920 the defacto flagship Winodws Phone? I agree with the author of the article that I would prefer it to come without all of the carrier garbage, but it's easily removed.
jasondenizac··on 30 days with Windows Phone 8 — Perspective from an admitted iOS addict
I'm not so sure. Granted, I have a .Net past (I currently am a full stack javascript engineer), but I really enjoy the developer experience for Windows Phone - much nicer (IMO) than with Apple and iOS, from a language, ecosystem, and tooling perspective.

My Lumia 920 got here today, and the two gripes I had before - lack of 4g and a pitiful browser - have both been nicely addressed.

jasondenizac··on ClippyJS - Add Clippy or his friends to any website for instant nostalgia
don't do it, man
jasondenizac··on Why I love everything you hate about Java
Dependency Injection is a way to achieve Inversion of Control - meaning the consuming modules aren't concerned with the implementation or instantiation of their dependencies. Dynamic languages have less of a need for Dependency Injection than statically typed languages, but things like instance lifecycle management and policy injection are still very much relevant for good modular design.
jasondenizac··on Hurricane Hackers
This is why Google Wave wasn't such a terrible idea.
jasondenizac··on How do I find out about language centric events in the SF Bay area?
Meetup has many good language and technology specific groups in the area.
jasondenizac··on PenFM: Fall back in love with writing via your terrible friends
I think SignalR and WebApi would be perfectly suited to this type of project, @neoveller. Add some KnockoutJS and host in on Azure for the total package - all for free with BizSpark. Anyhow, I'm being slightly facetious, but you really can't blame the tech stack :)
← PreviousPage 2 of 3Next →