[ / / / / / / / / / / / / / ] [ dir ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Name
Email
Subject
Comment *
File
Select/drop/paste files here
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

[–]

 No.875950>>876011 >>876105 >>876140 [Watch Thread][Show All Posts]

When I code I use tabs because you want the columns to line up. For some word documents I use tabs. You want things to adjust when you go back and edit them and tabs help.

 No.875954>>875979

I used to use tabs because it was easier, but being part of a repo has changed my views on this. Git doesn't accept mixing tabs and spaces (which happens if your IDE is shit), but also, I love the way I can navigate monospace with spaces. Moving down one line, doesn't put me at the end of a shorter line, and then at some place I don't want to be another line down. If I had it my way, the entire document would be filled with 72 spaces on every blank line. You don't add characters when you type, it's just a macro for "replace current space with <key>." And deletion? Also a macro. Backspace maps to "move one character to the left and replace with a space." "But what about inserting characters in the middle of a line?" You ask. Easy, the overhead for 72 characters is tiny, just put it in a macro. Like this: "Check current character position. Copy current character. Replace character with newChar (the first one is the input), check line number is not 72, set newChar to current char, and pipe it all again into the macro." Look at that, perfection. If you use tabs in your software, I don't hate you, but I hope your daughter has as rough a time finding a beta mate that will worship her feet, as I do navigating tabs.


 No.875962>>875965

Tabs should be supported at window level and not application level


 No.875965

>>875962

Wrong kind of tabs but I agree

Also tabs fucking suck shit


 No.875968

>When I code

>code


 No.875979>>875998

>>875954

>Git doesn't accept mixing tabs and spaces

What the hell are you talking about of course it does, git doesn't give a shit.


 No.875998>>876024


 No.876011

>>875950 (OP)

i agree op. op not a poof.


 No.876021

Who gives a fuck what you use?


 No.876024>>876044

>>875998

He's right fucktard. Git couldn't give less of fuck what you use. It will track the content just as well. YOU'RE the one who cares when Git starts noticing the fucked up whitespace and introducing noise into diffs, logs and such. It's the C libraires and OS runtimes that keep converting line endings when you edit files and the actual effect is a file created on Unix with LF line endings somehow gets converted to CR LF on Windows and Git IS going to notice that because obviously the file fucking changed. Winfags caused so much pain to civilized programmers, git people added the option to automatically convert that shit to a canonical LF line ending format BEFORE committing so that the repository is always clean. They also added a whitespace warning thing so that you can avoid committing garbage like extra whitespace at the end of lines. All of this is pure porcelain that can be disabled and is only there to help you deal with winbloze lusers and make your life better as result. You can commit whatever the fuck you want you cunt.


 No.876044

>>876024

I counter with: "I didn't chose this option, it's a default." If it's there by default, it's an intended feature. Ergo, git cares about whitespace.


 No.876059

Another tabs or spaces thread...

Honestly if your language requires either then it is 100% shit. The entire idea of whitespace is retarded and shouldn’t exist. If you can’t figure out how a language without spaces or tabs would work you’re not creative. SPACES & TABS BTFO


 No.876064>>876066

Many languages have pretty printers these days so this really is a non-issue. You could setup a company style for commits and then convert to and from that to each for each individual faggots personal settings.


 No.876066

>>876064

*delete: to each


 No.876090

What's wrong with this? Can't you niggers write a hotkey script that substitutes Tab press with whatever number of spaces needed? Is it hard to convert space spaces to tab spaces before committing to a repo?


 No.876105

>>875950 (OP)

>I strayed from >>>/g/

don't worry you can go back

>>>/g/


 No.876117

I don't care. I use GNU indent to change code formatting.


 No.876128

Thats great but can you give users direct control over telemetry


 No.876140

>>875950 (OP)

Why would you even listen to what this fucker has to say about "coding". He probably hasn't even seen a text-editor in 20 years.




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
18 replies | 1 images | Page ???
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir ][ watchlist ]