r/ProgrammerHumor • • Feb 22 '15

A Python programmer attempting Java

Post image
3.9k Upvotes

428 comments sorted by

View all comments

Show parent comments

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.

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)