Developers who use spaces make more money than those who use tabs
681–690 of 690 posts
Re: Developers who use spaces make more money than those who use tabs
#682Earlier quoted context omitted.
Some script? You mean the built in Unix utility 'expand'? Supposing I submitted code indented with spaces, but the wrong number. Would making the formatting match be easier, or harder? Maybe you should just use tabs in your codebase.
Maybe you should use the right number of spaces in your codebase.
Tabbers know how many tabs to use: one, per indent.
Re: Developers who use spaces make more money than those who use tabs
#683Re: Developers who use spaces make more money than those who use tabs
#684Re: Developers who use spaces make more money than those who use tabs
#685= Why Grown-Ups Don't Use Tabs = * Joe likes 4-space tabs, I like 2-space tabs, and Jane is old-school with 8-space tabs. * All goes well until someone aligns something visually, like so: void someNiceMethod( [tab][tab][tab][tab][space][space]int myParam...); * Now it aligns perfectly on my machine, looks mostly ok on Joe's machine, and is ON MARS on Jane's machine. Thus one-or-more of three futures happens: * Someon…
Who aligns like that? It seems to defeat the purpose of putting it on a separate line. void someNiceMethod( int myParam... ); Hey Presto! You, Joe and Jane all get your preferred size size of tab. As a bonus, this indentation style works equally well if Jim uses a non-fixedwidth typeface.
All-spaces lets the code look as-intended for everyone, and then their IDEs can let them hit the tab-key and get the look-and-feel they're after. It is the best option that gives the most freedom to everyone whilst also making us all play well together.
Re: Developers who use spaces make more money than those who use tabs
#686Earlier quoted context omitted.
Yes, Emacs used to group spaces into tabs. I think most editors these days do the right thing. This problem goes away if you indent parameters instead of aligning them: print( 'some long thing', further, arguments) In this case it takes an extra line, but it's often shorter.[1] [1] https://github.com/pennersr/django-allauth/blob/a44134688f5b...
Gross, You purt 3 parameters are on two lines. Either indent none of them and keep it on one line or indent all of them. What are you doing, trying to hide "arguments"?
Re: Developers who use spaces make more money than those who use tabs
#687Earlier quoted context omitted.
Assume you want to eliminate horizontal scrolling. This is a valuable enough goal that a lot of coding style guides have a width guideline. That keeps everybody from having to make their editor windows as wide as the last person who worked on the code. If this arrangement is working, nobody has to scroll horizontally, and there is no arms race of ever-wider editor windows. Now introduce tabs into this situation. In t…
I am genuinely baffled (but I don't think I'm right and you're wrong... I trust HN people to be smart and capable). Can you please explain to me how using tabs vs spaces would encourage people to indent their code differently? I mean, if I have an "if" statement, then I indent my code -- but why would people indent their code for reasons other than what the flow of the code suggests? And if these hypothetical "indent…
Re: Developers who use spaces make more money than those who use tabs
#688Re: Developers who use spaces make more money than those who use tabs
#689Almost certainly a result of the spaces cabal and the (often unspoken of) prejudice against tab users. Don't think you make hiring decisions based on tabs vs spaces? Well you're part of the problem, then. I'm building an app to help you easily email your congressperson and ask them to create legislation requiring space/tab equality. This has to stop. Please consider donating to my Patreon.
> Don't think you make hiring decisions based on tabs vs spaces? I actually ask candidates "spaces or tabs?" in every single interview. I don't really care what the response is in regard to the holy war, and it doesn't mean anything on its own, but having SOME thought out response can be a GREAT indicator of how well versed someone is in general. e.g. I'm going to think way more highly of someone that says "tabs, bec…
Re: Developers who use spaces make more money than those who use tabs
#690Earlier quoted context omitted.
Oh, I've got some good examples :D https://github.com/ioquatix/rack-freeze/issues/2 https://github.com/ioquatix/latinum/pull/1
From the linked issue: >deliberately have my editor set up to change tab width based on editor width (responsive indentation width) What editor are you using that has this setting?
Firstly, I've explored using responsive tab width in https://github.com/ioquatix/jquery-syntax which is nice when presenting code on a mobile phone.
Secondly, I've got hard coded tab width on my desktop with a huge screen vs my laptop with a smaller screen, and this works for all editors, including my primary editors Atom and vim.
Finally, I've played around with using responsive CSS within Atom, but due to recent changes in the text rendering my current CSS doesn't appear to be working.