Recently I found
| elemines |
Surprisingly, the QML implementation didn’t take much time:
| Activity | Hours | Comment |
|---|---|---|
| Development time spent on JavaScript code |
8
|
I have never written any minesweeper engine |
| Development time spent on QML code |
12
|
Dialogs, button, animations(explosions) etc. |
I should also mention my experience with related technologies:
- Intermediate Qt knowledge (3 years)
- A few months of QML development
- Basic Javascript knowledge (only used with QML code)
Plain Qt knowledge was not a requirement in this case because the QmlMiner contains no C/C++ code at all. Understanding QML and simple JS was just enough. The QmlMiner can be executed with the qmlviewer tool but afterwards I added simple main.cpp for memory and startup performance tests to make “lightness” of the QML app possibly similar to elemines. Basically, qmlviewer has many features that are not needed for the task.
After creating the QmlMiner I reviewed some source code of elemines to spot similarities and noticed that both applications have corresponding game engines and default.edc (*.edc) file has syntax similar to JSON. It has programs section which I believe is somewhat similar to QML states.
Another observation is that the edc file is a resource of data used in C code. The C code creates objects, imperatively defines interactions between them and lays out the UI. Please note these are only my guesses – guesses of developer neither much experienced in plain C nor in EFL.
2. Source code size and used languages
The results are as follows:
|
lines of code
|
purpose
|
QmlMiner
|
EFL elemines
|
||
|---|---|---|---|---|---|
| Business logic | jacascript | <div …read more Source: FULL ARTICLE at Planet KDE |
|||



