Replies: 3 comments 1 reply
-
v2 is now far enough along to remove some of the old crud that caused me (in my inexperience) to create multiple monad classes to deal with different numbers. That's what generics are for. I haven't quite used them to their fullest yet, but work progresses. For now there is way to much 'casting' going on within the remaining monad class. I'll get that and all most of the switching when I make some of the methods handle generics properly. |
Beta Was this translation helpful? Give feedback.
-
This was the old conceptual layout for V1.0 just for reference |
Beta Was this translation helpful? Give feedback.
-
This is the new layout as it is right now in the TestV2 branch. |
Beta Was this translation helpful? Give feedback.
-
Just dropping a note here describing the work currently under way.
Clados was built many years ago before Java had the 'new to me' paradigm additions. Things like generics, streams, lambdas, and other goodies. Modularization too. I say that to explain that I'm updating all the packages as I work out V2 ideas as well. The 'new to me' features of Java enable me to refactor the library quite a bit and remove some clunkiness around how I'm extending Java's Number class to get around how its children are finalized.
Right at this moment, I'm lifting static methods I built as 'builders' and placing them in builder classes. Some will remain with their sensible owning class as duplicates enabling a developer to go either way, but many of the clunkiest ones will move.
Clados V2 is under way on a branch and I occasionally fold its parts into the master branch when tests pass. That doesn't mean they fully work, though. The full integration test occurs later when I pull the library over to the calculator project (look under Interworld Transport for a full list) and rebuild that.
V2 is far enough along that I have an idea for how to do reference frames as objects. They will be part of the CladosG package and not the future physics package that I never seem to get around to building. They properly belong to 'geometry' and not 'physics', so this is actually for the better.
Beta Was this translation helpful? Give feedback.
All reactions