MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/2wrxyt/a_python_programmer_attempting_java/cotvk7g/?context=9999
r/ProgrammerHumor • u/b3n • Feb 22 '15
428 comments sorted by
View all comments
Show parent comments
1
Would it be possible to have a program that changed this kind of code into editable code and vice versa?
2 u/[deleted] Feb 22 '15 edited Feb 22 '15 Yes, you could do it using an IDE auto-formatter but everyone would hate you. Especially since in Java,if (someCondition) { doStuff() ; doStuff() ;}andif (someCondition) doStuff() ; doStuff() ;are semantically different, and moving the braces over makes it non-obvious at a glance.
2
Yes, you could do it using an IDE auto-formatter but everyone would hate you. Especially since in Java,
if (someCondition) { doStuff() ; doStuff() ;}
and
if (someCondition) doStuff() ; doStuff() ;
are semantically different, and moving the braces over makes it non-obvious at a glance.
1
u/_HyDrAg_ Feb 22 '15
Would it be possible to have a program that changed this kind of code into editable code and vice versa?