[nodejs] Re: [ANN] HAVE.js - Have your arguments, and validate it too. -- Slick arguments validator for all your js functions.

2013-03-19 Thread Adam Ahmed
Be careful with this. If I'm reading your code correctly, you are relying on the order of that object literal matching the order of the arguments object. This is not guaranteed, as far as I know. This would cause your arguments to be matched against the wrong schemas. I'd suggest replacing the

[nodejs] Re: Deadlock with simple generators example

2013-09-08 Thread Adam Ahmed
Seems to work for me. Node v0.11.7, Windows 8 >node-11 --harmony test.js 309.6952980849892 231.88106599263847 257.15388590469956 345.1376415323466 492.82865272834897 159.6157061867416 286.41347005032003 760.6169891078025 25.959153659641743 and so on... On Sunday, 8 September 2013 18:28:12 UTC+10,

[nodejs] Domain-bound variables

2013-09-08 Thread Adam Ahmed
Hi all, I'm working on a website that does all the basic stuff: permissions, authentication, CRUD on objects, etc. One thing that has been a bit hard is passing around the context of a request - the session information, who the user is, etc. In everyone's favorite language (Java, obviously) yo

[nodejs] Re: Domain-bound variables

2013-09-08 Thread Adam Ahmed
On Monday, 9 September 2013 08:38:31 UTC+10, Adam Ahmed wrote: > > Hi all, > > I'm working on a website that does all the basic stuff: permissions, > authentication, CRUD on objects, etc. One thing that has been a bit hard is > passing around the context of a request -

Re: [nodejs] Domain-bound variables

2013-09-08 Thread Adam Ahmed
gt;for it is *intense*! You wrap *everything*. I'll definitely be giving it a go. Thanks a ton!! Adam On Monday, 9 September 2013 13:49:14 UTC+10, Forrest L Norvell wrote: > > On Sun, Sep 8, 2013 at 3:38 PM, Adam Ahmed > > wrote: > >> Hi all, >> >> I

[nodejs] Re: diff between module.exports and exports

2013-10-18 Thread Adam Ahmed
Kinda funny how hard it is to explain this. I thought it was interesting so I gave it a crack as well: http://www.noiregrets.com/blog/2013/10/19/e40baf63/NodeJS-module-exports-vs-exports TL;DR: variables are not the values they point to. Maybe that helps yougen or maybe I'm beating a dead horse.

[nodejs] Windows Defender makes Node extremely slow

2015-05-06 Thread Adam Ahmed
Node was doing fine for me until maybe 2-3 weeks ago. I'm not sure what changed, but now every time I run a grunt or gulp task, it becomes _extremely_ slow. Even just getting an error like "Fatal error: unable to find local grunt" goes from taking 629ms to taking 34 seconds. https://monosnap.co