Substituting Animated Buttons or Sprites for Default Buttons

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10048
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Substituting Animated Buttons or Sprites for Default Buttons

Post by FourthWorld » Tue May 17, 2011 10:47 pm

The machine's the small part. The harder job is the person who'll be maintaining the code years from now.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Psmith
Posts: 22
Joined: Sat May 14, 2011 10:00 pm

Re: Substituting Animated Buttons or Sprites for Default Buttons

Post by Psmith » Wed May 18, 2011 2:57 am

Richard:

I guess my question is - who, in their right mind, would pick something like maintaining code for a profession and even a career? Not I.


Psmith

dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Contact:

Re: Substituting Animated Buttons or Sprites for Default Buttons

Post by dglass » Wed May 18, 2011 7:03 am

Psmith wrote:Richard:

I guess my question is - who, in their right mind, would pick something like maintaining code for a profession and even a career? Not I.


Psmith

You are here asking how to write and understand code; the answer is in your mirror. :shock:

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7391
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Substituting Animated Buttons or Sprites for Default Buttons

Post by jacque » Wed May 18, 2011 7:17 am

I fought it for years, thought it was stupid and distracting. And we're by no means required to use that notation, you'll see lots of people who don't. But after a while I started to see the advantages and began using it myself. Now I'm hooked I'm afraid. There are plusses you don't at first anticipate, and it doesn't take long before your brain barely even notices those initial letters.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10048
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Substituting Animated Buttons or Sprites for Default Buttons

Post by FourthWorld » Wed May 18, 2011 3:41 pm

Psmith wrote:I guess my question is - who, in their right mind, would pick something like maintaining code for a profession and even a career?
Yours truly. More than half of the projects I work on were started by another programmer.

And even with my own code, when a project spans multiple versions over many years, going back into the code later on to add a new feature can be difficult if the code isn't clear. Adopting a consistent style, for both naming conventions and things like handler order (Ken Ray and I tend to put system messages at the top, with custom handlers below in top-down order, and more general utils at the bottom) makes it much easier to move around in a code base to find the specific stuff you're looking for.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply