Tips

Grading Utilities

At work we use Moodle (locally known as MyPlace) for handling course delivery, including the submission and grading of assignments.

Moodle is by far not a perfect system, but it is the one we use. A primary issue with Moodle is that it is a terribly online system, there are limited ways in which you can work offline and then upload your results. For instance, MCQs can be written offline and uploaded and so can the returning of marks and feedback.

Some BibLaTeX Tricks to remember

For creating beautiful PDFs and slides, I am a big believer of using LaTeX whenever possible. Sometimes one has to use Word, but for everything else LaTeX!

For writing documents, that is another matter.

When working with citations, LaTeX is bundled with a powerful tool called BibTeX that supports structured representation of bibliographic entries in a custom format that allows one to easily change citation style and reference style.

Now, BibTeX is rather outdated and the community has produced a tidy replacement called BibLaTeX that uses biber as a backend rather than BibTeX. BibLaTeX is the swiss-army knife of bibliographic control in your document. I won’t go into too much detail about all the things that BibLaTeX can do, but highlight some new tricks I have learned recently.

Tips for using Effects in Idris

Effects is an Idris package that implements resource-dependent algebraic effects. This allows a developer to control at a fine-a-grained level the side affects (state, logging, IO) for effectful programs. A tutorial and more background on their use is available on line.

When writting my Idris libraries I have used Effects to manage exceptions, state, logging, and IO. Here are some tips in my experiences in using Effects.

Global Effects List

In an effectful function the effects used are declared in a List data structure of type List EFFECT. An effectful main function will look like:

An Effectful Logger: Part One

Effects is an Idris package that implements resource-dependent algebraic effects. This allows a developer to control at a fine-a-grained level the side affects (state, logging, IO) for effectful programs. A tutorial and more background on their use is available on line.

In the past I wrote some Logging effects as a means to understand how resource-dependent algebraic effects work. Recently, I had need to use it in anger in my application. As a result I rewrote the damm thing, and decided to describe the output in a blog post. This post will describe the simple logging model, with a future post describing the category based model.