code redesign
code redesign
Out of context: Reply #3
- Started
- Last post
- 4 Responses
- DeIntegro0
Call me crazy but
c1dir *= -1;for me i've never written 1*= -1
it makes sense for me to write:
c1dir = c1dir * -1;just saying as a beginner...the code does exactly the same thing but which one is better to write?
and writing my variables first and then writing my conditionals, then writing my assignment operations then drawing my rectangles worked for me...i don't know it made more sense to work that way...rather than just the traditional way of writing from top to bottom...maybe i'm crazy!