Java Guide to Go Programming article 2: Inheritance
If you are just tuning in, I thought it would be instructive if I demonstrated new Go Programming Features by comparing them to Java code features. This way if you are new to Go Programming, you can...
View ArticleJava Guide to Go Programming article 3: Polymorphism
This is part three in this series. Essentially I assume you know Java and that you want to learn Go Programming. You can find article 1, and article 2 on this blog as well. In Java method overriding is...
View ArticleJava Guide to Go Programming article 4: Polymorphism II
In the last article (article 3), we covered polymorphism in Go. Go does not have type inheritance like C++, Java, Python, Ruby, C#, Dart, ... well you get the idea. It does have inheritance via structs...
View ArticleDoes Go Programming support polymorphism
When you search for Go polymorphism this page is the first thing that shows up. So everyone thinks Go is broken. This means that you should address the issue a little better. If you want to build a...
View ArticleJava Developer Guide to Go Programming Collections Article 5
Go programming is strongly typed like Java, C and C++, but has built-in collection support like Python, and Ruby. Lists (growable arrays) in Go programming are called slices. Dictionary aka associative...
View ArticleHow to Use Blogsy
Welcome to Blogsy!Let's get started.Set up your blog by going to the Settings Menu→ Service Settings. Then choose your blog platform and fill in your information.Tap on the Post Info. button to get to...
View ArticleJava Invoke Dynamic examples (Java 7 invokedynamic) with Benchmarks done on...
This blog is both a how-to and a guide to benchmarks for these technologies.Reflection is not as slow as you think.Invoke Dynamic is really fast especially when you use call sites.I have been messing...
View ArticleClasspath resource reader
Keep in mind that this is just prototype code. I was just figuring out how I was going to do something. My intention is to throw this away, and then implement it for real.There is a full code...
View ArticleI wrote up a small example that shows how to use the FileSystem, URL, Reader,...
I've included some examples that may not exactly fit your use case, but show some ways to write code that is a bit easier to maintain and read.(In answer to:...
View ArticleJava Scanner example (JDK auto close, exception handling basics,
I answered another question on StackOverflow. I enjoy answering questions there. It is fun to pull in a code snipped, reproduce an error and fix it. The question was about getting a weird message about...
View ArticleWhy isn't there a ByteBuilder like there is a String Builder.....?...
(I ended up writing ByteBuilder class called ByteBuf. A fast one that is easy to use.)Question on StackOverFlow"RE: I am constructing an array of bytes in java and I don't know how long the array will...
View ArticleIntroducing Boon for Java
Boon!Simple opinionated Java for the novice to expert level Java Programmer.Low Ceremony. High Productivity.Brief introduction to BoonHere are some basic Java types, list, array, veggies, primitive...
View ArticleBoon Byte Builder Round 2 (read and write primitives to a byte array)
Boon Byte Builder Round 2 (read and write primitives to a byte array)Boon adds slice notation and a few other tricks to Java. If you are new to boon start here:Java Boon Byte Buffer BuilderJava Boon...
View ArticleJava slice notation to split up strings, lists, sets, arrays, and to search...
Boon Slice NotationBoon Home | Boon Source | If you are new to boon, you might want to start here. Boon is "Simple opinionated Java for the novice to expert level Java Programmer". Boon is a "Low...
View ArticleJava Boon - Auto Growable Byte Buffer like a ByteBuilder
"I am constructing an array of bytes in java and I don't know how long the array will be.""I want some tool like Java's StringBuffer that you can just call .append(byte b) or .append(byte[] buf) and...
View ArticleDreaming about Boon Object Serialization but no real need
Been dreaming up my own Boon Serialization format.Do I need a serialization format? No.http://en.wikipedia.org/wiki/Comparison_of_data_serialization_formatsMessagePack and Hessian are the closest to...
View ArticleWhat if Java collections and Java hierarchies were easily searchable? They...
What if it were easy to query a complex set of Java objects at runtime? What if there were an API that kept your object indexes (really just TreeMaps, and HashMaps) in sync.? Well then you would have...
View ArticleCrash Java Shell
I have been dreaming about building a system like this, but never have the time or currently knowledge. THIS IS AWESOME! http://www.crashub.org/beta/cookbook.html#reference#running_crash When I grow...
View ArticleFastet Java I/O circa 2013 (Writing Large Files Redux) (EC2 ESB data at end...
I found a lot of "advice" on the Internet about File I/O and Java. My recommendation is create your own benchmarks. There is some advice out there that is just plain bad. There is also this...
View ArticleStackoverflow question on posting an HTTP form with Java
A users asks:RE: "I wish to post a form in java that has both string and binary parameters e.g.name=sam&photo=<...binary data...>Unfortunately the available documentation only covers...
View Article