Languages

  • submit to reddit

Flowchart for choosing the right Clojure type definition form

Clojure offers a number of different forms that define types (and generating Java classes. Choosing between deftype, defrecord, reify, proxy, and gen-class can...

0 replies - 3575 views - 07/23/11 by Chas Emerick in Articles

Binding Scala Objects to Swing Components

If you do Swing application development, especially the enterprise application type you know lots of code that looks like this: public class Person { ...

0 replies - 4279 views - 07/23/11 by Jens Schauder in Articles

36 Resources To Help You Teach Kids Programming

As a parent, I am always looking at what my children are learning and what they like. As a software developer, I hope that my daughters embrace their...

4 replies - 37778 views - 07/23/11 by Robert Diana in News

Clojure: Creating XML document with namespaces

As I mentioned in an earlier post we’ve been parsing XML documents with the Clojure zip-filter API and the next thing we needed to do was create a new XML...

0 replies - 4285 views - 07/21/11 by Mark Needham in Articles

Five reasons why you should rejoice about Kotlin

As you probably saw by now, JetBrains just announced that they are working on a brand new statically typed JVM language called Kotlin. I am planning to write...

4 replies - 4559 views - 07/21/11 by Cedric Beust in Articles

Scala: Rolling with implicit

We’ve been coding in Scala on my project for around 6 weeks now and are getting to the stage where we’re probably becoming a big dangerous with our...

0 replies - 3564 views - 07/19/11 by Mark Needham in Articles

Making Solr Requests with urllib2 in Python

When making XML requests to Solr (A fulltext document search engine) for indexing, committing, updating or deleting documents, the request is submitted as...

0 replies - 6022 views - 07/15/11 by Mats Lindh in News

Scala: Pattern matching a pair inside map/filter

More than a few times recently we’ve wanted to use pattern matching on a collection of pairs/tuples and have run into trouble doing so. It’s easy...

1 replies - 5826 views - 07/14/11 by Mark Needham in Articles

Scala: An attempt to eradicate the if

In a previous post I included a code sample where we were formatting a page range differently depending on whether the start page and end pages were the...

0 replies - 3197 views - 07/13/11 by Mark Needham in Articles

Datatype generic programming in Scala - Fixing on Cata

The paper Functional Programming with Overloading and Higher-Order Polymorphism by Mark P Jones discusses recursion and fixpoints in a section Recursion...

0 replies - 3110 views - 07/12/11 by Debasish Ghosh in Articles

Clojure: Language as thought shaper

I recently read an interesting article by Tom Van Cutsem where he describes some of the goals that influence the design of programming languages and one...

0 replies - 3120 views - 07/11/11 by Mark Needham in Articles

Scala: Traits galore

We recently came across a problem where we had some logic that we wanted to be used by two classes. Our original thought was to pull it up into an...

2 replies - 3972 views - 07/10/11 by Mark Needham in Articles

Scala: Self type annotations and structured types

A few days ago I tweeted that I didn’t really see the point in structured types in Scala… Not sure I understand where you would use structural types...

0 replies - 4706 views - 06/27/11 by Mark Needham in Articles

Track your home's live electricity usage with Python

Modern electric meters (the one attached to the outside of your house) emit an IR flash for each watt-hour consumed, through the port on the top of the...

0 replies - 11218 views - 06/24/11 by Michael Mccandless in News

Scala/Mustache: Creating a comma separated list

We’re using the Mustache templating engine on my project at the moment and one thing that we wanted to do was build a comma separated list. Mustache is...

1 replies - 3935 views - 06/23/11 by Mark Needham in Articles