Git Product home page Git Product logo

Comments (6)

DavidWyand-GG avatar DavidWyand-GG commented on July 24, 2024

Yes, that is an excellent idea. Right now I'm tracking down our original T3D code style document that can be used as a base.

from torque3d.

Bloodknight avatar Bloodknight commented on July 24, 2024

http://tdn.garagegames.com/wiki/CodeStyleGuide

is the only one ive ever seen posted

from torque3d.

Dzonatas avatar Dzonatas commented on July 24, 2024

VMs should have resolved this issue without such guidelines. I prefer Whitesmiths.

from torque3d.

crabmusket avatar crabmusket commented on July 24, 2024

@Bloodknight thanks for that! It doesn't go over guidelines for things like spaces around parentheses: if ( myBool ) versus if(myBool), which I guess is a really minor issue, but would be nice to have some consensus over! It seems like GG was divided internally, as well... I can't find a consistent style within the codebase.

@Dzonatas what do you mean by VMs? Whitesmiths looks odd to me - the engine tends to be written in Allman style as far as I can see.

from torque3d.

Bloodknight avatar Bloodknight commented on July 24, 2024

Personal preference is for Java style with a pet hate for the torque method of extra spaces inside parenthesis, they look like somebody forgot to add something. Another pet hate is single If lines with no braces, personally i think that is begging for a bug to be added.

That said much of my work is working on/with other peoples code, i tend to only get vocal when people mess with my own files.

from torque3d.

thecelloman avatar thecelloman commented on July 24, 2024

Our Contributing wiki page now has a link to our chosen Code Style Guidelines to be followed.

from torque3d.

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.