Post news RSS Hatchet Monthly Update June 2020

I kinda goofed on this one, but I rewrote the workbench UI to be a bit easier to work with, at Atrey's suggestion. Being some of the oldest and most complicated code, I went and did it to em. What I didded: -Added a parent class that, while minimally useful, was able to bundle some core functions and variables, as to simplify children classes. -Since some vanilla functions use tabs, all code was converted to tabs instead of spaces for consistency. [More in full post]

Posted by on

I kinda goofed on this one, but I rewrote the workbench UI to be a bit easier to work with, at Atrey's suggestion... Which turned out to be a massive bottleneck. Being some of the oldest and most complicated code, I went and did it to em. What I didded:
-Added a parent class that, while minimally useful, was able to bundle some core functions and variables, as to simplify children classes.
-Since some vanilla functions use tabs, all code was converted to tabs instead of spaces for consistency.
-Structs are now used for coordinate positions, to make them easier to tune, and all in one place.
-Iterator code for inventory items is now faster, cleaner, and more compact.
-Some variables which could be arrayed are now arrayed. Some of these had to be very creative as to how to work with the arrays, since some function is so tedious as to make arrays virtually useless. However, a couple slick hacks later, a couple hundred lines of codes became disapppeared.
-Combined some comparable functions with optional bools instead of semi-redundant copy functions.
-Removed chunks of annotated code. While this code was good to keep around while dev was in flux, and sometime after in case of bugs, the workbench UI is so reliable and setup as to make this dead space.
-Fixed a couple of theoretical accessed nones, which while seemingly not appearing, were still there in terms of potential.

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.