News for hackers. Stuff that matters.
Re:Ask HN: Why do the majority of JS developers prefer space... by jdimov on Friday August 15, 2014 @12:09PM (#8182800)
I'm a Python dev, and it's the same in Python world. I prefer spaces, and so do most other Python devs. This is in line with one of the Python community's core beliefs - "Explicit is better than implicit"
Re:Ask HN: Why do the majority of JS developers prefer space... by dcomartin on Friday August 15, 2014 @01:34PM (#8183215)
"Explicit is better than implicit"

I think making the implicit explicit is also a belief of most logical devs outside of the Python community.

Re:Ask HN: Why do the majority of JS developers prefer space... by Zergy on Friday August 15, 2014 @03:59PM (#8183862)
> "Explicit is better than implicit"

Seems like a strong argument for sticking with strongly typed languages.

Re:Ask HN: Why do the majority of JS developers prefer space... by kyllo on Saturday August 16, 2014 @01:14AM (#8185462)
Python is strongly typed.

Dynamic typing and weak typing are not the same thing.

Python:

    >>>1 + "1"
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    TypeError: unsupported operand type(s) for +: 'int' and 'str'
PHP:

    >1 + "1"
    2
Re:Ask HN: Why do the majority of JS developers prefer space... by crazypyro on Friday August 15, 2014 @12:35PM (#8182928)
It helps that PEP define that spaces is explicitly correct as well.
Re:Ask HN: Why do the majority of JS developers prefer space... by LarryMade2 on Friday August 15, 2014 @11:50PM (#8185355)
Except when it comes to closing brackets... sigh
Re:Ask HN: Why do the majority of JS developers prefer space... by kyllo on Saturday August 16, 2014 @01:08AM (#8185460)
Why would you need those when you have indented blocks as a language feature? Unless you really like one-liners, in which case you should just use Perl or Ruby.
Re:Ask HN: Why do the majority of JS developers prefer space... by LarryMade2 on Saturday August 16, 2014 @11:30AM (#8186507)
Kind of an old-school thing, I prefer the visual/literal cues of opening/closing brackets in statement groups, I guess I don't really trust encapsulation my mere indentation.

So yeah, I would prefer explicit (brackets) over just implicit (spaces), in python.

Perl and Ruby aren't Python.