Comments (5)
I'm happy with the proposed change, it will make it a bit easier/quicker for users who lookup stuff in the C++ source when writing python code.
from jsbsim.
Who can say no to consistency?
from jsbsim.
While consistency can be a good thing, the convention in the Python community is to use underscores for methods and functions and camel case for classes.
The Python community conventions are to follow the PEP 8 -- Style Guide for Python Code.
I've first used the C++ version of JSBSim back in 2003, and I'm now planning on revisiting it but using it from a Python project. Most modern Python projects run their code through automatic linters or style guide checkers like pep8 to check the code is following the community conventions.
TL:DR; keep the underscores please.
from jsbsim.
the convention in the Python community is to use underscores for methods and functions and camel case for classes.
Sure, but PEP 8 specifically allows mixedCase "in contexts where that's already the prevailing style, to retain backwards compatibility" so I can assert that due to the fact that JSBSim Python module is merely a wrapper to the C++ code, then it is falling in this category.
from jsbsim.
So I never proceeded with this changed and I guess anyway that the Python interface has been released for too long a time now to consider a renaming of the methods as a serious option.
🎉 I hereby officially drop that project and let JSBSim be (somewhat) conformant to PEP 8 🎉
from jsbsim.
Related Issues (20)
- JSBSim Simulink Function HOT 36
- aero/coefficient properties returning 0 HOT 1
- Android support HOT 4
- Can't build Unreal Engine plugin on Linux/Mac because of unsupported typeid keyword HOT 5
- JSBSim Unreal throws an Exception few seconds after/during takeoff HOT 1
- Missing support for castering nosewheel with angle limiter. HOT 8
- Param name new name in the form "hostname:port/proto" is not right in FGOutputSocket::SetOutputName HOT 4
- Build JSBSim by VS2019 and use C++ API HOT 1
- Crashes after adding an xml path to a component in the engine HOT 10
- Trim Errors Happening In RHEL8 On Models That Worked On RHEL7 HOT 11
- Updates to gitignore to tidy up git status after build HOT 2
- CMAKE Configure Error on MacOS (M1 aarch64) HOT 2
- After changing pitch and long initial conditions the yaw angle changes also for no reason HOT 1
- JSBSim interface to Matlab on Windows: throttle command from joystick doesn't work HOT 5
- Trim succeeds and results in NaN values HOT 1
- JSBSim and s-function have different results and different reactivity themselves HOT 1
- Building for Unreal 5 on Linux not working HOT 7
- Javascript alternative? HOT 2
- Linearization and simplex trim from console executable and xml script HOT 16
- FGTurbine Shutdown Spin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsbsim.