Coder Social home page Coder Social logo

Coding Style about curaengine HOT 2 CLOSED

ultimaker avatar ultimaker commented on May 20, 2024
Coding Style

from curaengine.

Comments (2)

daid avatar daid commented on May 20, 2024

Hi Bernard.

You are perfect right. This structure grew into place like this. At the start is was easy and quick to develop right this. But now the engine has grown quite a bit and that did not make it faster to compile or really clean.

I agree with the documentation in header files. I'll clean it up a bit later ok? I understand how the code fits together so it's easier for me to split up properly.

Note for a general structure and idea, be sure to read the readme, this explains a few basic things. (I hate doxygen, on my previous job they managed to make the comments into an unreadable mess with it) But the code really needs some extra comments.

(As for "inline" this is not always respected by GCC. See https://www.kernel.org/doc/local/inline.html The "vector" functions need to be in a header like this to be properly inlined, but the rest should be in cpp files)

But first, I have to do some Cura GUI bugfixing.

from curaengine.

daid avatar daid commented on May 20, 2024

Totally refactored the code to fix the coding style. It's on the refactor branch right now: https://github.com/Ultimaker/CuraEngine/tree/refactoring

from curaengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.