Re: [nodejs] Performance implications if next is not called in the middleware?

2017-12-27 Thread Michaël Rouges
The next() call isn't related to the perfs... it's only to let the possibility to have another middleware to treat the request. I do the same thing in my AJAX client library : anticore <https://www.npmjs.com/package/anticore> ;) Michaël Rouges - https://github.com/Lcfvs - @Lcfvs

Re: [nodejs] Asynchronous Control Flow

2015-05-21 Thread Michaël Rouges
It depends on your need, but you can also look to my https://www.npmjs.com/package/queue.io ;) Michaël Rouges - https://github.com/Lcfvs - @Lcfvs 2015-05-19 3:18 GMT+02:00 Matt : > Looks like you're trying to run before you can walk, to be honest. > > Play a bit with async.

Re: [nodejs] Re: Node.js in ERP-land

2014-05-18 Thread Michaël Rouges
the development quality. Michaël Rouges - https://github.com/Lcfvs - @Lcfvs 2014-05-17 13:03 GMT+02:00 Bruno Jouhier : > Thanks guys. > > @Mike On the client side we have two stack, one for desktop/laptop web > interface and one for mobile. We use jQuery and jQuery mobile. Initially we

Re: [nodejs] Node.js in ERP-land

2014-05-15 Thread Michaël Rouges
Unfortunately, unreadeable website, zoom notice, whatever I make. (Firefox 29.0.1) Why this behavior choice? :| Michaël Rouges - https://github.com/Lcfvs - @Lcfvs 2014-05-15 1:35 GMT+02:00 Bruno Jouhier : > Today was a special day for our R&D team. Sage launched version 7 of Sage &

Re: [nodejs] Re: What do we call ourselves? Nodesters?

2014-03-04 Thread Michaël Rouges
Simply Noders =) Michaël Rouges - https://github.com/Lcfvs - @Lcfvs 2014-03-04 10:21 GMT+01:00 Angel Java Lopez : > Nodurians? ;-) > > I prefer node developers > > > On Tue, Mar 4, 2014 at 5:55 AM, Floby wrote: > >> Nodles >> >> >> On Thursday, 27

Re: [nodejs] node programming style question

2013-12-06 Thread Michaël Rouges
block is like a summary of the used elements. Michaël Rouges - https://github.com/Lcfvs - @Lcfvs 2013/12/6 Matt > > On Fri, Dec 6, 2013 at 4:01 PM, Alex Kocharin wrote: > >> I'm still seeing Object. in stack traces from time to time >> though. >&g

Re: [nodejs] Re: Forget your promises... adopt the yielded style programming

2013-09-13 Thread Michaël Rouges
New major release (v 1.2.0) Adding a way to set a delay before the generator.next() or generator.nextCb() call In order to avoid recursion problems, the asynchronous execution privileges setImmediate(), then setTimeout()... depending to the available methods. -- -- Job Board: http://jobs.no

Re: [nodejs] Re: Forget your promises... adopt the yielded style programming

2013-09-12 Thread Michaël Rouges
n Thursday, September 12, 2013 at 6:32 PM, Michaël Rouges wrote: > > New version (1.1.9) released. ;) > > > > Le mardi 13 août 2013 03:41:37 UTC+2, Michaël Rouges a écrit : > > Hi all, > > I created a new tool browsers/Node.js compatible. > > It can handle asynch

[nodejs] Re: Forget your promises... adopt the yielded style programming

2013-09-12 Thread Michaël Rouges
New version (1.1.9) released. ;) Le mardi 13 août 2013 03:41:37 UTC+2, Michaël Rouges a écrit : > > Hi all, > > I created a new tool browsers/Node.js compatible. > > It can handle asynchronous calls as if they weren't, and can create > relationships between your

Re: [nodejs] Re: Callbacks as our Generations' Go To Statement - Miguel de Icaza

2013-08-20 Thread Michaël Rouges
Hello everyone, Sorry to break into the conversation, so ... but this topic has given me the desire to simulate an simple asynchronous goto. So here I'm sharing it with you. =) https://github.com/Lcfvs/yld/blob/master/examples/goto.js 2013/8/20 Floby > Ok, that's a bit clearer. thanks. > >

Re: [nodejs] Forget your promises... adopt the yielded style programming

2013-08-19 Thread Michaël Rouges
's pretty obvious already and I'm not really interested in > spending the amount of time it would require to go back and update every > page. People should just read the whole page before claiming to know a > thing. I do appreciate your feedback though and if I have a day where

Re: [nodejs] Forget your promises... adopt the yielded style programming

2013-08-19 Thread Michaël Rouges
"this page is 100% out of date and should not be used > at reference material" really should be a lot more obvious. Maybe something > like give the bolded message a title "Warning:" with a warning icon > > > On Sun, Aug 18, 2013 at 6:15 PM, Michaël Rouges >

Re: [nodejs] Forget your promises... adopt the yielded style programming

2013-08-18 Thread Michaël Rouges
Hi Rick, Thank you for looking at my code, however, the spec says otherwise. http://wiki.ecmascript.org/doku.php?id=harmony:generators Michaël Le lundi 19 août 2013 00:46:46 UTC+2, Rick Waldron a écrit : > > Just a friendly heads up, there is no close method on GeneratorObject, eg. > > fnGene

[nodejs] Re: Forget your promises... adopt the yielded style programming

2013-08-18 Thread Michaël Rouges
*Version 1.1.1* this.error becomes this.throw(), conforming with the ES6 generators -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs

[nodejs] Re: Forget your promises... adopt the yielded style programming

2013-08-18 Thread Michaël Rouges
New major version (1.1.0) Simplified parent <-> child communication See the how-it-works-6.js& the diff https://npmjs

[nodejs] Re: Forget your promises... adopt the yielded style programming

2013-08-18 Thread Michaël Rouges
New version *1.0.7 *The generators are now extensibles*. * * * The parent generator yld() & error are unavailable, from the child generator. Each generator treats them itself. * *https://npmjs.org/package/yld -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joy

[nodejs] Re: generator question

2013-08-16 Thread Michaël Rouges
*New nextCb() method* Sends variables to the next yield response, usable to retrieve callback arguments It's a fallback until the appearance of destructuring assignments read = function* read(path) { var response, error, data; response = yield readFile(path, {}, this.sendCb);

[nodejs] Re: generator question

2013-08-16 Thread Michaël Rouges
A file reader example : var yld, readFile, read, yldRead; yld = require('yld'); readFile = require('fs').readFile; read = function* read(path) { var self, response, error, data; self = this; response = yield readFile(path, {}, function () { self.next(arguments);

[nodejs] Re: generator question

2013-08-16 Thread Michaël Rouges
With my system, each yield in a generator is reached, if so instructed. The first is reached when yielded function is called. Then the following are reached if : - the current generator has a this.next() call - a child generator has a parent.next() call, where child is a generator called by the

[nodejs] Re: Forget your promises... adopt the yielded style programming

2013-08-15 Thread Michaël Rouges
New readme... Le mardi 13 août 2013 03:41:37 UTC+2, Michaël Rouges a écrit : > > Hi all, > > I created a new tool browsers/Node.js compatible. > > It can handle asynchronous calls as if they weren't, and can create > relationships between your various scopes. > &g

[nodejs] Re: Forget your promises... adopt the yielded style programming

2013-08-15 Thread Michaël Rouges
Any other bad things in my tool? I ask nothing better than to code better. :) -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" grou

Re: [nodejs] Re: Forget your promises... adopt the yielded style programming

2013-08-15 Thread Michaël Rouges
aldron wrote: >> >> It's unwise to encourage the use of `yield` in non-generator function >> bodies... "yield" is strict-mode reserved and will throw a SyntaxError >> exception in ES6 engines. This appears in many places throughout the readme >> fi

[nodejs] Re: Forget your promises... adopt the yielded style programming

2013-08-15 Thread Michaël Rouges
Thanks Rick, for your explanations... New version (1.0.1) online... ES6 generators compliant. The NPM seems to take a few time to refresh my last publication... but the repo is ok. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-

Re: [nodejs] Re: Forget your promises... adopt the yielded style programming

2013-08-14 Thread Michaël Rouges
; > >> >> On Wed, Aug 14, 2013 at 6:20 PM, Rick Waldron >> >> > wrote: >> >>> Too be blunt, none of the code in the yld.js file will actually run, >>> these will all throw syntax error exceptions: >>> https://github.com/Lcfvs/yld/blob/mast

Re: [nodejs] Re: Forget your promises... adopt the yielded style programming

2013-08-14 Thread Michaël Rouges
ode reserved and will throw a SyntaxError > exception in ES6 engines. This appears in many places throughout the readme > file. > > > Rick > > > > > > > > > On Wed, Aug 14, 2013 at 3:38 PM, Michaël Rouges > > > wrote: > >> The wiki : https://git

[nodejs] Re: Forget your promises... adopt the yielded style programming

2013-08-14 Thread Michaël Rouges
The wiki : https://github.com/Lcfvs/yld/wiki I apologize if my English isn't very correct, I receive with pleasure your comments. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because

[nodejs] Re: Forget your promises... adopt the yielded style programming

2013-08-14 Thread Michaël Rouges
eems that the french post explain it but will be cool to have it > in english. > > Regards > > El miércoles, 14 de agosto de 2013 08:13:03 UTC-4, Michaël Rouges escribió: >> >> Posted 6 how-it-works-* in the examples >> directory<https://github.com/Lcfvs/y

[nodejs] Re: Forget your promises... adopt the yielded style programming

2013-08-14 Thread Michaël Rouges
Posted 6 how-it-works-* in the examples directory . Need more? :) -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subsc

[nodejs] Re: Forget your promises... adopt the yielded style programming

2013-08-14 Thread Michaël Rouges
More examples at http://dvp.io/yld-art (french) I'm currently working on a proper translation, in english... ;) Le mercredi 14 août 2013 11:50:02 UTC+2, Floby a écrit : > > I don't get the flow from the examples. > > On Tuesday, 13 August 2013 03:41:37 UTC+2, Michaël Roug

[nodejs] Re: The Future of Programming in Node.js

2013-08-13 Thread Michaël Rouges
See my topic, about the yielded style programming... and say goodbye to the callback hell. ;) -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Grou

[nodejs] Forget your promises... adopt the yielded style programming

2013-08-12 Thread Michaël Rouges
Hi all, I created a new tool browsers/Node.js compatible. It can handle asynchronous calls as if they weren't, and can create relationships between your various scopes. https://npmjs.org/package/yld -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/