AstonJ

AstonJ

Tabs vs Spaces

Thoughts?

:lol:

Our thread on Silicon Valley (TV show)

First Post!

karmajunkie

karmajunkie

I wonder what he thinks about spacemacs…

Most Liked

chrismccord

chrismccord

Creator of Phoenix

This programmer does! :slight_smile: Also I think the debate for tabs vs spaces was settled long ago in Elixir; spaces.

10
Post #7
ejc123

ejc123

I just put all my code on one line :slight_smile: white space is for wimps.

gregvaughn

gregvaughn

For those who may have never used a manual typewriter, the semantic meaning of tab is harder to understand. When you physically set a tab stop on the typewriter, then press the tab key the insertion point jumps to the nearest tab stop to the right. Tabs were originally intended for vertical alignment, which really is our goal in code.

That said, I use the tab key, but have vim set to do soft tabs. That’s the best compromise IMHO.

Last Post!

OvermindDL1

OvermindDL1

@BrightEyesDavid That hit pretty close to where I work. Reading things like that make me wonder why people use spaces for indentation, especially when by definition they aren’t for indentation…

Where Next?

Popular in Discussions Top

JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 55125 245
New
AstonJ
If a newbie asked you about Phoenix Contexts, how would you explain the basics to them? Feel free to be as concise or in-depth as you li...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
mikl
I wanted to capitalize a string, and tried using String.capitalize(). That generally works well, until you try to capitalize a word like...
New
owaisqayum
I have a sample string sentence = "Hello, world ... 123 *** ^%&*())^% %%:>" From this string, I want to only keep the integers, ...
New
RudManusachi
What configs will make sense to put to runtime.exs? – A bit of how I configure apps: I have generic configs in config/config.exs, dev...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New

Other popular topics Top

baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New

We're in Beta

About us Mission Statement