Simple question - what do you use in programming and why?
Is that tabs or spaces?
>tabs is faster
literally every editor emulates tabs when you set it to use spaces, they're the same speed.
Spaces though because I'm an asshole and like to impose my 2 space tabs on everyone
Tabs set to 4 blocks, for every prog lang I use, mainly being C.
Fucking LEFT,LEFT,LEFT,LEFT fgts using 4 spaces. And no I refuse to use shitty shortcuts like CTRL+LEFT to jump 4 spaces, when you shouldn't be using shitty workarounds in the first place to deal with multiple space indentations.
What would some shitty, non-portable shell script do that a simple makefile can't?CC = gcc
CFLAGS = -c -Wall -O2
LDFLAGS = -pthread
SOURCES = $(wildcard src/*.c)
OBJECTS = $(SOURCES:.c=.o)
EXECUTABLE = program
all: $(SOURCES) $(EXECUTABLE)
debug: CFLAGS += -g -Wextra
debug: CPPFLAGS += -DENABLE_DEBUG
debug: $(SOURCES) $(EXECUTABLE)
@echo " LD $@"
@$(CC) $(OBJECTS) -o $@ $(LDFLAGS)
@echo " CC $@"
@$(CC) $(CFLAGS) $(CPPFLAGS) $< -o $@
@rm -f $(OBJECTS) $(EXECUTABLE)
>ITT FUCKING IDIOTS THINKING 4 SPACES MEANS HITTING THE SPACE KEY 4 TIMES
>JESUS FUCKING CHRIST
>USE A FUKIN PROPER EDITOR THAT REMOVES 4 SPACES WHEN YOU HIT BACKSPACE ON IT
>4 SPACES IS THE STANDARD FOR CONSISTENCY ACROSS ALL EDITORS AND MACHINES REGARDLESS OF YOUR DIP SHIT SKIN COLOUR!!
>wasting space on 4 characters, when you can use 1
How are you people using an IDE where you can't set up the tab key to produce space characters?
Filling your code with tab characters, actual characters of the character code 9, is a sin. Just make your tab key produce 2, or 4, spaces.
>How are you people using an IDE where you can't set up the tab key to produce space characters?
I use VIM. It can do that, but I choose not to.
>Filling your code with tab characters, actual characters of the character code 9, is a sin
No. Filling source code files with fuck loads of unnecessary spaces is a sin.
Using tabs solely for indentation is just more semantic; You encounter a tab character, you know this is a indent. If you use space for it too, it could be indent but also alignment or other formatting.
>Tabs (4 spaces) for indentation then spaces for any alignment, because anything else is wrong.
This is the worst of the two possible worlds. You will have a independent component that will work nice with you but also a dependent component that will mess up with your output.