• Space bar programmers 'paid more'
    65 replies, posted
[url]http://www.bbc.co.uk/news/technology-40302410[/url]
"Here's ONE simple trick to EARN up to an extra $15,000 a YEAR!" [img]https://vgy.me/GwB7RK.png[/img]
This is disgusting
I use both :(
Tabs for basic indentation, spaces for additional alignment. Anything else is objectively inferior
everything should go on a single line as the lord intended
I probably should keep the tabs to spaces conversion then :v: [del]I have a suspicion that there's some amount of language correlation involved, unless[/del] they specifically corrected for that effect already. [del]Developers using different programming languages naturally get paid differently on average, but the different language communities also tend to follow different indentation standards.[/del] It probably also doesn't help that tab display on the web is beyond ugly at iirc 8 spaces by default. [URL="https://developer.mozilla.org/en-US/docs/Web/CSS/tab-size"]At least that part became configurable recently[/URL][URL="https://archive.is/tvUwe"],[/URL] though.
[QUOTE=Ninja Gnome;52367396]everything should go on a single line as the lord intended[/QUOTE] Naming conventions only waste precious space. Use <a-z><0-infinity> when naming your identifiers.
[QUOTE=DeEz;52367409]Naming conventions only waste precious space. Use <a-z><0-infinity> when naming your identifiers.[/QUOTE] name each of your variables by a random number you'll improve your memory in no time (and who doesn't want to refer to, say, time offset as 612413 and the iterator in your for(;;) as 1025?) [editline]16th June 2017[/editline] add a random letter to the random part of the variable name if your language doesn't allow for number-only variables (or variables starting with a number - add one at the beginning and that letter+(random offset) to the random part to the name - and so forth)
This survey is silly, most decent IDE's and dev environments convert tabs to spaces by default anyways so it is a confusing question to begin with. A surprising number of devs don't actually know which they are using, but I almost never come across true tab characters.
[QUOTE=Socram;52367440][...] A surprising number of devs don't actually know which they are using, [...][/QUOTE] That's honestly a bit shocking.
[QUOTE=Tamschi;52367456]That's honestly a bit shocking.[/QUOTE] I'm fairly sure I'm using spaces but I let my IDE do all the indentation work so I'm not 100% sure.
sounds about right t. 2 spaces everywhere
:set expandtab Honestly it shouldn't matter because any modern editor treats tabs and spaces as the same thing.
[QUOTE=C0linSSX;52367376]Tabs for basic indentation, spaces for additional alignment. Anything else is objectively inferior[/QUOTE] Until someone has a different tab-space alignment and it becomes horribly malaligned.
A standard would be nice, where tabs = x amount of spaces
[QUOTE=C0linSSX;52367376]Tabs for basic indentation, spaces for additional alignment. Anything else is objectively inferior[/QUOTE] tabs are usually equal to 4 or even 8 spaces why on lord's earth would I sacrifice that much whitespace? it literally has no advantages over 2 spaces
Well then I would imagine they probably get paid by character count.
[QUOTE=NotMeh;52367886]tabs are usually equal to 4 or even 8 spaces why on lord's earth would I sacrifice that much whitespace? it literally has no advantages over 2 spaces[/QUOTE] Why would you use multiple characters when the same thing can be accomplished with one?
[QUOTE=NotMeh;52367886]tabs are usually equal to 4 or even 8 spaces why on lord's earth would I sacrifice that much whitespace? it literally has no advantages over 2 spaces[/QUOTE] your tabs are usually equal to 2 or even 4 spaces why on lord's earth would I sacrifice that much whitespace? it literally has no advantages over 1 space
[QUOTE=NotMeh;52367886]tabs are usually equal to 4 or even 8 spaces why on lord's earth would I sacrifice that much whitespace? it literally has no advantages over 2 spaces[/QUOTE] so its more readable? you could use 10 tabs for indenting it doesn't matter when the thing compiles
[QUOTE=Murkrow;52367903]Well then I would imagine they probably get paid by character count.[/QUOTE] Why in god's name would you pay a programmer by character count?
[QUOTE=IKTM;52370050]Why in god's name would you pay a programmer by character count?[/QUOTE] tbh time to program a 50,000,000 character script that exclusively does one thing and [sp]then get asked what the fuck I was thinking[/sp]
[QUOTE=Pat.Lithium;52370042]so its more readable? you could use 10 tabs for indenting it doesn't matter when the thing compiles[/QUOTE] 4 is not any more readable than 2
comments are more important to be honest
[QUOTE=damnatus;52370213]comments are more important to be honest[/QUOTE] well-written code documents itself there's no reason to write a comment if your code is readable on its own you'd just be doing the same thing twice
[QUOTE=NotMeh;52370762]well-written code documents itself there's no reason to write a comment if your code is readable on its own you'd just be doing the same thing twice[/QUOTE] Sir can I please have a different partner
[QUOTE=C0linSSX;52367376]Tabs for basic indentation, spaces for additional alignment. Anything else is objectively inferior[/QUOTE] Now look at your files in another editor with a different tab width setting or fill behaviour.
[QUOTE=geel9;52370788]Sir can I please have a different partner[/QUOTE] This is what they say in Clean Code by Robert C. Martin, which is a book that I've been using for some time to improve my skills a little. You've made some trading websites so I guess you count as an experienced person, is your experience different?
[QUOTE=DeEz;52367409]Naming conventions only waste precious space. Use <a-z><0-infinity> when naming your identifiers.[/QUOTE] This is how I do it someMethodName ClassName method_parameter class_member_
Sorry, you need to Log In to post a reply to this thread.