12

1. Kill every last bastard who uses spaces instead of tabs or anyone who thinks that's better.

2. Break every text editor that has the option of transforming beautiful code tabs into hideous spaces.

3. Make a statically typed language that's good enough to replace JS and the pile of hacks we have in the web today.

Comments
  • 1
    @irene I'm flattered. Fuck you too.
  • 6
    Wtf???!!!!
    Spaces are better indeed.
    They get displayed equally in every editor, while tabs get displayed, according to the editor settings.
  • 1
  • 0
    Actually official Google style is spaces, becouse od limited set od white signs which are allowed in file.
    Android Studio also uses spaces in auto format.
  • 1
    @linkinheroes A small price to pay.
  • 3
    Pressing the space bar is shit, but when the editor handles them like they're tabs (and does it well) spaces are better because they display consistently. Doesn't matter if you're the only one working on the project, but then you have other problems.
  • 4
    All good editors use spaces instead of tabs. Spaces are always much better. Especially when you are working with python.
    Otherwise be ready to get inconsistent Use of space and Tabs error.

    All good editors like VSCode , Pycharm etc usually insert spaces whenever u use tabs
  • 4
    With spaces you get into the argument wether to indent by 2, 4 or maybe even 8 spaces. Without shared editor configuration this will end up in inconsistent code where one file is indented with 2 spaces and others are indented with 4 spaces.

    If you'd just indent with one tab you can set wether one tab is displayed as 2 spaces, or 4, or even 3 if you fancy. That way, everybody can be happy!

    Use tabs for indentation, and spaces for alignment, but always comply to the standards in the project
  • 2
    There is Typescript. But JS is by far not the biggest problem in web development really.
  • 1
    @snaz Whoever does this is retarded. If we could just agree that 1 tab = 1 indentation level then everybody will be happy. Depending on my screen and/or preferences, I can set the tabs on my IDE to be displayed as big or as small as I want (2 spaces, 4 spaces, 8 spaces, whatever I want)
  • 1
    @irene *sets bigger font size*
    *uniform view goes to shit*
  • 1
Add Comment