Python Forum
which code is more readable?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
which code is more readable?
#4
I would vote for using (key,name) tuples instead of separate variables, and then the first choice becomes as palatable as the second.

I'm surprised at the use of '>' on hashes, so either the operator is the wrong one, or your hashes aren't really hashes and your variable names are misleading :)
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


Messages In This Thread
which code is more readable? - by Skaperen - Nov-13-2016, 08:57 AM
RE: which code is more readable? - by Yoriz - Nov-13-2016, 09:56 AM
RE: which code is more readable? - by JChris - Nov-13-2016, 02:44 PM
RE: which code is more readable? - by Ofnuts - Nov-13-2016, 05:16 PM
RE: which code is more readable? - by Skaperen - Nov-14-2016, 02:37 AM
RE: which code is more readable? - by ichabod801 - Nov-13-2016, 10:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  io.UnsupportedOperation: not readable RedSkeleton007 2 18,941 Nov-06-2023, 06:32 AM
Last Post: gpurdy
  How to make x-axis readable with matplotlib Mark17 7 4,046 Mar-01-2022, 04:30 PM
Last Post: DPaul
  Function global not readable by 'main' fmr300 1 1,395 Jan-16-2022, 01:18 AM
Last Post: deanhystad
  io.UnsupportedOperation: not readable navidmo 1 3,587 Oct-31-2019, 11:04 PM
Last Post: ichabod801
  Display output in readable format and save hnkrish 1 2,685 Jul-19-2019, 09:29 AM
Last Post: Larz60+
  How to convert Python crawled Bing web page content to human readable? dalaludidu 4 3,491 Sep-02-2018, 04:15 PM
Last Post: dalaludidu
  Time Difference in Epoch Microseconds then convert to human readable firesh 4 11,699 Feb-27-2018, 09:08 AM
Last Post: firesh

Forum Jump:

User Panel Messages

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