You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 7, 2023. It is now read-only.
We will hold NodeFest which is the largest Node.js conference in Japan.
I’m one of the organizers this year.
The team members are @yosuke-furukawa, @watilde, myself and some other great nodeschool staff.
We would like to open code-and-learn-jp on NodeFest and support the contribution to nodejs/core.
Please feel free to suggest any contribution areas for the participants! @nodejs/collaborators
We will receive some PRs on 26th November.(http://nodefest.jp/2017/schedule.html)
Possible case in tests: nodejs/node#16243 (comment) + next comment: check else if by if replacements when a previous if contains return. Also check else eliminations on similar condition.
This is awesome. Keep in mind that we're also running a small code-and-learn at NodeConf EU at the beginning of November so some of the tasks may adjust after that. We should likely coordinate a bit in advance to make sure we don't end up duplicating any effort! :-) (I totally wish I was able to get to Tokyo this year)
One possible set of tasks that I can suggest for new contributors who are bit more confident in their Node.js skills, would be converting tests to use the new ../common/countdown utility module.
The way the Countdown utility works is straightforward:
constcommon=require('../common');constCountdown=require('../common/countdown');// ...constcountdown=newCountdown(n,common.mustCall(()=>{// do something here}));// Decrement the counter, the callback is called synchronously when// countdown.dec is called n times.countdown.dec();
I know that there are quite a few of the http2 tests that can benefit from this, along with a bunch of other http and https tests.
These tasks would be for folks who are a bit more comfortable with their Node.js skills.
Another potential suggestion is replacing assert.throws(fn, common.expectsError(err)); with common.expectsError(fn, err); It's another thing I would like to ideally introduce an eslint rule for (already have it written) but there are currently a ton of instances where we use the former.
I think that's pretty similar in difficulty to the change that was done at Node.js Interactive this year.
A simple thing is removing the redundant + from +conf.n in the benchmarks. If the values are integers in the bench(main, conf) object they will be integers in the main(conf) object too.
@abouthiroppy For my suggestion above, I created a gist with an eslint rule that will let you find all instances of assert.throws(fn, common.expectsError(err));.
Activity
joyeecheung commentedon Oct 18, 2017
cc @Trott @addaleax
Also, I will be there. Happy to help out with whatever needed.
ronkorving commentedon Oct 18, 2017
Of course I will be there 👍
vsemozhetbyt commentedon Oct 18, 2017
Possible case in tests: nodejs/node#16243 (comment) + next comment: check
else ifbyifreplacements when a previousifcontainsreturn. Also checkelseeliminations on similar condition.hiroppy commentedon Oct 18, 2017
@vsemozhetbyt Thank you for your information!
watilde commentedon Oct 18, 2017
Note: Here is the last time we had - #58
jasnell commentedon Oct 18, 2017
This is awesome. Keep in mind that we're also running a small code-and-learn at NodeConf EU at the beginning of November so some of the tasks may adjust after that. We should likely coordinate a bit in advance to make sure we don't end up duplicating any effort! :-) (I totally wish I was able to get to Tokyo this year)
One possible set of tasks that I can suggest for new contributors who are bit more confident in their Node.js skills, would be converting tests to use the new
../common/countdownutility module.For instance, if you take a look at: https://github.com/nodejs/node/blob/master/test/parallel/test-http2-client-destroy.js, you'll see that there is a
remainingcounter (https://github.com/nodejs/node/blob/master/test/parallel/test-http2-client-destroy.js#L19). The test then counts downremainingbefore closing the server. There are quite a large number of tests in our suite that perform similar actions in ways that are rather inconsistent. The../common/countdownutility was designed to bring some consistency there.The way the Countdown utility works is straightforward:
I know that there are quite a few of the http2 tests that can benefit from this, along with a bunch of other http and https tests.
These tasks would be for folks who are a bit more comfortable with their Node.js skills.
apapirovski commentedon Oct 18, 2017
Another potential suggestion is replacing
assert.throws(fn, common.expectsError(err));withcommon.expectsError(fn, err);It's another thing I would like to ideally introduce an eslint rule for (already have it written) but there are currently a ton of instances where we use the former.I think that's pretty similar in difficulty to the change that was done at Node.js Interactive this year.
AndreasMadsen commentedon Oct 18, 2017
A simple thing is removing the redundant
+from+conf.nin the benchmarks. If the values are integers in thebench(main, conf)object they will be integers in themain(conf)object too.example: https://github.com/nodejs/node/blob/master/benchmark/assert/deepequal-object.js#L30L31
hiroppy commentedon Oct 19, 2017
@jasnell @apapirovski @AndreasMadsen Thanks.🙌 I try to summarize that information in Gist.
You should come to Nodefest2017!!
MylesBorins commentedon Oct 19, 2017
apapirovski commentedon Oct 19, 2017
@abouthiroppy For my suggestion above, I created a gist with an eslint rule that will let you find all instances of
assert.throws(fn, common.expectsError(err));.hiroppy commentedon Oct 20, 2017
@MylesBorins Thanks!! yep, but I don't know the values session of node interactive. Would you give me this information?
@apapirovski wow, thank you so much 🙇 I'll use it!
seishun commentedon Oct 23, 2017
I'm on the fence about attending (concerned about the cost mostly).
fhinkel commentedon Nov 11, 2017
Also, I will be there. Happy to help out with whatever needed.
hiroppy commentedon Nov 18, 2017
Sorry for my late reply.
@seishun I think that Node.js Foundation will help with the cost.
@fhinkel Thanks!
23 remaining items
benchmark: remove redundant +
benchmark: remove redundant +
benchmark: remove redundant +
benchmark: remove redundant +
benchmark: remove redundant +