qcha / tether

0 stars 0 forks source link

Resource files as CSV #2

Open aarexer opened 7 years ago

aarexer commented 7 years ago

All files in resource folder such as ExpModelDens and etc - have tab as delimiter. It's bad practice - in our current case we can use comma as delimiter and work with CSV files. CSV - is a standard file type, which have a lot of libs for parsing and using in prod.

For example CSV - it's a excel file basis.

Check it - CSV.

Why we should use it:

  1. We can get external library for parsing it
  2. We can use HEADERS in files and simple work with it.
  3. We don't have tabs and spaces problem.

To solve this issue you can write script on Python or Java which converts our resource files to the CSV files.

UPDATE: @RomanWayne try to convert files to csv format. Use ; - as delimiter.

aarexer commented 7 years ago

But @RomanWayne - you shouldn't delete old files before we start to use new. Create new directory and put converted files into it.