Thanks. I feel a bit uncomfortable with having a mentor (I don’t know
exactly why… maybe that’s too easy ?) but I’ll try to contact a
mentor and see what happen
BTW, the concept is realy interesting… IMHO having a mentor is the
best way to learn something. AFAIK I haven’t seen project like this on
other porgramming language communauty.
A few style notes. The multiple assignment you do “tasks, projects =
Array.new, Array.new” is usually done on two lines, just for
readability, and dropping some complexity. Also you can just assign
to [], which gives you a blank array ({} for hashes).
@projects.each_pair { |k, v| projects << v }
@tasks.each_pair { |k, v| tasks << v }
Can be replaced with
tasks = @tasks.map {|x| x }
projects = @projects.map {|x| x }
With this you can also drop the array initialization. This method is
in the Enumerable module, which Hash and Array mixin. You could even
make it just be
dump = @tasks.map {|x| x }
dump << @projects.map {|x| x }
return YAML.dump(dump)