MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/tejbc/javascript_the_good_parts/c4lydkh/?context=9999
r/programming • u/sheldonpooper • May 09 '12
159 comments sorted by
View all comments
21
Old, and wouldn't this be true of every language?
9 u/yogthos May 09 '12 There is the principle of least astonishment, and JavaScript is one of the worst languages in that regard. 4 u/[deleted] May 09 '12 In what way? 3 u/fnord123 May 09 '12 edited May 09 '12 [] === [] and friends. There's a video kicking about with this shit.edit: https://www.destroyallsoftware.com/talks/wat 1 u/ameyp May 09 '12 I thought the problem only lay with [] == [] and friends? 1 u/fnord123 May 09 '12 https://www.destroyallsoftware.com/talks/wat 1 u/ameyp May 10 '12 Thanks
9
There is the principle of least astonishment, and JavaScript is one of the worst languages in that regard.
4 u/[deleted] May 09 '12 In what way? 3 u/fnord123 May 09 '12 edited May 09 '12 [] === [] and friends. There's a video kicking about with this shit.edit: https://www.destroyallsoftware.com/talks/wat 1 u/ameyp May 09 '12 I thought the problem only lay with [] == [] and friends? 1 u/fnord123 May 09 '12 https://www.destroyallsoftware.com/talks/wat 1 u/ameyp May 10 '12 Thanks
4
In what way?
3 u/fnord123 May 09 '12 edited May 09 '12 [] === [] and friends. There's a video kicking about with this shit.edit: https://www.destroyallsoftware.com/talks/wat 1 u/ameyp May 09 '12 I thought the problem only lay with [] == [] and friends? 1 u/fnord123 May 09 '12 https://www.destroyallsoftware.com/talks/wat 1 u/ameyp May 10 '12 Thanks
3
[] === [] and friends. There's a video kicking about with this shit.
edit: https://www.destroyallsoftware.com/talks/wat
1 u/ameyp May 09 '12 I thought the problem only lay with [] == [] and friends? 1 u/fnord123 May 09 '12 https://www.destroyallsoftware.com/talks/wat 1 u/ameyp May 10 '12 Thanks
1
I thought the problem only lay with [] == [] and friends?
1 u/fnord123 May 09 '12 https://www.destroyallsoftware.com/talks/wat 1 u/ameyp May 10 '12 Thanks
https://www.destroyallsoftware.com/talks/wat
1 u/ameyp May 10 '12 Thanks
Thanks
21
u/[deleted] May 09 '12
Old, and wouldn't this be true of every language?