News for hackers. Stuff that matters.
Re:Why I'm not a React Native developer by WalterSear on Saturday August 19, 2017 @05:36PM (#15055766)
As a professional programmer, I've come to prefer code written to be understood by someone who started two weeks ago.
Re:Why I'm not a React Native developer by joesb on Sunday August 20, 2017 @02:59AM (#15057293)
In that case, don't write any code. Don't use function. Don't use React. Don't use lodash. Don't use third party library.

People who only start coding for two weeks can't understand any code.

People who start has enough experience to work, but only start in this project for two weeks, will understand "!!" idiom.

Re:Why I'm not a React Native developer by debaserab2 on Saturday August 19, 2017 @06:05PM (#15055881)
Then by that principle you'd want to use !! since casting via function or constructor differs more between languages.
Re:Why I'm not a React Native developer by WalterSear on Saturday August 19, 2017 @06:22PM (#15055959)
What it looks like in other languages is only minorly relevant to its obviousness and readability.
Re:Why I'm not a React Native developer by debaserab2 on Saturday August 19, 2017 @06:48PM (#15056067)
I don't see the argument that Boolean(val) "reads easier" than !! as long as you know what !! does.
Re:Why I'm not a React Native developer by goatlover on Saturday August 19, 2017 @07:39PM (#15056223)
Wouldn't any programmer recognize that Boolean(val) is a cast to a True/False value that's most likely an object, given the uppercase?
Re:Why I'm not a React Native developer by inimino on Sunday August 20, 2017 @07:13PM (#15060713)
Perhaps, but it's a primitive, not an object.