Variable names / dev woes
it's little things in development trip most. i've got tracked robot (more on come) , has lights in front can call headlights. has arm camera , gimble , stuff on top called "head". , on head of robot there light called headlight, though different definition other headlights.
and therein lies conundrum. 2 pieces of code developed separately , must come together. both have thing best referred headlight , both pieces of code have chosen name, headlightpin, headlightstate, headlightontime, etc, etc. 1 gets refactored before combined. easy enough find , replace.
but 1 loses name? away headlights , headlight, might end having post code on forum 1 day , pauls see , i'd have change before anyway. i'd rather nip in bud , avoid doing stupid things begin with.
so, wins? headlights? or light on head? has better name 1 of things?
and therein lies conundrum. 2 pieces of code developed separately , must come together. both have thing best referred headlight , both pieces of code have chosen name, headlightpin, headlightstate, headlightontime, etc, etc. 1 gets refactored before combined. easy enough find , replace.
but 1 loses name? away headlights , headlight, might end having post code on forum 1 day , pauls see , i'd have change before anyway. i'd rather nip in bud , avoid doing stupid things begin with.
so, wins? headlights? or light on head? has better name 1 of things?
what headlamp light on robot's head?
or drivinglights "headlights" on main body?
or mainlights?
avoid @pauls's wrath @ costs
...r
or drivinglights "headlights" on main body?
or mainlights?
avoid @pauls's wrath @ costs

...r
Arduino Forum > Community > Bar Sport > Variable names / dev woes
arduino
Comments
Post a Comment