My fellow Aelogicians invited me to attend ManilaJS which was held last week. It was actually my first time to attend a JS meetup so I figured it would be a good idea to come along. The venue was considerably retro cozy — attendees were to sit on bean bags while the event was on-going. One of the best things about being a part of this industry is that folks gather around and talk enthusiastically about their builds, learnings, and other experiences during events like this; it creates relaxed and laid back vibe all around.
Despite Manila’s notorious traffic making us late, we still managed to catch the first talk that discussed real-time chat app using React and Pusher. React is a library that mainly focuses on building user interfaces for applications that can handle large data changes, while Pusher API is capable of creating realtime chat capabilities for apps. Joy Paas of Quipper talked about react components having a life-cycle and using them to subscribe to channel and listen to events. There were also mentions different pusher channel types and triggering events.
- Enforce code standards
- Cultivate “testing” mindset
- Use good tools
Enforcing code standards with code guidelines must always have code review. Using Plato for review code quality and Instanbul for test coverage will give the developer confidence in his/her code but having a testing mindset is hard – you should have a discussion with your team or even folks that can teach you how to test. He also specified that we should always be using good tools. It’s available almost everywhere but using good tools gives the test as high quality as possible. Mocha, Chai, and Sinon is what he preferred as Chai gives would give us an assertion style of test and Sinon is for mock and stubs. Lastly, he gave a rule of thumb: “Test to minimize problems, do not test for the sake of testing”.
As a Rubyist, it was cool to see and learn about the JS community and their latest projects. I definitely took away key points that I can use for my own career growth in RoR.