Hi,
I have been aware of the 'Varianted Source Code' models that Roger Griffith has made available for the community for quite a while and today with the release of version 1.1 which has C# client code support all ready for the GA Release of CA Plex 7.0. We now have some additional sources :-). FYI - I don't know when this is coming out but it can't be far away now :-).
See the link below.
There are always Pro's and Con's of any approach but this solution seems pretty fair to me. Obviously, if you are a C++ and RPGIV typical client server customer and not changing in the near future then this post will be of little relevance (or is it - read on). I can think of only one other small issue in that if you prefer to use triples for setting the language at a function level rather than variants then this might need some re-factoring.
If, however, you are planning on migrating your client (or server for that matter) to c# .NET/Java etc you may as well start to reduce your impact for the big move. By replacing your own source code calls for the shipped code supported by the varianted models sooner in the process you can only win. Remember these are available NOW and can be used with Plex 6.1.
This only leaves your own 'personal' or 'application specific' source code. A little like User Source in 2E sometimes these are just fit for a purpose and not migratable. Others simply may need tweaking. Not a bad time to do some impact analysis and determine whether you need to brush up on some C#.
Therefore, I have a small challenge for people. If you have some useful generic Source Code. Any language (Java, C++, RPG IV or C#), let's share it and see if others can convert it across all the platforms. Then Roger and his team could keep the shipped models up to date and everyone's a winner. For every routine that is sent to me I will PERSONALLY ensure that they are all converted to relevant C# code. Any volunteers from the community to pick up C++, Java and RPG IV? I can get these done but not as quickly I am afraid :-(. This is courtesy of my bosses at www.sasit.co.nz.
I'm thinking of advanced String routines like.
- Count xString occurs y times in zString
- Replace Double Spaces with single space
- IsNumeric?
- IsAlphaNumeric?
- PasswordStrength
- Is CharactersOnly
- CalculateStringLength
- ReserveString
- SentenceStyleCase
- IsEmailAddress?
- Replace xString with yString in zString
- GenerateRandomNumber (Start, Max, ZeroFill?)
- GenerateRandomString xLength
I'm sure that this list could get quite exhaustive (Suggestions welcome) but I am happy to co-ordinate this effort if people just add some stuff they want to share to the comments section. So cut and paste some code and a description or just make a request.
Thanks for reading.
Lee.
P.S. Disclaimer - if code is Copyright please include and acknowledge source etc.