Subscribe: Jabbering Giraffe
Added By: Feedage Forager Feedage Grade C rated
Language: English
err  error  jslint java  jslint  language  logging  new  nil  readability  return  script  string error  string  update jslint  version 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Jabbering Giraffe

Jabbering Giraffe

Last Build Date: Mon, 08 Feb 2016 15:16:03 +0000


Maven Irritation

Mon, 08 Feb 2016 15:16:03 +0000

I’m looking at Maven related stuff for the first time in … perhaps 4 years. This is long enough that I’ve forgotten how irritating it is. My task is simple: redirect the writes from the project’s directory to another location on local disk. This is because the project is locatedRead More

Return errors or useful values, not both

Mon, 07 Dec 2015 13:42:17 +0000

One of the nice features of Go is returning multiple values natively. e.g. type Foo struct{…} func New() (*Foo, error) { if err := initSomething(); err != nil { return nil, err } return &Foo{…}, nil } What’s interesting is that either the error is nil (and you have aRead More

Go interfaces are for consumption

Tue, 10 Nov 2015 16:37:23 +0000

After a recent discussion, I’ve realised something about Go’s interfaces. They’re best if you use them as a consumer rather than producer. Using my own code as an example. I have a storage layer that uses bigtable. package storage type IO interface { Read() (string, error) Write(string) error } typeRead More

Script or program

Mon, 09 Nov 2015 08:08:48 +0000

My new definition for “is it a script”: does it have tests? If so, it’s a proper program. If not, it’s unmaintainable junk.

Logging in Go

Fri, 06 Nov 2015 14:59:16 +0000

Dave Cheney has an excellent post, Let’s talk about logging. In it, he dissects the current logging libraries, and what you really need. I pretty much agree with everything he says. Warnings are just more info messages. Log or handle the error — not both. Where I disagree is withRead More

Go Readability

Sun, 14 Dec 2014 15:13:52 +0000

If you haven’t seen them, do take a look at these slides on Go readability, from one of Google’s Go readability group. Readability is an important process at Google. In theory, it’s about ensuring the style guide for a language is applied. In practice, it’s also about ensuring that idiomaticRead More

Rescuing Data with F-Script

Fri, 05 Dec 2014 17:02:04 +0000

I have an old iMac. It’s not in a good state. I don’t care that much, it’s old slow, and not a lot of use. The only remaining thing of value is the large collection of photos I have on there. I have an external drive, so it’s easy toRead More

Happy Fifth Anniversary, Go

Mon, 10 Nov 2014 22:42:39 +0000

So, Go is five years old. Looking back through version control, my first bit of Go was in May 2012. I’ve been using it as my preferred language for the last year or so. It still feels very pleasant and easy to work with. In no small part that’s dueRead More

Go Strings

Wed, 18 Sep 2013 08:52:22 +0000

I’ve been looking at Go recently. It’s a pleasant language, with few surprises. However, I wondered (as always) what the encoding of a string is supposed to be. For example: Python 2 has two types: str, and unicode. Python 3 has sensibly renamed these to bytes and str, respectively. PerlRead More

jslint4java 2.0.2

Tue, 07 Feb 2012 20:45:27 +0000

After another long period of having nothing to say, I’ve pushed out an update to jslint4java. Version 2.0.2 doesn’t include any major new features, but does update JSLint to the latest version (2012-02-03) and fix a couple of small bugs here and there. issue 75: Handle BOMs when using theRead More