-
Notifications
You must be signed in to change notification settings - Fork 23
Why InitConn in utils? #18
Comments
I have just put lone functions (except for run and run2, I think) from index.js into utils.js.
We either BTW, am I right to assume that EDIT: |
An InputPort is connected either to a Connection or an InitConn, and Regards, Paul On Fri, Feb 13, 2015 at 8:13 AM, ComFreek [email protected] wrote:
|
If I understand you correctly, an InitConn is basically a Process with 0 inports, 1 outport, and whose function returns a constant/pre-defined string. Is that correct? Where is that receive function you mentioned? Unfortunately, I could not find the place where the |
@jpaulm I don't know whether you are aware of this, but there are two users with which GitHub identifies your commits: https://github.com/jpaulm/jsfbp/commits/ That's probably because you are using two different names. |
I think the two users are jpaulm and J. Paul Morrison - right? It seems to Regards, Paul On Fri, Feb 13, 2015 at 11:29 AM, ComFreek [email protected] wrote:
|
Exactly, you could try setting your local Git username and mail. Execute these commands:
(You can verify these settings by leaving out the last part, i.e. not passing a new value.) |
I tend to resist calling InitConn a Process as it is not active - it is Receive is in InputPort, and there are 5 references to it in index.js. Regards, Paul On Fri, Feb 13, 2015 at 11:26 AM, ComFreek [email protected] wrote:
|
Done! Thanks! Paul On Fri, Feb 13, 2015 at 12:00 PM, ComFreek [email protected] wrote:
|
I see! @tlrobinson What do you think? Nonetheless, we should definitely document the code with JSDoc syntax, which hopefully alleviates the confusion curious readers might have.
|
On Fri, Feb 13, 2015 at 12:23 PM, ComFreek [email protected] wrote:
I'm open to suggestions! My code tends to be rough and ready!
Not that I know of. I merged @tlbrobinson 's code first, then yours a day Regards, Paul
|
I've partly documented InputPort.js for demonstration purposes: You can execute these commands to view the resulting documentation:
|
@ComFreek - I like the way you have split up index.js, and I have updated the Readme to reflect that getElementWithSmallestBacklog is in utils, but I am wondering why InitConn is also in utils, as it is not exposed to components (although it is used by initialize)... Just wondering! Thx.
The text was updated successfully, but these errors were encountered: