Apr-30-2017, 08:55 PM
(Apr-28-2017, 10:39 PM)deusvult Wrote:(Apr-28-2017, 10:11 PM)wavic Wrote: It's hard to follow the code - the variable names are meaningless. I don't know what I am looking at all the time.
I was rushing it and it is almost my first code. If you look into it its really no that confusing, but I guess ill look for help from someone else then. Thanks for the effort anyways
If it were not confusing you would understand it and not be here for help. Your code is hard to read and even though you don't notice, it impacts *your* ability to understand it. Put descriptive names on variables and you'll have a very different view. Also add comment explaing what the intent of the code is.
PS: To test that a year is a multiple of 4:
year % 4 == 0
is a bit less convoluted than (y1)/4. == float(int((y1)/4.))
(and as some have remarked even done properly this isn't sufficient to determine leap-ness).
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
Your one-stop place for all your GIMP needs: gimp-forum.net