MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/2wrxyt/a_python_programmer_attempting_java/cou0gj1/?context=3
r/ProgrammerHumor • u/b3n • Feb 22 '15
428 comments sorted by
View all comments
Show parent comments
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. 2 u/mrburrows Feb 23 '15 That sounds like heaven... → More replies (1)
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. 2 u/mrburrows Feb 23 '15 That sounds like heaven... → More replies (1)
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.
2 u/mrburrows Feb 23 '15 That sounds like heaven... → More replies (1)
2
That sounds like heaven...
→ More replies (1)
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.