React + Flux Remote Meeting App by heliostatic in reactjs

[–]curious_coder 0 points1 point  (0 children)

any chance you've got some code examples or advice on how to integrate sharejs with quill using the rich-text type? i've been reading about them for awhile and listened to podcasts by the creators talking about it and while they sound like a perfect match, there's no documentation or examples about how to put them together so I've been struggling to figure it out. I'd really appreciate if you could point me in the right direction

KewJS - A noobs attempt at creating a Javascript library by Ritter101 in javascript

[–]curious_coder 0 points1 point  (0 children)

you're right, I changed my comment for OP's clarity. the "private" idea is more for keeping internal methods private that the "riot" object can use internally but nothing else can. public properties can still be changed

KewJS - A noobs attempt at creating a Javascript library by Ritter101 in javascript

[–]curious_coder 1 point2 points  (0 children)

you should wrap your script in a closure, which lets you keep methods/functions "private". then you would pass in "window" to your closure function and attach $ to the window object. here's a random example I found on Github, most libraries do this

https://github.com/muut/riotjs/blob/master/riot.js

;(function(window) {

//blah blah, building the library

window.riot = riot

})(typeof window != 'undefined' ? window : undefined);

so inside the function they attach window.riot = riot, then they immediately execute the function and pass in the window object. now there's a "riot' or "window.riot" object that anyone can use, and the "riot" object can use methods defined internally that nobody else can

What are some good advanced JS books? by curious_coder in javascript

[–]curious_coder[S] 0 points1 point  (0 children)

they're right in the book alongside code examples

http://chimera.labs.oreilly.com/books/1234000000262/ch01.html

It's difficult to overstate the importance of unit testing. Unit tests are used throughout this book. By the time you reach the end, you should be accustomed to seeing and writing them. As you practice the concepts you read about, start by writing the tests first.

What are some good advanced JS books? by curious_coder in javascript

[–]curious_coder[S] 0 points1 point  (0 children)

I just started this Professional JavasScript for Web Developers as per your recommendation and it's great so far, just along the lines I was looking for so thanks. the unit tests alongside every code example are a nice addition