F=MA Calulator
I found this and think it is worth saving close by. Sorry it doesn’t fit right.
Continue readingAuthor
I found this and think it is worth saving close by. Sorry it doesn’t fit right.
Continue readingThe code is still far from optimal but the track network traversal and linear distance computations are working correctly. I haven’t tested a train with cars facing in both forward and reverse directions but the code is all written to handle it. It’s a lot of code for…
Continue readingI have a working sample of the code I mentioned in an older blog post. I have a self-propelled train car that moves along any unending track layout. When the front wheels of the train car passes over a turnout, a random choice is made by this train…
Continue readingThis quick article describes a mechanism of data hiding that I have been using with some success. Data hiding is a mechanism where information in an object is not accessible to users of the object and, more importantly, not visible to users of the object. Some data hiding…
Continue readingI wrote some code and then had an epiphany. A minor one but one that made me realize I had approached something in the wrong way. It was not much code and can be reused with the new idea. First, the requirement is that the train move in…
Continue readingI just figured out why the concept of realistic train management was giving me trouble. I really hadn’t tried to figure it out in any detail before and as soon as I did, the problems became obvious. First A real railroad can do things that would be considered…
Continue readingI am providing this code in C# for a Visual Studio 2010 add-in to set the caption of the Visual Studio window based on information in the solution. All of the other code samples I found, all two of them, are only partially usable. My VS Solution always…
Continue readingI’ve been thinking about various computer programing projects for years. One is a railroading game that focuses on realistic track building and realistic operations or a small (shortline) railroad. Another is an evolution simulation. There is also the mechanism simulator that I have working fairly well. The thing…
Continue readingI’ve been staring at the code I wrote for the train game for a few days now. I can’t figure out my own code although I know why things are the way they are. The test program, which is really just a program to allow me to draw…
Continue readingMaintaining old code is what I do at work most of the time. If there is a new feature to be added to the product, there will still be a large amount of existing code that needs to be waded through to get to the places where the…
Continue reading