## Exercise 10 Task 3 - CSV

Mario Trageser
Windoof-User
Beiträge: 40
Registriert: 20. Jul 2013 14:28

### Exercise 10 Task 3 - CSV

Hi,

how should None-Values be represented inthe CSV files?
Should they be represented by an empty String, or by "None". In the latter case, should Some-values be represented by "Some(...)"?
Is it correct, that the project tag should not be used in the CSV output format?

Kind regards,
Mario

meichholz
Endlosschleifenbastler
Beiträge: 167
Registriert: 30. Mär 2016 08:28

### Re: Exercise 10 Task 3 - CSV

Hi,
Mario Trageser hat geschrieben:
23. Jan 2018 16:22
how should None-Values be represented inthe CSV files?
Should they be represented by an empty String, or by "None". In the latter case, should Some-values be represented by "Some(...)"?
Please print None as an empty String and remove the Some and the corresponding parentheses.
Mario Trageser hat geschrieben:
23. Jan 2018 16:22
Is it correct, that the project tag should not be used in the CSV output format?
Yes, the project is not part of the CSV output.

Best,
Matthias

LorenzB
Windoof-User
Beiträge: 28
Registriert: 1. Sep 2015 12:27

### Re: Exercise 10 Task 3 - CSV

How should a Duration be converted to String? Just the default toString method ("PT8H" for 8 hours)?

And should we always print the empty comma-sequence when the Task is simple or should we leave it without commas?

GS-812
Windoof-User
Beiträge: 30
Registriert: 25. Apr 2015 12:47

### Re: Exercise 10 Task 3 - CSV

And should we always print the empty comma-sequence when the Task is simple or should we leave it without commas?
CSV should have the same number of commas in each line.

Code: Alles auswählen

A,B,C,D
1,2,,
, , ,
,,3,4

0b101101101
Endlosschleifenbastler
Beiträge: 179
Registriert: 15. Apr 2015 18:24

### Re: Exercise 10 Task 3 - CSV

Only for the first values. The rate and dependency may be in any order and (probably do not need to exist).

I use PT8H for 8 hours.

meichholz
Endlosschleifenbastler
Beiträge: 167
Registriert: 30. Mär 2016 08:28

### Re: Exercise 10 Task 3 - CSV

Hi,

it is fine to just use the Duration.toString method to convert a duration to a string. For SimpleTask you should have the same amount of commas per line, however, for BillableTask and DependentTask that's in this case not required.

Best,
Matthias