Comments (9)
Hi,
the underscore convention comes from python,
there are people that write camelCase
for variables in python but most doesn't..
so, moving to camel case will be better for Java
, but since I believe most of our content will use Python
personally I prefer underscores.
vote?
from cs-content.
i think all can agree on the underscore convention, BUT issue is what we do with inputs of the actions(which are java based)??
from cs-content.
why not making operations that are java
based use camelCase' and
Python` based use underscores?
Java op
- java_op
inputs:
- firstInput
- secondInput
....
Python op
- python_op
inputs:
- first_input
- second_input
....
from cs-content.
👍 from my prespective...
from cs-content.
👍
from cs-content.
@orius123 @meirwah @oritstone there is one problem with this approach. Let's say we have a flow that has 2 steps that have as outputs error messages and an on_failure step which sends the error message as an email. If for example the first step will be a python_op then it would have the output error_message and the other one if it's a java_op it would have the output errorMessage. That means that everytime I have to check which one is not empty and email that one. The same for returnResult.Sounds good? WDYT?
from cs-content.
The problem with the different conventions between python & Java actions is only relevant in the operations, and each operation should be in a separate file.
When you specify an output to the operation, you can give whatever name you want, and it should be by our lower case words convention:
- java_op
inputs:
- firstInput
- secondInput
outputs:
- error_message: errorMessage
And then in the flow, all the tasks deal with lower case names
from cs-content.
👍
from cs-content.
feel free to close if you think it is resolved 😃
from cs-content.
Related Issues (20)
- Flow io.cloudslang.vmware.vcenter.virtual_machines.clone_virtual_machine cannot create VMs in sub-folders
- Flow io.cloudslang.vmware.vcenter.virtual_machines.get_virtual_machine_details does not retrieve IP address when VM just powered on HOT 1
- Flow io.cloudslang.base.comparisons.equals does not accept an empty parameter HOT 1
- json based operation add_value.sl requires comma separated json path
- entit copyright header is being added automatically HOT 1
- broken gitter URL on cs-content HOT 1
- docker mysql tests are failing HOT 1
- AwsSignatureHelper.getAmazonRegion() method does not count with https protocol HOT 1
- Operation io.cloudslang.base.lists.add_element.sl does not allow empty input parameters (empty list, empty element)
- get_value and get_keys operations from io.cloudslang.base.json fail
- Getting a prompt window/validation error for template_body
- cs-utilities:0.1.22 is not present in maven central thus a lot of base content cannot be actually used
- Add noop
- Build should fail if new uncovered items are introduced HOT 1
- default SSH operation to Brocade device unable to send commands to login shell HOT 2
- get_access_token.sl from google compute should be moved to a different folder
- Extra level should be placed under compute for the google cloud content
- CoreOS test temporarily ignored - readd to test suites
- Unable to create VMs in a non-default AWS EC2 region HOT 1
- Action io/cloudslang/base/remote_file_transfer/remote_secure_copy.sl does not support HTTP proxy
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 cs-content.