Sunday, January 12, 2014
♫ ♪ They're climbin in your headers, they're snatchin' yo codebase up, tryin to clean it so y'all need to hide ya structs, hide ya strings, hide ya structs, hide ya strings, hide ya structs, hide ya strings...and hide ya functions, cause they're factorin everybody out here ♬♬
Yes..well...what I'm trying to say is that the messaging system has already allowed me to senselessly snatch a few hundred innocent lines of code today The most exciting of these being the header files for weapons and thrusters. Previously, other pieces of code required knowledge of these subsystems, because they needed to be triggered in certain ways. A thruster would need to know how much to thrust, a weapon where to aim and when to fire, etc. But now, using the message system, I can broadcast a general "aim at" message to the entire ship, and any component that feels it necessary to take action can do so. This allows me to literally remove all knowledge of weapons and thrusters from everywhere else in the engine. There is only one file that knows what a weapon is, and it's the same file in which the actual weapon implementation lives. That's dependency elimination at its finest! Can you hear the squeaky-clean-ness?
I've got a lot on my plate for this week, with scanner theory and the new warp lane concept both due. Yet, there are still some final strings to tie up from last week You know, I seem to have comparatively little trouble tackling the meat of most problems, but doing the last 5-10% really seems to give me problems...probably because, by the time the problem is "solved," I am not so interested anymore since the rest is just boring, little stuff. That's how I feel about both the final threads of research, as well as this new turret / weapon separation. The hard parts and heavy-lifting are done, the problems are solved, now I yearn to move on to bigger fish...but I really should fry all the small ones first!
Here's to hoping for a week of frying all sizes of fish, both big and small
♫ ♪ You don't have to come and confess, we lookin for you, we gonna find you, we gonna find you ~ So you can run and tell that, run and tell that, run and tell that, code bloat, code code code bloat ♬♬
(What the heck is the point of working alone if you can't occasionally break into song and dance? )
Post
Mon Jan 13, 2014 3:39 am
#1
Week of January 12, 2014
“Whether you think you can, or you think you can't--you're right.” ~ Henry Ford