A new module in the Enigma series: Enigma Parans.
This program is also written in Object Pascal (Free Pascal). Of course, it is free and open source.
More information for developers.
To download the program check http://radixpro.com/parans.
EnigmaDedVM has been updated to version 1.1. The program now supports the use of multiple combined control groups. The generation of control groups has been improved by using SecureRandom, a Java class that should support cryptographic secure random numbers.
Enigma will support dedicated modules: programs to handle a specific research project but also usable for other projects. The code from the dedicated modules will often, but not always, be added to the Enigma main program.
The first dedicated module is Enigma DedVM. It supports a project by dutch researcher Vivian Muller into the astrological aspects of suicide.
The first version of Enigma is released. For more information about the program, downloading the code and a Programmers Manual, check the documentation page.
In august 2018 I decided to develop Enigma in Free Pascal. The main reason was that Oracle terminated the support for JavaFX. A company called Gluon would support it as an open source project, but I did not believe that JavaFX would last. Swing and SWT were no alternatives for me and using a web-interface in a native application had severe drawbacks.
I made some comparisons and Free Pascal was the clear winner. It was object oriented, open source and had an exceptional good way of handling the user interface. I knew the language from previous experiences, though that was some 15 years ago.
So I happily started coding. At first everything went well but as the application grew I experienced some stumble-blocks. The editor, with the beautiful name Lazarus, was good but it paled in comparison to intelliJ, the Java editor I was used to. Unit testing was possible but it missed some essential techniques, like mocking and calculating the test-coverage. And the way the source was handled, in units, files with mancy classes, was cumbersome. OK, I could have created small units but then I would have had problems defining the imports. I expect to be using at least 1000 classes after some further development, so this became a problem.
I found myself coding less and less because it was not so much fun anymore.
At the end of december 2019 the first version of Enigma was almost ready. It could calculate and draw a chart, work with configurations and used a database to store the essential information.
But I strongly felt the need for an alternative.
So I made a new comparison. Then I found that JavaFX was not dead. This was a big surprise for me. I expected it to slowly die after Oracle pulled the plug, but the open source community decided differently. JavaFX is alive and kicking and the support by Gluon works very well. Several new releases have been published while I was working with Free Pascal.
So I decided to return to Java. I was delighted with the efficiency of intelliJ and started coding. About 11 weeks later I almost completely rebuilt the codebase as writtin in Free Pascal. I am sure that future development will be fast as I’m using the perfect tools ànd coding is again fun for me.
I expect to have a first (beta) version, which will be 2020.1, available in May this year.
A new sourceset will then be posted at GitHub.
I knew that Free Pascal (FP) differed from the Java environment I used to work in before my recent retirement. But it still took me some efforts to adapt. The main problem I had was using automated testing. FP has excellent tools for unit testing, like FPC which I use. However, unit testing requires the testing of only one component and not any related components. To do so in a Java world, you would use mocks or fakes. FP has no viable solution for mocks, so I used fakes. That did not work out. Fakes require the use of interfaces (object interfaces, not just the unit interfaces). And good solutions use Dependency Injection (DI), which is not available in FP but you can mimic it using the Factory pattern. I ended up with too many components, interfaces and fakes, to be maintainable. So I skipped Fakes, I skipped object interfaces (at least as a default approach), I skipped factories, and I ended up with nice clean objects. In Java you would call it a POJO: Plain Old Java Object, in Pascal that would probably be a POPO 🙂 )
That means I cannot always use unit testing in the strict sense. And obviously, I need to test as much as possible to get early feedback on any error I make and to prevent bugs. I used Integration tests for all back-end functionality. I use FPC to implement these tests, so technically they start as a unit test but the functionality is different. The integration tests work with a greenfield for the database which is populated before a range of tests start. This approach appears to be useful.
Finishing release 0.6 will still take a few months but I hope to have it available, including documentation, user manual and all tests at the start of 2020.
Version 0.5 of Enigma contains the handling of glyphs and a graphical chart drawing. I just uploaded the source to GitLab, you can check it at https://gitlab.com/jkampherbeek/enigma.git
This version is only for programmers. Starting with version 0.6 Enigma will be available as a compiled package for the interested public at large.
Please check the documentation for some specific requirements for your development environment.
The new Engima release 0.4 is about databases. It creates a new SQLite database and populates it. This is currently only supported from unit tests, but several preparations have been made to access the data in the application itself. You can download it from https://gitlab.com/jkampherbeek/enigma.git .
Additionally, several tests are now based on Fakes. The number of tests is now about 200.
An updated version of the technical documentation is also available.
In Enigma, I will use a font with astrological symbols. This font can also be used in other software. It is now available for download at http://radixpro.com/downloads/font/