Live data from Hacker News

Open Source Contribution Etiquette

tirania.org

11–15 of 15 posts

Re: Open Source Contribution Etiquette

#11

Wow, I had never heard of someone doing major reformatting, reorganizing, or refactoring on someone else's code before submitting a patch! I would say that anyone who would do such a thing doesn't understand what it means to work with other people!

Yea neither have I, that's crazy. I try to make my patches as small as possible (makes it easier to merge as well)

Re: Open Source Contribution Etiquette

#12
Indeed, the code formatting style used by Mono (eg spaces before argument parens like "SomeMethod ()") is one of the biggest reasons I'll probably never contribute to it. I can't change the existing style, but it makes my eyes bleed to read, so I avoid it.

Re: Open Source Contribution Etiquette

#14
post #12

Indeed, the code formatting style used by Mono (eg spaces before argument parens like "SomeMethod ()") is one of the biggest reasons I'll probably never contribute to it. I can't change the existing style, but it makes my eyes bleed to read, so I avoid it.

Maybe it would be a good idea not only to have coding standards, but also automatic handling of auto-formatting code when checking in. If you have a highly flexible coding style system like uncrustify for example, and check ins would be guaranteed to be automatically formatted, you could simply tell vim or emacs to format it with your coding style when opening, and then auto-format it for check in.. I know it's oversimplifying, but maybe it would help some people.

Re: Open Source Contribution Etiquette

#15

Wow, I had never heard of someone doing major reformatting, reorganizing, or refactoring on someone else's code before submitting a patch! I would say that anyone who would do such a thing doesn't understand what it means to work with other people!

Yeah, I'm not denying it happens, but it seems like common sense to me. The type of programmer inclined to refactor and rename should be the first to recognize the value of uniform coding conventions within a project.
Post reply on HN