Up to Main Index                         Up to Journal for September, 2018

                   JOURNAL FOR TUESDAY 4TH SEPTEMBER, 2018
______________________________________________________________________________

SUBJECT: Recordjar encoder changes
   DATE: Tue  4 Sep 22:09:09 BST 2018

A few minor updates have just landed on the public dev branch.

The recordjar encode tests have been cleaned up a bit to reduce some of the
chatter when defining the test data. This is mostly a case of using strings
instead of []byte in the definitions and then using []byte() in the tests. For
a datetime I’ve used the simpler RFC822Z format instead of individual date and
time components. An example of RFC822Z is ‘04 Sep 18 21:17 +0000’.

The encode.Bytes method now trims leading and trailing white space except for
line feeds ‘\n’. Using encode.Bytes is the preferred method for encoding free
text sections as it allows for optional leading and trailing blanks lines This
can be useful for formatting and laying out text.

New tests have been added to the encoder to make sure the trimming works.

The attr/Description.Marshal method has been updated to use encode.Bytes.

I’ve also switched to using the Go 1.11 release for WolfMUD development. Don’t
think I’ve mentioned that yet?

Apart from those few changes things have been pretty quiet, at least with
respect to WolfMUD. I’m still using the Chromebook and Raspberry Pi Zero W
extensively at the moment. The combo works better than I thought it would.
It’s taken time getting used to the Chromebook’s keyboard and finding keys
like Page Up, Page Down, Home and End. For reference they are Search+Cursor
Up, Search+Cursor down, Search+Cursor Left and Search+Cursor Right. The
Search+Cursor key combo is awkward as they are on opposite sides of the
keyboard and so require both hands to execute. Cut and paste is weird, but
works using the touch pad to select and two finger tap to paste. Even though
Search+‘>’ is the insert (Ins) key it does not work as expected.

Now I’m off to work on testing the recordjar decoder.

--
Diddymus


  Up to Main Index                         Up to Journal for September, 2018