News for hackers. Stuff that matters.
Re:Yahoo Mail moving to React by bad_user on Wednesday November 26, 2014 @12:20PM (#8663367)
Facebook Flow or TypeScript - still weak.

On require/modules, that's a freaking mess.

Ambiguous/unexpected behavior... nothing fixes it.

To make matters worse, there's always the promise of some magical library or tool that's going to fix your problems, until you discover that it sucks, or that it is unmaintained, or that it doesn't interoperate with another library and then you're back to search between thousands of pieces of crap that do the same thing.

I remember the days when people were having boners over CoffeeScript. Boy, that was a bad move.

Re:Yahoo Mail moving to React by tracker1 on Wednesday November 26, 2014 @07:15PM (#8665326)
I prefer straight JS over CoffeeScript/TypeScript/Flow etc...

I don't find require/modules to be too much of a mess.. unless you are using a lot of really large tool-chains with deep dependencies... npm dedupe helps point out problems there.

Breaking your logic into idempotent functional components without side effects as separate files/modules reduces a lot of what can be considered ambiguous or unexpected.

If you work with a functional flow, avoiding OO in JS as much as prudent, you can get a lot done without nearly as much confusion.

For now co/generators/promises get you really far along. In the future await/async will take it farther.

Re:Yahoo Mail moving to React by Kiro on Wednesday November 26, 2014 @12:54PM (#8663591)
> Facebook Flow or TypeScript - still weak.

How is it weak?

Re:Yahoo Mail moving to React by adamors on Wednesday November 26, 2014 @05:32PM (#8664967)
Flow was released literally last week. I guess calling it weak is going too far, but people in this comment thread refer to it like it's age old tech.