Code simplicity and forethought for reuse. It requires more effort up front, but boy does it ever pay off in the long run! It’s the easiest way to simplify and maintain solutions and along with clever refactoring, is the easiest way to understand the code and make changes or add additional functionality in the future.
I’ve been a personal witness to clean refactored code which has been copied and pasted in each and every Unity Script that requires it. Using the example of 10 Unity Scripts, this means that if a change needs to be made to the common “GetKeywordValue” Extension Method, then you would have to make that change 10 times. Unless you’re paid hourly and enjoy repetitive, time consuming tasks with a high probability for error, you need to become familiar with using Library scripts.
Again, the same lines of code should never be repeated in different codebases. Instead, put these lines of code in a shared library. Library scripts allow you to create a single method which can be called from multiple sources. They allow you to REDUCE the amount of code in that source code and they allow you to efficiently REUSE generic code.
Think now into the future: You are assigned another project which requires you to get the value of a few Keywords on the document. Rather than trying to remember the exact OnBase Unity API methods to call in order to get the Keyword Value or having to rewrite code you’ve already written previously, you can easily call your own “GetKeywordValue” Extension Method that you created back in 2014. Or let’s say you get a new developer on the team that takes on the project. Refactoring and reusing code ensures that all developers in an organization follow the same development pattern and allows these same developers to easily pick up another team member’s code and understand it or make changes.
Sure this specific “GetKeywordValue” example Extension Method is pretty simplistic, but imagine the same concept applied to something more elaborate. You can build a library method that accepts an image document and returns a data stream of a PDF document. You can build another library method that accepts an OnBase document and an n-length Dictionary of Keyword Types and Values and adds those values to the document. In fact, the development team at Kiriworks has already done the latter. We are committed to our own philosophy of reducing, reusing, and refactoring code and it has made a huge impact on our efficiency.
Appointment of Representative, (aka the AOR) always seems to be a topic of conversation in the healthcare payer space. Every show we attend, every customer we talk with and every industry function we attend, there are intense conversations and differing opinions on what is required by CMS. Do you only submit an AOR once? Do you need to submit a […]
As part of an initiative to streamline the Medicare Advantage and Prescription Drug appeals and grievance processes, CMS has consolidated Chapter 13 of the Medicare Managed Care Manual and Chapter 18 of the Prescription Drug Benefit Manual into one comprehensive guidance document. They are doing this to better align and provider a more defined, straightforward and non-repetitive understanding of […]
5…4…3… 2…1 🚀, it’s time to move forward and discover the power of you! This is the message behind the 5 Second Rule by Mel Robbins. It’s a cool, powerful self-help concept I was introduced to while listening to Mel speak recently at Hyland Software’s CommunityLive event in Nashville, TN. Embracing that concept I say 5…4…3… 2…1 it’s time to […]
Does your contracting process take forever? Can it take weeks, even months to bring a contract from creation, through negotiation and finally to execution? What causes the bottlenecks and how can they be fixed? First, let’s identify some common hurdles within the contracting process. Once identified, we can implement a contracting management solution to address those issues and reduce contracting […]