# Is this a bad programming practice?

**URL:** https://forum.kirupa.com/t/is-this-a-bad-programming-practice/271924
**Category:** flash
**Created:** [September 30, 2008, 1:24pm UTC](https://forum.kirupa.com/t/is-this-a-bad-programming-practice/271924 "2008-09-30T13:24:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![IanCremona](https://avatars.discourse-cdn.com/v4/letter/i/65b543/32.png) [@IanCremona](https://forum.kirupa.com/u/IanCremona)
#### Post date: [September 30, 2008, 1:24pm UTC](https://forum.kirupa.com/t/is-this-a-bad-programming-practice/271924/1 "2008-09-30T13:24:35Z")

</div>

if (this.lbar.alpha\>0) {  
lbar.alpha=lbar.alpha-1;  
} else {  
}

Is there a better way to do this?

I noticed the loop stops whilst changing the x and y coords… must be to stop “overloaling”. So, I figure there must be a better way!
