Posts

Forensic Translation - What Is it?

A style that currently is not advertised and probably under-pronounced on resume's is the ability to translate a old code-base into a up-to-date framework (whether it is a .Net framework or simply taking ForTran 77 and converting it to GNU-C).  In either case, the process it the same. Forensic Translation is the ability of the programmer to read another language, deduce the methodology being incorporated and then successfully translating it to the new code-base.  This process could take as little as 1 week or as long as several years. The major variable in this process is source informations direct usage of declarations.  For the most part, the bracket languages (Java, C/C++/C#, AdaXX, etc) tend to have the ability to utilize an object that otherwise would be declared but is not.  This process enables the reduction of resources for the compiler to have to declare for operation.  Although, this is find great and dandy for stream-lining the execution process, ...

Concept: Extensions

Reference:  MSDN Extension Methods (Visual Basic) Intro: While translating a C# library, i ran into a segment of code that i didnt recognize. After doing some research found out that the same design can be implemented in VB.Net (VB 2k8). One catch to the whole implementation is that the Extension development is only possible in a module. As well, there are some limitations to the design of the extension.

Dynamically Loading Controls

Recently, i ran into a situation where i needed to daisy-chain several usercontrols together. The basic thought was similar to most sites "New User Data Entry" forms. You fill one out, and then you goto the next one to fill more incriminating information and then the last form you fill out, you basically sign your life away and your first born. Problem i ran into was the fact that i could not achieve this effect without a severe overload of page resources (i.e. Multi-View/View relationship) and even then it was sadly sketchy and buggy. After doing some research and some serious code management (thats what i call it :> ) I managed to achieve a relatively small method, through VB but should be easily translatable since it is small, to get the effect i needed. 1: Friend Shared Sub NextForm(ByRef par As Control, ByRef curr As Control, ByVal [new] As String) 2: 'remove current control (curr) from parent (par) 3: par.Controls.Remove(curr) 4: 'load c...