Programming type

Started by Luca Dangelo, October 01, 2018, 08:55:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Luca Dangelo

Hi all,
First of all, I want to thank those who implemented this fascinating app.
I want to know how is the programming of this project; I could not find any class definition in the "src-cl" project. Could you explain how did you implement it? Is it Object Oriented programming?

Overall, could you explain this project (for example, implementation, verification, etc.)

Thanks in advance,
Luca

Liviu Lalescu

Hello, Luca,

Thank you for the appreciation!

It is a Qt application. Qt is providing the GUI environment and lots of other things, like lists, sets and strings.

src-cl is the command-line version of FET. src is the GUI version of FET.

FET is written in C++, object oriented.

I work on GNU/Linux on FET, in the simple text editor of Midnight Commander.

You can see the source files in the engine and interface directories.

Luca Dangelo

Thank you for your reply.
I was checking the code, I enjoyed it and seemed professional. I saw some "assert" command; do you use the verification technics?
Also, your handwriting does not have enough comments, how can I understand it? Is there any document for it (at least for each method)?

Regards,

P.S: I am sure that you spent so much time to find this perfect algorithm and implementation. God power to your elbow.

Liviu Lalescu

Quote from: Luca Dangelo on October 02, 2018, 09:56:00 AM
I was checking the code, I enjoyed it and seemed professional. I saw some "assert" command; do you use the verification technics?

Indeed, I use "assert" as a verification, in many places.

Quote
Also, your handwriting does not have enough comments, how can I understand it? Is there any document for it (at least for each method)?

I am sorry, there is not such documentation. Only the names of the variables can mean something, and you can ask here on the forum for explanations.

Quote
P.S: I am sure that you spent so much time to find this perfect algorithm and implementation. God power to your elbow.

Thank you!  :)

Luca Dangelo

Hi,
I am trying to work with the src-cl project to figure out the main parts of your implementation (I do not want to work with the user interface codes). I understood that you are using some files in the "interface" folder; but when I remove the other files in that folder, some errors appear, and the compiler needs those files!

Can you explain what the matter is? Does the src-cl project need all of the files in the "interface" folder? If yes, for what?

Thanks in advance.
Luca

Liviu Lalescu

#5
src-cl.pro needs centerwidgetonscreen.h & .cpp, fet.h & .cpp, longtextmessagebox.h & .cpp, and fetmainform.h & .cpp from src/interface/.

You need to run "qmake src-cl.pro". It should work.

What errors are you getting?

Luca Dangelo

It worked, I will help to improve if I can understand it well.

Thanks a million.

Liviu Lalescu

I just saw that you don't need fetmainform.h.