• exec/load/telnet_lib.js termcapture_lib.js

    From rswindell@VERT to CVS commit on Monday, August 31, 2015 13:12:42
    exec/load telnet_lib.js NONE 1.1 termcapture_lib.js NONE 1.1
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv4707

    Added Files:
    telnet_lib.js termcapture_lib.js
    Log Message:
    Cool libraries to do cool things. Use this like:
    var obj=load(new Object, "file_lib.js");
    obj.property=value.
    var result = obj.do(something);


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Deuce@VERT/SYNCNIX to rswindell on Thursday, September 17, 2015 16:36:10
    Re: exec/load/telnet_lib.js termcapture_lib.js
    By: rswindell to CVS commit on Mon Aug 31 2015 01:12 pm

    var obj=load(new Object, "file_lib.js");

    Just a style nit, the prefered way to write "new Object" is "{}" (and it can also be written "new Object()").

    ---
    http://DuckDuckGo.com/ a better search engine that respects your privacy.
    Mro is an idiot. Please ignore him, we keep hoping he'll go away.
    þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)
  • From Digital Man@VERT to Deuce on Saturday, September 19, 2015 23:50:03
    Re: exec/load/telnet_lib.js termcapture_lib.js
    By: Deuce to rswindell on Thu Sep 17 2015 04:36 pm

    Re: exec/load/telnet_lib.js termcapture_lib.js
    By: rswindell to CVS commit on Mon Aug 31 2015 01:12 pm

    var obj=load(new Object, "file_lib.js");

    Just a style nit, the prefered way to write "new Object" is "{}" (and it can also be written "new Object()").

    Preferred by whom? I thought load({}, ...) was a bit too cryptic and non-obvious, but I don't really care.

    digital man

    Synchronet "Real Fact" #3:
    Synchronet version 3 is written mostly in C, with some C++, x86 ASM, and Pascal.
    Norco, CA WX: 75.6øF, 62.0% humidity, 0 mph SSE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Deuce@VERT/SYNCNIX to Digital Man on Monday, September 21, 2015 12:35:36
    Re: exec/load/telnet_lib.js termcapture_lib.js
    By: Digital Man to Deuce on Sat Sep 19 2015 11:50 pm

    Just a style nit, the prefered way to write "new Object" is "{}" (and it can also be written "new Object()").

    Preferred by whom? I thought load({}, ...) was a bit too cryptic and non-obvious, but I don't really care.

    By "the community" whoever they are. Apparently they feel an object literal is more clear and obvious. JSLint (and syncjslint) and "JavaScript: The Good Parts" apparently are both sources readily searchable sources for this (maybe the book has more rationalization). JSLint actually prefers "Object.create(null)" over "new Object" for custom objects apparently.

    That reminds me, I need to update syncjslint.js...

    ---
    http://DuckDuckGo.com/ a better search engine that respects your privacy.
    Mro is an idiot. Please ignore him, we keep hoping he'll go away.
    þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)
  • From Deuce@VERT/SYNCNIX to Digital Man on Monday, September 21, 2015 12:39:35
    Re: exec/load/telnet_lib.js termcapture_lib.js
    By: Digital Man to Deuce on Sat Sep 19 2015 11:50 pm

    Just a style nit, the prefered way to write "new Object" is "{}" (and it can also be written "new Object()").

    Preferred by whom? I thought load({}, ...) was a bit too cryptic and non-obvious, but I don't really care.

    Found a simple guide by Crockford (who apparently wrote both JSLint and JavaScript: The Good Parts):
    http://javascript.crockford.com/code.html

    ---
    http://DuckDuckGo.com/ a better search engine that respects your privacy.
    Mro is an idiot. Please ignore him, we keep hoping he'll go away.
    þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)
  • From Deuce@VERT/SYNCNIX to Digital Man on Monday, September 21, 2015 14:26:41
    Re: exec/load/telnet_lib.js termcapture_lib.js
    By: Deuce to Digital Man on Mon Sep 21 2015 12:39 pm

    Preferred by whom? I thought load({}, ...) was a bit too cryptic and non-obvious, but I don't really care.

    Found a simple guide by Crockford (who apparently wrote both JSLint and

    Better style guide with rationalization: https://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml?showone= Array_and_Object_literals#Array_and_Object_literals

    ---
    http://DuckDuckGo.com/ a better search engine that respects your privacy.
    Mro is an idiot. Please ignore him, we keep hoping he'll go away.
    þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)