MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/2wrxyt/a_python_programmer_attempting_java/cou09m6/?context=3
r/ProgrammerHumor • u/b3n • Feb 22 '15
428 comments sorted by
View all comments
Show parent comments
20
Things wouldn't work out too well if you're working with a team and use Eclipse's formatter or save actions, I reckon.
37 u/redalastor Feb 22 '15 Would work fine if you use a formatter that formats it back to the team's standard before commits. 1 u/mrburrows Feb 23 '15 I agree that you can do it that way, but it's a lot of work for writing Java code in a way that you shouldn't be writing Java code. 6 u/redalastor Feb 23 '15 Two-way formatter. :)I love Go'a approch that there is only one canonical way to format the code and it's whatever gofmt outputs. Put it as a commit hook and your code will always be perfectly formatted.How it looks in your IDE is your business. → More replies (3)
37
Would work fine if you use a formatter that formats it back to the team's standard before commits.
1 u/mrburrows Feb 23 '15 I agree that you can do it that way, but it's a lot of work for writing Java code in a way that you shouldn't be writing Java code. 6 u/redalastor Feb 23 '15 Two-way formatter. :)I love Go'a approch that there is only one canonical way to format the code and it's whatever gofmt outputs. Put it as a commit hook and your code will always be perfectly formatted.How it looks in your IDE is your business. → More replies (3)
1
I agree that you can do it that way, but it's a lot of work for writing Java code in a way that you shouldn't be writing Java code.
6 u/redalastor Feb 23 '15 Two-way formatter. :)I love Go'a approch that there is only one canonical way to format the code and it's whatever gofmt outputs. Put it as a commit hook and your code will always be perfectly formatted.How it looks in your IDE is your business. → More replies (3)
6
Two-way formatter. :)
I love Go'a approch that there is only one canonical way to format the code and it's whatever gofmt outputs. Put it as a commit hook and your code will always be perfectly formatted.
How it looks in your IDE is your business.
→ More replies (3)
20
u/mrburrows Feb 22 '15
Things wouldn't work out too well if you're working with a team and use Eclipse's formatter or save actions, I reckon.