Live data from Hacker News

Tabs or spaces – Parsing a 1B files among 14 programming languages

medium.com

1–10 of 124 posts

Re: Tabs or spaces – Parsing a 1B files among 14 programming languages

#3
Some IDEs will convert tabs to spaces when saving and the other way around when editing, so, while your approach is interesting, not really a proof of a majority choice.

Also my beef is specially with people who don't use tabs in files like fstab, like beasts.

Re: Tabs or spaces – Parsing a 1B files among 14 programming languages

#7

I've never really understood why you would use several characters (=spaces) for something that is semantically one indent. Can someone enlighten me? What are the advantages of spaces over tabs?

People always talk about consistent display of spaces whereas tabs might be shown as 4 spaces or even 8. Of course that means you can usually customize how tabs are rendered unless you code in Notepad or something crazy.

Re: Tabs or spaces – Parsing a 1B files among 14 programming languages

#8

I've never really understood why you would use several characters (=spaces) for something that is semantically one indent. Can someone enlighten me? What are the advantages of spaces over tabs?

    def doSomething( parameter1
                   , parameter2
                   , parameter3
                   ):
        pass

How would you make all the punctuation line up using tabs?

Re: Tabs or spaces – Parsing a 1B files among 14 programming languages

#9
post #7

I've never really understood why you would use several characters (=spaces) for something that is semantically one indent. Can someone enlighten me? What are the advantages of spaces over tabs?

People always talk about consistent display of spaces whereas tabs might be shown as 4 spaces or even 8. Of course that means you can usually customize how tabs are rendered unless you code in Notepad or something crazy.

Lots of people need to access files on a server via Emacs or Vim. Having to deal with tabs there can be very frustrating.
Post reply on HN