I’m Zach Latta,
a software engineer
from Los Angeles

about me

I spend my days crafting software, enriching my life, and working on schoolwork – in that order. I get my code on over at Run Games where I’m working on our flagship game Football Heroes.

found on

Using Artistic Style to Format Code

- - posted in programming, tutorials

Artistic Style is a wonderful little utility to format C, C++, C#, and Java code. We’ll be going over how to use it to format the following code into something a bit more legible.

(add.c) download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* add.c
 * a simple C program
 */

#include <stdio.h>
#define LAST 10

int main()
  {
int i, sum = 0;
 for(i=1;i<=LAST;i++)  {sum+= i;
  }
   printf("sum = %d\n", sum);
      return 0;}

Creating Our First Turntable Bot

- - posted in programming, tutorials

In this post we’ll be creating our first Turntable bot. It’s assumed that you already have Homebrew installed.

Before we get to coding, we need to install node. In a new terminal window, run the following command.

brew install node

Now that we have node installed, we need to install the unofficial Turntable API using npm, node’s package manager. Run the following in your terminal.

npm install ttapi