Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recursion in Java
#10
Rayquaza2233 Wrote:Trust me, it used to be worse before. I used to name all my booleans derpington regardless of what they did. XD

Haven't started commenting yet because it didn't work at the time, so. Is the lack of comments the only confusing thing? Readability is something I've been working on, I'd like to know where I can improve on that.

Now THAT is something I would use...

At my level, I think it is easier to read cascading levels of conditions than combined ones. While they are essentially the same thing from a logical standpoint; from a programming standpoint, indentation helps you quickly (and accurately) grasp the scope of each conditional.

Another thing I find worth trying is commenting as you go through the logic, kinda like pseudocode. I've always started commenting AFTER everything works as well, it's always been more of a "documentation" for anyone reading my code. But I've come to realize that I could document it for myself as well, multi-tasking on both micro and macro levels is going to take a heavy toll on your head, unless you have a multi-core brain.
Reply


Messages In This Thread
Recursion in Java - by Five Second Pose - 2011-05-03, 06:06 PM
Recursion in Java - by Hazzy - 2011-05-03, 06:07 PM
Recursion in Java - by Five Second Pose - 2011-05-03, 06:20 PM
Recursion in Java - by Fiel - 2011-05-03, 07:10 PM
Recursion in Java - by Cyadd - 2011-05-03, 07:50 PM
Recursion in Java - by Nikkey - 2011-05-03, 08:18 PM
Recursion in Java - by Five Second Pose - 2011-05-03, 08:34 PM
Recursion in Java - by Kalovale - 2011-05-03, 08:52 PM
Recursion in Java - by Five Second Pose - 2011-05-03, 11:10 PM
Recursion in Java - by Kalovale - 2011-05-03, 11:23 PM
Recursion in Java - by Stereo - 2011-05-04, 12:09 AM
Recursion in Java - by SaptaZapta - 2011-05-04, 01:19 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)