News for hackers. Stuff that matters.
Re:Show HN: I decided to document and share my high-level CS... by edd on Monday March 12, 2012 @11:46AM (#3693948)
The reason I would advocate using hyphens is you should do what the language (standard libraries) do. For example:

    css:
    margin-left, border-bottom (hyphenate)

    javascript:
    getElementById, documentNode (lower camel case)

    ruby:
    each_index, has_key? (underscore)
Re:Show HN: I decided to document and share my high-level CS... by iaskwhy on Monday March 12, 2012 @01:27PM (#3694454)
This would be an interesting discussion. I prefer to use the same coding style for the whole project without caring how the original authors of each language did it. I do however understand that the language API follows the original convention so one would eventually break it by following by reasoning. Ex in js: make_element_slide(getElementById('box')).