
I'm not sure what I am (Destiny)
-->|if (output != null)
-->|{
-->|-->|output.append("account_id").append('\t')xxxxxxx// comment about account_id
-->|-->|xxxxxx.append("submission_id").append('\t')xxxx// comment about submission_id
-->|-->|xxxxxx.append("payment_method").append('\t');xx// comment about payment_method
-->|}
You never have to worry about downloading a file and opening it up in an editor and having it looks like awful nonsense. Considering that almost any text editor or IDE one would use for coding allows you to set Tab Space by filetype, workspace, user, or application wide, it can be super consistent.
Though honestly, it's whatever your team decides, I'm a Clean Coder and that's the law I live by.
The wonderful thing about using tabs for indenting and spaces for aligning (or making code pretty) is that it doesn't matter what editor you open it up in, it will look pretty and match your preferred indent size (as long as you are using a fixed width font, variable width font users are just wrong, and they deserve to look at ugly, slightly misaligned code all day long).My example opened in an editor that has tabs set to 6-spaces wide:
---->|if (output != null)
---->|{
---->|---->|output.append("account_id").append('\t')xxxxxxx// comment about account_id
---->|---->|xxxxxx.append("submission_id").append('\t')xxxx// comment about submission_id
---->|---->|xxxxxx.append("payment_method").append('\t');xx// comment about payment_method
---->|}
But yes, above all stick to your team's coding standards, please!
Edit: are you a python guy? I suspect you may be...
Considering only professional coding (not including internships):
8 years of .NET before becoming a consultant and now 4 years of Salesforce, Python, .NET, Javascript (mostly a typescript junkie)
I'm not a fan of space sensitive languages, and prefer 4 space styling. But yeah, as always stick to your team's coding standards, which are hopefully heavily based on some existing language styling guide.
Complete thread:
- The Dawning Launch Trailer -
Beorn,
2016-12-12, 16:23
- The Dawning Launch Trailer -
CruelLEGACEY,
2016-12-12, 16:55
- The Dawning Launch Trailer -
MacAddictXIV,
2016-12-12, 16:58
- The Dawning Launch Trailer -
CruelLEGACEY,
2016-12-12, 17:09
- Know what other game has a C3PO AI sidekick? -
Korny,
2016-12-12, 21:51
- Know what other game has a C3PO AI sidekick? -
Cody Miller,
2016-12-12, 22:10
- :,,(
- dogcow, 2016-12-12, 22:46
- Know what other game has a C3PO AI sidekick? -
unoudid,
2016-12-12, 22:57
- Know what other game has a C3PO AI sidekick? -
CruelLEGACEY,
2016-12-12, 23:02
- Know what other game has a C3PO AI sidekick? -
ZackDark,
2016-12-12, 23:30
- Know what other game has a C3PO AI sidekick? -
SonofMacPhisto,
2016-12-13, 02:11
- Can one of the mods please ban this man? ;)
- CruelLEGACEY, 2016-12-13, 02:12
- DAMMIT! -
CruelLEGACEY,
2016-12-13, 02:15
- I REGRET NOTHING
- SonofMacPhisto, 2016-12-13, 02:17
- DAMMIT! - Mid7night, 2016-12-13, 02:28
- LOL
- slycrel, 2016-12-13, 14:09
- DAMMIT! - Made my morning!
- dogcow, 2016-12-13, 14:14
- I REGRET NOTHING
- Can one of the mods please ban this man? ;)
- Know what other game has a C3PO AI sidekick? -
SonofMacPhisto,
2016-12-13, 02:11
- Know what other game has a C3PO AI sidekick? -
ZackDark,
2016-12-12, 23:30
- Know what other game has a C3PO AI sidekick? -
CruelLEGACEY,
2016-12-12, 23:02
- :,,(
- Know what other game has a C3PO AI sidekick? -
Cody Miller,
2016-12-12, 22:10
- Know what other game has a C3PO AI sidekick? -
Korny,
2016-12-12, 21:51
- The Dawning Launch Trailer -
CruelLEGACEY,
2016-12-12, 17:09
- The Dawning Launch Trailer -
Cody Miller,
2016-12-12, 17:07
- DinklebotIsNotCannon.com ;p
- CruelLEGACEY, 2016-12-12, 17:11
- DinklebotIsNotCannon.com ;p -
CyberKN,
2016-12-12, 17:16
- DinklebotIsNotCannon.com ;p - CruelLEGACEY, 2016-12-12, 17:17
- DinklebotIsNotCannon.com ;p -
Korny,
2016-12-12, 17:33
- +1
- CruelLEGACEY, 2016-12-12, 17:41
- +1
- DinklebotIsNotCannon.com ;p -
Vortech,
2016-12-12, 18:14
- DinklebotIsNotCannon.com ;p - CyberKN, 2016-12-12, 18:28
- That's the CreeperBot
- unoudid, 2016-12-12, 22:51
- 'Member Dinklebot?
- SonofMacPhisto, 2016-12-12, 17:31
- DinklebotIsNotCannon.com ;p -
CyberKN,
2016-12-12, 17:16
- DinklebotIsNotCannon.com ;p
- The Dawning Launch Trailer -
MacAddictXIV,
2016-12-12, 16:58
- Really looking forward to the end of dub step edits
- kidtsunami, 2016-12-12, 19:09
- +500 - CruelLEGACEY, 2016-12-12, 19:53
- All dubstep all the time ( ͡° ͜ʖ ͡°)
- unoudid, 2016-12-12, 22:55
- As a professional editor... I fucking love dubstep. Sorry.
- Kahzgul, 2016-12-13, 03:49
- As a professional coder I'm all about 4 space tabs ¯\_(ツ)_/¯
- kidtsunami, 2016-12-13, 12:53
- Tabs to indent, spaces to align! -
dogcow,
2016-12-13, 13:27
- Tabs to indent, tabs to align! -
ZackDark,
2016-12-13, 13:52
- Tabs to indent, tabs to align! - dogcow, 2016-12-13, 14:12
- Just going to leave this here... -
slycrel,
2016-12-13, 14:15
- This entire thread is making my day - dogcow, 2016-12-13, 14:24
- Dat punchline, though
- ZackDark, 2016-12-13, 14:36
- This is a show worth watching it seems?
- unoudid, 2016-12-13, 14:46
- The infuriating part -
kidtsunami,
2016-12-13, 14:50
- The infuriating part -
dogcow,
2016-12-13, 15:02
- Dear lord...
- kidtsunami, 2016-12-13, 15:39
- Dear lord...
- The infuriating part -
dogcow,
2016-12-13, 15:02
- Bravo
- stabbim, 2016-12-13, 15:07
- Just going to leave this here... -
Claude Errera,
2016-12-13, 15:36
- It's worth the time. :D Uh, mostly. ;)
- slycrel, 2016-12-13, 23:05
- It's worth the time. :D Uh, mostly. ;)
- Spaces keep indents and alignments universal -
kidtsunami,
2016-12-13, 14:27
- Spaces keep indents and alignments universal -
dogcow,
2016-12-13, 15:12
- Tabs and Spaces are for pansies -
Beorn,
2016-12-13, 15:30
- White space is for suckers who can't see
- kidtsunami, 2016-12-13, 16:02
- lol.
- dogcow, 2016-12-13, 16:06
- Almost got a plane ticket for Cali to hunt you down
- MacAddictXIV, 2016-12-14, 12:58
- White space is for suckers who can't see
- I'm not sure what I am - kidtsunami, 2016-12-13, 15:44
- Tabs and Spaces are for pansies -
Beorn,
2016-12-13, 15:30
- Clean Coder -
marmot 1333,
2016-12-13, 17:27
- I highly recommend Clean Code - kidtsunami, 2016-12-13, 18:24
- Ctrl+K -> Ctrl+F - ZackDark, 2016-12-13, 19:26
- Spaces keep indents and alignments universal -
dogcow,
2016-12-13, 15:12
- Tabs to indent, tabs to align! -
ZackDark,
2016-12-13, 13:52
- Clearly none of you are Rubyists -
BeardFade,
2016-12-13, 20:34
- Why, though?
- ZackDark, 2016-12-13, 21:22
- Felipe's methods are suspect.
- dogcow, 2016-12-13, 21:28
- Why, though? - BeardFade, 2016-12-13, 22:04
- Felipe's methods are suspect.
- Why, though?
- The funny thing is - kidtsunami, 2016-12-14, 14:00
- Tabs to indent, spaces to align! -
dogcow,
2016-12-13, 13:27
- As a professional coder I'm all about 4 space tabs ¯\_(ツ)_/¯
- Bungie.net Dawning event Landing Page - Pyromancy, 2016-12-13, 01:28
- The Dawning Launch Trailer -
CruelLEGACEY,
2016-12-12, 16:55