FreeCAD coding/documentation standards?
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
FreeCAD coding/documentation standards?
Is there a place where these are stated?
For coding:
uniform coding style for c++
uniform coding style for python
indentation, parenthesis, dos and don'ts
comment styling
I see https://www.freecadweb.org/wiki/index.p ... ource_code but it's a summary not specifics
https://www.freecadweb.org/wiki/index.p ... ui_Command has some info but very limited to specific subject
For documentation:
How to write doxygen comments for FreeCAD? (ref: http://www.iesensor.com/FreeCADDoc/0.16-dev/index.html or https://www.freecadweb.org/api/)
How to comment FC code?
EDIT:
FYI https://www.freecadweb.org/api/ is broken
EDIT 2:
I did find @qingfengxia effort at: https://github.com/qingfengxia/FreeCAD_Mod_Dev_Guide
For coding:
uniform coding style for c++
uniform coding style for python
indentation, parenthesis, dos and don'ts
comment styling
I see https://www.freecadweb.org/wiki/index.p ... ource_code but it's a summary not specifics
https://www.freecadweb.org/wiki/index.p ... ui_Command has some info but very limited to specific subject
For documentation:
How to write doxygen comments for FreeCAD? (ref: http://www.iesensor.com/FreeCADDoc/0.16-dev/index.html or https://www.freecadweb.org/api/)
How to comment FC code?
EDIT:
FYI https://www.freecadweb.org/api/ is broken
EDIT 2:
I did find @qingfengxia effort at: https://github.com/qingfengxia/FreeCAD_Mod_Dev_Guide
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: FreeCAD coding/documentation standards?
For python in FEM: https://forum.freecadweb.org/viewtopic.php?f=18&t=12833
There were suggestions to use it for the rest of FreeCAD, but I don't know if it happened.
There were suggestions to use it for the rest of FreeCAD, but I don't know if it happened.
- kkremitzki
- Veteran
- Posts: 2518
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: FreeCAD coding/documentation standards?
Fixed via FTP and in repo via PR 504. There's still an error on both HTTP and HTTPS though, what is this "dynsections.js" inKunda1 wrote: EDIT:
FYI https://www.freecadweb.org/api/ is broken
https://github.com/kkremitzki/FreeCAD/b ... r.html#L17
?
It isn't present on the server, obviously, and it isn't present in a "make DevDoc" build folder...
Edit: Bleh, only index.html is fixed, new docs will need to be built.
Re: FreeCAD coding/documentation standards?
Thanks @kkremitzki !kkremitzki wrote:Fixed via FTP and in repo via PR 504. There's still an error on both HTTP and HTTPS though, what is this "dynsections.js" inKunda1 wrote: EDIT:
FYI https://www.freecadweb.org/api/ is broken
https://github.com/kkremitzki/FreeCAD/b ... r.html#L17
?
It isn't present on the server, obviously, and it isn't present in a "make DevDoc" build folder...
Edit: Bleh, only index.html is fixed, new docs will need to be built.
Thanks!yorik wrote:summoning @yorik to rebuild api docs
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
- kkremitzki
- Veteran
- Posts: 2518
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: FreeCAD coding/documentation standards?
I actually have FTP superpowers now so I built the API web docs myself and I'm pushing them as we speakKunda1 wrote:Thanks!summoning @yorik to rebuild api docs
Re: FreeCAD coding/documentation standards?
@PrzemoF Great. Should I continue the conversation in the FEM sub-forum or continue it here?PrzemoF wrote:For python in FEM: https://forum.freecadweb.org/viewtopic.php?f=18&t=12833
There were suggestions to use it for the rest of FreeCAD, but I don't know if it happened.
Awesome...thanks for being so johnny on the spotkkremitzki wrote:I actually have FTP superpowers now so I built the API web docs myself and I'm pushing them as we speak
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: FreeCAD coding/documentation standards?
Thanks!kkremitzki wrote:I'm pushing them as we speak
Re: FreeCAD coding/documentation standards?
I'd like to resurrect this thread and continue discussing how to improve the API documentation for FC.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: FreeCAD coding/documentation standards?
Sorry, I don't have the time to read the linked FEM coding standards topic.
I would like to submit for general standards that when creating a new command that generates an object in the Model tree, the programmer should ensure that the label is available for translation. I've been asking for this for years (there's a very old ticket on Mantis), and no programmer seems to care about it. Currently, only the Part Primitives have translated labels.
This is just one of many usability issues in FreeCAD, and I think it's an important one that would be easy to fix. For most FreeCAD tools, the command is translated, but not its result.
I'm so tired of it not getting done that I would change the source code and submit a PR myself, if someone showed me how. I'm no programmer but I have an analytic mind.
I would like to submit for general standards that when creating a new command that generates an object in the Model tree, the programmer should ensure that the label is available for translation. I've been asking for this for years (there's a very old ticket on Mantis), and no programmer seems to care about it. Currently, only the Part Primitives have translated labels.
This is just one of many usability issues in FreeCAD, and I think it's an important one that would be easy to fix. For most FreeCAD tools, the command is translated, but not its result.
I'm so tired of it not getting done that I would change the source code and submit a PR myself, if someone showed me how. I'm no programmer but I have an analytic mind.