Tuesday, 9 October 2018

And slowly we get worse...

So this timelog project started as a simple zsh script:

function timelog() {
if [ "$1" != "" ]
then
echo $(date +%H:%M) "$1" >> ~/timelogger/$(date +%Y-%m-%d).txt
fi
}

This created a new file if one didn't exist called <<date>>.txt (for example 2018-10-09.txt) that would then put whatever details were passed to it into it.
This had several advantages over what I've got to now, mostly it was nice and easy to edit.

With the changes I'm now making it does appear that I'm getting further away from where I was.

I've now got just about a graphql server running that just about works to retrieve whatever has been written, but I'm not yet using that to write to, soon, but not yet.

Adding more interesting and fun technology has been it's own reward, but it's not made what I'm working on much more useful (yet).

The git repos for the more confusing bits are here:

Tuesday, 25 September 2018

Adding a pile of issues...

This evening I added a pile of issues to GitHub, and in a shocking turn of events I've managed to fix one of them. By fix one of them I of course mean I found that things already worked that way.

I've also done some tidying up.

Next I want to start getting some unit tests in and then start some unit tests in a TDD style manner.

After that it's to the fun world of Graphql with go. I've found some fun filled exciting blogs about this.

I'm really quite enjoying go.

Monday, 24 September 2018

Keeping going with go

Well another evening of GO, which has been really quite good fun...

I've started moving some things about so that the code has separated a bit better. I had started with some testing, but that wasn't going so well, so that's a plan for next time!

Things that I've got going so far:

  • Working and compiling!
  • Reading config file
  • Connecting to a remote mongo db
  • Writing to a reading from mongo db
  • Reading the passed in parameter
I've also got a whole lot of VS code plugins working.

Go seems to encourage multiple repo's which is a little odd, but I suppose it's nice for encouraging code reuse and other bits, sure I'll get used to it (or start with one and then slowly move things out).

Repo's

Tuesday, 18 September 2018

Trying out a new language.

So about a year ago, my then (and now no longer) boss handed me a book saying you might be interested in this.
That's sat on my desk unopened for almost a year.

The Go Programming Language I've still not opened the book, but I put together a small command line app that could be used to record what I'm doing, while I'm doing it. I'll keep playing I quite like it (so far). If you're interested the repo is here: https://github.com/benjimouse/timelog I'll update with more details later.