Thursday, 2014-06-19

*** mlncn has joined #npoacct00:33
*** mlncn has quit IRC00:43
*** bkuhn is now known as bkuhnIdle01:30
*** mlncn has joined #npoacct02:02
*** bkuhnIdle is now known as bkuhn02:20
*** garrison has joined #npoacct03:03
*** garrison has joined #npoacct03:03
*** mlncn has quit IRC03:10
*** garrison has quit IRC04:44
*** garrison has joined #npoacct04:45
*** tgnitidle has joined #npoacct05:15
*** tgnit has quit IRC05:18
*** garrison has quit IRC05:44
*** garrison has joined #npoacct05:45
*** garrison has quit IRC06:45
*** garrison has joined #npoacct06:46
*** garrison has quit IRC07:47
*** tgnit has joined #npoacct09:21
*** tgnitidle has quit IRC09:21
*** garrison has joined #npoacct11:03
*** tgnit has quit IRC12:34
*** tgnit has joined #npoacct12:34
*** nesciens has joined #npoacct13:40
*** garrison has quit IRC14:13
tbmtgnit: so how about you start with something easy14:15
tbmtgnit: 1) implement a commodity directive... just the parsing of the directive, not the actual implementation of rounding14:16
tbmtgnit: 2) a command line option.  again, just the parsing using OPT() and OPTION()14:16
bkuhnYes, this sounds like a good idea to me. :)14:16
tbmtgnit: in the meantime, I'll draft up a proposal on how to properly fix the rounding issue14:16
tgnittbm: i started with debugging and i am also thinking along the same line as yours14:16
tbmtgnit: if you have some time, you could also write some test cases NOT relaed to rounding14:16
tgnitdoing the directive thing14:17
tbmtgnit: ok14:17
tbmtgnit: start in src/textual.cc14:17
bkuhntgnit: tbm makes a good suggestion in that we can see some real output from that work.  It's important that we see some code given that midterm evaluation is soon.14:17
tgnittbm: such as?14:17
tbmtgnit: I know some of this code, so I can provide some help (I hope)14:17
bkuhntgnit: can you try to do what tbm suggests in the next day or so and publish a branch publicly on your github page that does it?14:17
tgnitbkuhn ;agreed14:17
bkuhn(just in your own fork of the ledger-cli repository)14:17
tgnityes14:18
tbmtgnit: well, just look for things that are currently not being tested.  for example, hereare some empty test files14:18
bkuhntgnit: great, ping me and tbm tomorrow with the results, please!14:18
tgnitabsolutely14:18
tbmls -l test/*/*test | grep ' 0 '14:18
tbm-rw-r--r-- 1 tbm tbm      0 May 18 09:34 test/baseline/opt-cleared-format.test14:18
tbm-rw-r--r-- 1 tbm tbm      0 May 18 09:34 test/baseline/opt-date.test14:18
tbm-rw-r--r-- 1 tbm tbm      0 May 18 09:34 test/baseline/opt-datetime-format.test14:18
tbm...14:18
tbmadding tests for these would be a good and easy start14:18
tbm1) figure out what the options do (read manual, code, test)14:18
tbm2) add some test case14:19
tgnitok14:19
tbmbut start with the commodity directive14:19
tgnittbm: yes14:19
bkuhnI agree with tbm on that point too.   Maybe work on two branches: (1) to start implementing the feature, just doing the directive and command line options but no "guts" yet and (2) on writing the tests.14:21
tbmtgnit: yeah, start with 1) adding a commodity directive14:23
tbmlook at src/textual.cc14:23
bkuhntgnit: But, focus on (1) for the next day or so.  Don't try to do too many things at once.  There's lots to be done.14:23
tbmlook for instance_t::commodity_directive14:23
tbmon line 106514:23
tgnitbkuhn: got you14:23
tbmyou can see stuff like:14:23
tbm      if (keyword == "alias")14:23
tbm        commodity_alias_directive(*commodity, b);14:23
tbmadd something new here, e.g. "rounding"14:23
bkuhntgnit: great. :)14:23
tbmthen create a function commodity_rounding_directive14:23
tgnitrbm: looking14:23
tbmimho that should take an integer as value14:24
tbmproduce a parsing error otherwise14:24
tgnittbm:ok,  integer as in precision as we talked?14:25
tbmyes14:25
tgnittbm:keyword is precision then call commodity precision directive14:32
bkuhnThis sounds like a plan.  I look forward to doing a code review tomorrow.;)14:32
tgnitbkuhn: me too14:34
tbmtgnit: ok14:38
*** mlncn has joined #npoacct14:44
*** mlncn has quit IRC15:20
*** mlncn has joined #npoacct15:22
*** tgnitt has joined #npoacct17:13
*** mlncn has quit IRC17:33
*** mlncn has joined #npoacct17:48
*** mlncn has quit IRC18:09
*** tgnitt has quit IRC19:06
*** mlncn has joined #npoacct19:13
*** garrison has joined #npoacct19:24
*** tgnitidle has joined #npoacct19:47
*** tgnit has quit IRC19:48
*** nesciens has quit IRC19:49
*** bkuhn has quit IRC20:08
*** bkuhn has joined #npoacct20:10
*** bkuhn has quit IRC20:14
*** bkuhn has joined #npoacct20:16
*** bkuhn has quit IRC20:33
*** bkuhn has joined #npoacct20:45
*** bkuhn is now known as bkuhnIdle20:50
*** garrison has quit IRC22:11
*** garrison has joined #npoacct22:12
*** tbm has quit IRC22:46
*** bkuhnIdle is now known as bkuhn22:57
*** garrison has quit IRC23:12
*** garrison has joined #npoacct23:24

Generated by irclog2html.py 2.12.1 by Marius Gedminas - find it at mg.pov.lt!