Code Monkey home page Code Monkey logo

Comments (4)

ericb59 avatar ericb59 commented on August 30, 2024

Thank you for your interest in FUSION-C.
You're right, some functions (a minority) are not named as I wish.
First of all, my choice for capital letters (CamelCase) is completely personal.
I like that a listing is perfectly readable, and whose functions are perfectly identifiable.
It's a personal choice. This may annoy some other coders, I understand it well.

To solve the problem of the functions that are not in "CamelCase" I think to add some #define in msx_fusion.h
In the same way we can choose another way of naming the functions, by creating a lexicon with #define
#define JoystickRead joytickRead
or
#define JoystickRead joyrd

Any help to evolve FUSION-C is welcome :-)

from fusion-c-v1.2.

mdbijl avatar mdbijl commented on August 30, 2024

Hi Eric. Thanks for responding. I understand and I like the #define approach.

from fusion-c-v1.2.

mdbijl avatar mdbijl commented on August 30, 2024

Mmm. Looking into it, it will be quite cumbersome to add #defines and maintaining them, mostly because structs also have the same CamelCased code style:

typedef struct { char DriveN; .... } DSKPARAMS;

Users coming from object-oriented languages will have difficulty with this, as a name started with a capital is considered a class. Again, I agree it's mostly personal preference, but maybe it's an idea to adopt some coding style that is written down somewhere or checked by a some tool so you don't get annoyed with questions like mine :-)

from fusion-c-v1.2.

ericb59 avatar ericb59 commented on August 30, 2024

"maybe it's an idea to adopt some coding style that is written down somewhere or checked by a some tool "

Yes you are right.
Which coding style do you suggest ?
I will certainly update that in a futur version.

from fusion-c-v1.2.

Related Issues (13)

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.