Skip to content
Aprataksh edited this page Jun 3, 2018 · 2 revisions

Welcome to the Munafa wiki!

Coding guidelines

  1. Since we have several instances where we read the data from the CSV files, it is important that a variable is used to represent the index corresponding to every column. Hard coding index values not only makes the code difficult to read and understand, it also makes it difficult to modify in case the data schema changes
  2. Always convert the values that are read from the CSV file from string to float before using any comparison operator or doing any kind of arithmetic operation
  3. The data that is user-specified should either be defined at one place in a file or it should be placed in configuration files.
  4. Before submitting any code for testing, make sure that there is a test run on a common data set and attach the output that you have received to the submission. The first part of testing would be to run on the same data set and compare it with the output that has been received along with the submission. Only if there are identical, will the testing proceed.
Clone this wiki locally