Hey fellow lovers, I want to share my second simple module called RR!
It is short for Recursive Require, which does what it literally mean. Very useful.
github
RR - Automated Requiring Process
- yetneverdone
- Party member
- Posts: 446
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
RR - Automated Requiring Process
My GameDev Website
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Re: RR - Automated Requiring Process
Hai hai, nice module ;o I've looked through the code and noticed a few things.
On line 3 you have variable "dir", but it is only used in the functions getDir and setDir. There's no reason for that variable and those two functions to exist.
Other than that I'd like to point out that in the recursive function the tree parameter goes unsused, so it should be removed from the function altogether
Nice work ;o
On line 3 you have variable "dir", but it is only used in the functions getDir and setDir. There's no reason for that variable and those two functions to exist.
Other than that I'd like to point out that in the recursive function the tree parameter goes unsused, so it should be removed from the function altogether
Nice work ;o
- yetneverdone
- Party member
- Posts: 446
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: RR - Automated Requiring Process
The dir variable is a for default, if the user didnt specify what folder to use.Lucyy wrote: ↑Thu Jun 08, 2017 1:15 pm Hai hai, nice module ;o I've looked through the code and noticed a few things.
On line 3 you have variable "dir", but it is only used in the functions getDir and setDir. There's no reason for that variable and those two functions to exist.
Other than that I'd like to point out that in the recursive function the tree parameter goes unsused, so it should be removed from the function altogether
Nice work ;o
That recursive require algorithm is not originally mine. It is from headchant i think (im not really surel, it's from a github repo, a boilerplate template
My GameDev Website
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Re: RR - Automated Requiring Process
I am aware the dir variable is for default, but it is never used.yetneverdone wrote: ↑Thu Jun 08, 2017 2:48 pm The dir variable is a for default, if the user didnt specify what folder to use.
That recursive require algorithm is not originally mine. It is from headchant i think (im not really surel, it's from a github repo, a boilerplate template
Who is online
Users browsing this forum: No registered users and 204 guests