Ad
  • Custom User Avatar

    I could have forgone the "join("")" to make the code shorter and slightly more transparent.

  • Custom User Avatar

    That thread was actually really interesting, thnak you. I will adapt my views, but probably not my coding practice (as this was pounded into my head, it's gonna take some time to unlearn).

    But honestly thank you for giving me a chance to learn something ,this was really cool.

  • Custom User Avatar

    The only reason I don't like this, and I know this is just me being pedantic, is the amount of returns. I don't know if there's something processing wise, to be gained from having multiple, as opposed to having just one that returns a variable and the manipulating the variable in stead.

    I would love to learn about the various ways, and benefits of each.
    I know it's somewhat tied to the term Cyclomatic Complexity, and the measure that "The more returns, the more 'complex' the code. and the simpler the better."

    What are your takes on this?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution