Skip to content

Instantly share code, notes, and snippets.

@lazyatom
Created August 10, 2012 13:34
Show Gist options
  • Select an option

  • Save lazyatom/3314242 to your computer and use it in GitHub Desktop.

Select an option

Save lazyatom/3314242 to your computer and use it in GitHub Desktop.
indenting styles
a_really_long_method_name_with_arguments "looks weird",
{if: "they are indented"}
"like this"
but_a_shorter_one "doesn't look",
"quite as weird"
it_also_depends_on "how long", "the arguments", "are"
and_how_many_arguments(
"there are",
"going to be",
"in the",
"argument list"
)
its_very_easy ["to go crazy",
"with different kinds",
"of arguments"],
1_000_000,
kinds: {of: argument_can("be confusing")},
and: ["should probably be made into",
"local variables for clarity"]
in_general_i_think("parantheses are clearer")
although_dsls do_look: "better", without: "them"
and_indenting_is_a_matter "of",
"aesthetic",
"balancing",
"of",
"whitespace"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment