Python Forum
Python almost as verbose as Java
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python almost as verbose as Java
#1
At least according to these guys.
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Reply
#2
Eh? The Python solution is 3/4 the size of the Java solution.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#3
Shorter, AND more legible. I'd call that a win for python... even if it does rely on non-standard libs (...why not build a lib that does it on import, and then just "import g" to have the shortest answer?).
Reply
#4
That is quite a nice code golf challenge with lots of different results, no need to reduce it to good ol' Java-vs-Python
Reply
#5
(Dec-01-2016, 11:25 PM)ichabod801 Wrote: Eh? The Python solution is 3/4 the size of the Java solution.

Yes, but far more verbose than the others... (okay, they didn't include Cobol).

(Dec-02-2016, 03:07 PM)Kebap Wrote: That is quite a nice code golf challenge with lots of different results, no need to reduce it to good ol' Java-vs-Python

What Java-vs-Python? My post was putting them in the same bag :)
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Reply
#6
Now there's a thought, you have pypy (python written in python) imagine cobpy (Cobol in python)
I will admit to writing reports in Cobol back in the late 60's. It took about 200 punched cards
to write 'Hello world' (but of course 'Hello World' didn't exist back then as a language test)
Never liked it, but even Latex hadn't been written yet.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Funny things Java Devs do but Python Devs Don't QueenSvetlana 1 3,309 Nov-02-2017, 08:45 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020