/
Coding Style

Coding Style

This page describes the common coding style we apply in the SNAP project.

Java

We use a slight modification of the IntelliJ IDEA default coding style which has been used for the majority (if not all) BEAM code. In IDEA create the SNAP coding style as follows or copy SNAP.xml into ${home}/.IntelliJIdea14/config/codestyles.

Align multiple method call parameterers:

Use fully qualified import statements (avoid wildcard '*'):

Python

Adhere to PEP-8!

 

Related content

IntelliJ IDEA
IntelliJ IDEA
More like this
How to create new SNAP modules using SNAP maven archetypes
How to create new SNAP modules using SNAP maven archetypes
More like this
How to build SNAP from sources
How to build SNAP from sources
More like this
Command-line Interfaces
Command-line Interfaces
More like this
How to create a bundle of SNAP jars for the usage on the classpath
How to create a bundle of SNAP jars for the usage on the classpath
Read with this
How to use the SNAP API from Python
How to use the SNAP API from Python
More like this