shamansir / rpd

:ok_hand: A Minimal Engine for creating Node-Based Visual Programming User Interfaces
http://shamansir.github.io/rpd
443 stars 48 forks source link

Go ES5y/ES6y/ES7y #64

Open shamansir opened 9 years ago

shamansir commented 9 years ago

While using reactive techniques, I forgot all modern browsers support forEach/map/reduce and stuff. Should change for-loops to this hipsterish stuff too.

shamansir commented 9 years ago

Also code would be more compact with => from ES7. Not yet sure I want to use Babel, though.

Nek commented 9 years ago

That arrow functions syntax is ES6 and works in the latest Chrome and Safari.

shamansir commented 9 years ago

@Nek cool, you are right, thanks. And forEach is ES5, actually :)

That's regarding =>:

2015-07-30 at 13 11
shamansir commented 9 years ago

But I plan to try Babel at some point anyway, I'm just uncertain if I like it as a result :).

Nek commented 9 years ago

I already use it and I have to say ES6 is ages ahead of ES5.

Please take a quick look at this document to get a feel of it https://github.com/airbnb/javascript/blob/master/README.md

Also babel can be used as a standalone tool. That's neat 'cause setting up a toolchain is the most cumbersome part of todays JS development.

shamansir commented 9 years ago

Also there are usages of both Object.keys()-based loops and for-in-based loops, I should chose the one true way.