Archive for the 'java' Category

Everyday Tales: Anatomy of a Refactoring

I’ve been extremely busy with project after project in the past few months, leaving me no time to do any research and/or play around interesting things. Even though I prefer to write about what is really interesting me at a given moment, I think that writing about some smaller/simpler problems and solutions would be better […]

I Wish I Knew That Before Getting This Job – Slides and (Long) Notes

As I said here before I was in Brazil some weeks ago to present at a conference. I had a really great time over there with some amazing people and would like to thank Caelum for their hard work in creating such a great conference. I’m making the slide deck and notes available in my […]

Don’t Trust Fake IDs

After so many years I thought that this was a dead topic but recently I saw at least two reasonably experienced developers having trouble with object identity and thought that it would be good to write about it.
Most languages define some kind of equality operator on objects, in Java, for example, that is the equals […]

ThoughtWorks Away Day Presentation: Common Myths about Type Systems

In ThoughtWorks we get together at least once an year for a whole weekend to drink beer and do whatever people consider interesting. This year’s ThoughtWorks Australia Away Day (AKA Team Hug) was somewhere in Victoria and among other activities (and a bus crash) we had technical sessions.
I used one of those slots to do […]

Tag Clouds: See How Noisy Your Code Is

If you follow this blog then you probably know that one of current interests is expressive design, either using Domain-Driven Design or Domain-Specific Languages. Here is a presentation about this topic.
One of the tricky things about expressive code is that it is very hard to see how noisy a code base is. What I found […]

Getting Cloudy: Clojure on Google App Engine

Some weeks ago I joined a handful of ThoughtWorkers invited to test the new Google AppEngine’s Java API. Unfortunately I had a project requiring a lot of attention during most of this period but once back on the beach I found some time to play around with it.
Cloudy Skies
Google AppEngine (GAE) is Google’s shot in […]

Clojure: Adding Metadata to Java Objects and Proxies

One of the most amazing features of Clojure is the ability to decorate references to objects with metadata, as in the following example:

user> (def my-user {:login “pcalcado” :password “secret123″})
#’user/my-user
user> my-user
{:login “pcalcado”, :password “secret123″}
user> ^my-user
nil
user> (def my-cached-user (with-meta my-user {:cached-at (java.util.Date. )}))
#’user/my-cached-user
user> my-cached-user
{:login “pcalcado”, :password “secret123″}
user> ^my-cached-user
{:cached-at #}
user> my-user
{:login “pcalcado”, :password “secret123″}
user> ^my-user
nil

That feature makes the […]

Presentation Slides: Macros in 20 Minutes

We just started holding 20 minutes presentations during lunch time in the ThoughtWorks Sydney office. For the first session I gave a not-that-short talk on Lisp macros using Clojure. The slides are below.
Lisp Macros in 20 Minutes (Featuring Clojure)
View more presentations or upload your own. (tags: thoughtworks clojure)

It turns out that 20 minutes is too […]

Internal DSLs and Paradigms: Declarativeness

I’ve been experimenting a lot with Internal Domain-Specific Languages (or embedded DSLs if you prefer the classic and more accurate term) during my recent projects and by doing that I’m facing the real benefits and caveats of that technique.
One of the biggest issues with embedded languages is that is very hard to get developers’ minds […]

Layering Layers

Most developers I know can code an Application in three Layers -as long as those are Persistence, Business and Presentation. I find it very interesting that developers can generally use a Layer but simply can’t apply the underlying technique of Layering. People will use Layers that were created for them in some architectural archetype (like […]




About

You are currently browsing the Fragmental.tw weblog archives for the java category.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.





Creative Commons License

This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.