Last active
August 26, 2015 04:56
-
-
Save cerebrl/0e50e0f36ccce063790a to your computer and use it in GitHub Desktop.
Revisions
-
cerebrl revised this gist
Aug 26, 2015 . No changes.There are no files selected for viewing
-
cerebrl revised this gist
Aug 26, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ /** **************************************** * Module for say hi feature * @module sayHiFactory * @returns {object} */ -
cerebrl revised this gist
Aug 26, 2015 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,6 @@ function sayHiFactory() { sayHi: pblcSayHi }; } // module.exports = sayHiFactory(); /** -
cerebrl revised this gist
Aug 26, 2015 . 1 changed file with 9 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,4 +18,12 @@ function sayHiFactory() { }; } // module.exports = sayHiFactory(); /** * Pros: no implicit environment, easier mental model, more flexibility left to implementation, no `new` needed * Cons: it's different? It's not what everyone else does? * * Is it programming to an interface? Yup! * Is it composable? Yup! */ -
cerebrl revised this gist
Aug 26, 2015 . No changes.There are no files selected for viewing
-
cerebrl renamed this gist
Aug 26, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
cerebrl revised this gist
Aug 26, 2015 . No changes.There are no files selected for viewing
-
cerebrl renamed this gist
Aug 26, 2015 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,12 +4,12 @@ * @returns {object} */ function sayHiFactory() { var greeting = "Basic module says, 'hallo'!" function prvtWriteToConsole() { console.log(greeting); } function pblcSayHi() { privateWriteToConsole(); } -
cerebrl created this gist
Aug 26, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ /** **************************************** * App level module for say hi * @module sayHiFactory * @returns {object} */ function sayHiFactory() { var greeting = "Basic module says, 'hallo'!" function prvtWriteToConsole() { console.log(greeting); } function pblcSayHi() { privateWriteToConsole(); } return { sayHi: pblcSayHi }; } // module.exports = sayHiFactory();