News for hackers. Stuff that matters.
Re:Cerebro App – Open-source productivity booster with a brain by lettersdigits on Sunday February 26, 2017 @09:26AM (#13737342)
> https://github.com/KELiON/cerebro/blob/master/app/AppUpdater... :

> export default class AppUpdater { ......

why is this a class ? just so it can auto-exececute without being called ?

i would prefer an 'export default function init(){ // init code'

Re:Cerebro App – Open-source productivity booster with a brain by rounce on Sunday February 26, 2017 @07:11PM (#13740857)
Not even. `export default new class ...` would be 'equivalent' to an IIFE; using CommonJS module caching to produce singleton behaviour. This should just export a function. That's it.