AstonJ

AstonJ

Thoughts?

:lol:

Our thread on Silicon Valley (TV show)

Showing Posts 11 to 20

sztosz

sztosz

You really made me think about it very, verrry hard. And I think i understand now, i don’t type like professional typist, and although i use most of my fingers my left hand is on far left side of keyboard, instead being closer to the middle. If I had my hands on keyboard like I should I would not be using tab key so much probably, because space is much more accessible.

Now I understand why people would use space key for indenting.

rvirding

rvirding

Creator of Erlang

The thing you should NOT do is to change the tab size, this is what is really really evil. All the issues in the “Tabs are evil” come from this. If tab size is always the same then mixing tabs and spaces is not problematic. Also a lot of things assume that tab size is 8, printers for example.

Setting tab size and using that to indent will guarantee 2 things:

  • While it might look good in your editor, with your settings, the rest of the world will curse as they have to reindent your code to be able to read it.
  • Alignment becomes practically impossible, which is bad as alignment is good

So don’t change tab size. If you don’t like using tabs, with tab size 8, then set so you only use spaces. Please.

Robert

kblake

kblake

LOL. This is so good! #spacesftw

thinkpadder1

thinkpadder1

Hmm, I am probably gonna make to switch to spaces then. Just gonna use TAB a shortcut for 8 spaces in my editor. :slight_smile:

Thank you for the insights everyone.

mgwidmann

mgwidmann

@chrismccord You really hit the spacebar 4 times when defining a function? Seems like the tab key might be a productivity boost for you :laughing:

chrismccord

chrismccord

Creator of Phoenix

Not often when your editor correctly maintains indentation levels

Qqwy

Qqwy

TypeCheck Core Team

Let’s all go back to punching programs in punchcards. Then we didn’t have this problem… :smile:

sotojuan

sotojuan

There was once an article that showed the % of projects on GitHub that used tabs or spaces for different languages. The one for Ruby was like 98% spaces—I’d love for Elixir to have the same % so we can stop bikeshedding!

PatNowak

PatNowak

I think the best solution is to use two spaces. It’s like in Ruby, but it’s a rule from a community guide.

Eiji

Eiji

so tabs are not bad
Spaces and tabs have their advantages and disadvantages that is necessary to know before choosing them, so everyone can choose spaces or tabs, paying attention to style of code that he/she prefer.
I prefer to use tabs. I am writing code that looks good with them and I have no problem with readability.

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 92995 915
New
caslu
I want to open this thread for you all to discuss and help those who really like Ash but are still hesitant to use it in a real project. ...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
GES233
I’m posting this in response to Jose’s recent tweet (Cr. link) : People are sleeping on Elixir for a coding harness: Hot-code swappi...
New
_mfierro
Hello, I wrote Stop My Hand, a Scattergories-like web application using Phoenix/LiveView as my learning project for Elixir (after readin...
New
marciol
It would be helpful to have a list of companies worldwide that hire engineers without prior experience in Elixir. Often, it can be quite ...
New
durvia
Anyone running long-lived stateful processes on BEAM? We’re building an AI agent runtime and would love to compare notes. We’re a small ...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews