Archives by Tag 'programming'
The power of pair programming
Some weeks ago I started doing pair programming with some co-workers basically for two things:
code some tasks of an user story
get familiar with a new software code base
I haven’t had an opportunity to put this technique in practice a lot before, but I can say it was extremely important and benefit for the project. Sometimes [...]
JFileContentManager included in the Softpedia Mac OS software database
I’m proud to announce that JFileContentManager, a software of mine, has been added to Softpedia’s database of software programs for Mac OS. It is featured with a description text, screenshots, download links and technical details on this page.
JFileContentManager has been tested in the Softpedia labs using several industry-leading security solutions and found to be completely [...]
JDK7 Tackles Java Verbosity
Interesting article showing some changes on the Java platform to address its verbosity, but keeping code readability safe.
I liked the new Collection’s literals syntax to create lists, sets and maps:
List powersOf2 = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024};
Map ages = {“John” : 35, “Mary” : 28, “Steve” : 42};
Although it [...]
A Brief History of Java and JDBC
From Javalobby, an interesting and short video showing the evolution of the Java platform since 1991.
Constructors in Scala
I just came across an interesting post by Stephan Schmidt about constructors in Scala.
It shows how to create constructors with immutable and mutable fields, how to have multiple constructors how to invoke super class constructors. I found it very handy and concise to create a constructor with a private immutable field:
class Foo(private val bar: Bar)
Using Scala to update LiveJournal tags – Part I
Some days ago I started to use the Scala programming language to update my Livejournal tags using its XML-RPC protocol reference. First I had to check if some tags of mine were entered wrong, so I’ve done this Scala program to list all of them:
1:import org.apache.xmlrpc.client.XmlRpcClient;
2:import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
[...]
"Salute #{@Ruby}!"
Some times ago I had to parse a XML messages’ file to produce some i18n properties files.
I decided to try it with Ruby, mainly because of two reasons:
I’m continuosly exploring some dynamically-typed languages, like Python and Ruby
I wanted to try the conciseness of programming with closures
So, I used the REXML API to process the XML [...]
Bean Validation – Emmanuel Bernard on JSR 303
JavaLobby released an interesting interview with Emmanuel Bernard, the spec lead of of JSR-303: Bean Validation..
One of the important goals of the Bean Validation spec is, as Emmanuel Bernard says, is
to provide a default runtime engine that is used to validate the constraints around the domain model, in Java.
The development team decided to [...]
Joshua Block on How to Design a Good API & Why it Matters
In this talk (recorded at Javapolis), Joshua Block presents guidelines about how to design good APIs. I highlighted what i think are the most important parts of the talk:
Functionality should be easy to explain: If it’s hard to name, that’s generally a bad sign
Good names drive development
Be amenable to splitting and merging modules (If names [...]
DomainDrivenDesign: Domain Services or Method on an Entity?
There has been too much discussion on the DDD list regarding where to put the business logic control, whether in a service or entity. Being more specifically, in order to ship an order, the followthings should happen:
Validate that the order can be shipped
Update quantity
Set the status to shipped
Save the order
Send an email to the customer [...]