Exposing Clojure function calls in New Relic web transaction traces requires adding Java-style annotations: @Trace. Here we show how to transform your existing Clojure code to a form that has annotated methods which show up in New Relic!
Instrumenting Clojure for New Relic Monitoring
May 01, 2013 · 4 Comments
→ 4 CommentsTags: clojure
Clojure in the Enterprise?
April 16, 2013 · 3 Comments
A question was recently asked on the Clojure Users group on LinkedIn about reasons to migrate to Clojure for enterprise applications in a Java shop. It's a fairly typical question from people in the Java world when they hear the buzz about Clojure, and of course asking the question on a Clojure group garnered a lot of positive responses about why Clojure is a good choice. I didn't feel anyone had really addressed a core aspect of the original question which was, essentially, "Why should I, as a Java web developer, using JPA, JSF etc, choose Clojure instead for an enterprise application?". The key considerations here are "enterprise application" and "Java web devloper, using JPA, JSF etc". Clojure is rightly praised for big data projects, simplified concurrency due to immutable data, and the conciseness of its solutions. The general advice when introducing Clojure to an organization is to take a grass roots approach: use it for some tooling first, or a small low-risk (but perhaps high-profile) project and show how well it works in a Java-dominated world. Then you get more and more developers trying it out and gradually the organization adopts it for more and more projects. It's good advice, and it's often how Clojure has crept into Java shops so far (as opposed to those fast-moving small shops that already have a tendency toward polyglot development).
I didn't feel anyone had really talked about how radical Clojure seems to a conservative "enterprise" company that's already bought into the Java way of doing things from top-to-bottom (as indicated by the original poster's references to JPA and JSF). I've had a couple of people ask me to turn my (fairly length) response on the group into a blog post, so here it is...
→ 3 CommentsTags: clojure
clojure.java.jdbc 0.3.0 alpha 1
April 07, 2013 · 4 Comments
0.3.0 represents a major overhaul of the clojure.java.jdbc API. Read on to find out what has changed!
→ 4 CommentsTags: clojure
New FW/1 - Framework One - Organization on Github
April 06, 2013 · No Comments
To make it easier to manage collaboration on FW/1-related projects in future, several projects have now moved under a new FW/1 - Framework One - organization on Github. Your forks and watches should have been updated but if you have local clones of the old repos under my personal Github account, you'll want to update those. Here's the full list of Framework One projects:
- FW/1 - Framework One - simple MVC for CFML
- DI/1 - Inject One - simple Dependency Injection for CFML
- cfmljure - the magic bridge between CFML and Clojure
- FW/1 - Framework One - simple MVC for Clojure
- Leiningen project template for FW/1 - Framework One - for Clojure
If you were a collaborator on one of these projects before, you will no longer have commit access (because you were a collaborator directly on my repo). If you'd like to become a collaborating team member on one of these projects as part of the new organization, contact me directly to discuss that. I'd certainly like to see some of the regular contributors in the past become official "Team Framework One" members in the new organization!
Thank you to all the contributors who've helped get these projects to where they are now!
→ No CommentsTags: cfmljure · clojure · coldfusion · di1 · fw1
DI/1 0.4.7 available for testing
April 06, 2013 · No Comments
The seventh minor update in four months, this brings a number of bug fixes and enhancements to DI/1 - Inject One since the 0.4.0 release at the beginning of December, 2012:
- Fix optional constructor argument handling (with help from Marcin Szczepanski)
- Fix edge case bug in property / setter / accessor logic
- Setter metadata is cached, improving transient bean handling performance (Grant Shepert)
- Robustness fixes for file path handling and parent bean factory handling
- Add getVersion() API
- Addition of transientPattern configuration option (Matt Levine)
In addition, DI/1 has moved to the FW/1 - Framework One organization on Github. The old repo still exists under my account (and is an up-to-date fork), but you should watch / fork / contribute to the new repo going forward.
→ No CommentsTags: coldfusion · di1 · oss
My First PyCon
March 17, 2013 · 5 Comments
Given the incredible focus on children and education in the Python community, I feel like I should be writing this blog post in crayon "My First PyCon By Sean Corfield, Aged 50"...
PyCon 2013 was my first exposure to the Python community and, beyond some Python 101 for the 10gen MongoDB for Developers course, which I took late last year, my first real exposure to what Python is all about. Color me impressed on both counts!
As I've mentioned before, I try to learn a new language every year or two, hopefully in enough detail to take it to production in some way. Python's been on my list for a while and, as I blogged back in October, 2013 is my year to learn Python! I don't expect to be building applications with Python but I do hope to streamline our build system at work over time to get rid of the ad hoc mix of bash scripts and ant tasks (our 800 line build.xml is already getting pretty painful to maintain because ant is not really designed for conditional logic and loops... and, frankly, XML is not a programming language!).
PyCon 2013 had 2,500 people signed up and the exhibitor hall was packed with a lot of companies I'd heard of and a lot of companies I had not heard of, but everyone was overwhelmingly friendly and positive and the vibe was very much an inclusive community - everyone is welcome, from young to old, from all around the world, from every walk of life - and it was certainly the most diverse technical conference I have ever attended which made a wonderfully refreshing change! At every break and lunch, I struck up conversations with new people and over and over again I heard that "Python is awesome!" and the "Python community is awesome!". The Python Software Foundation flew a ten year old boy and his father from South Africa so the boy could be a Teaching Assistant at the pre-conference workshop for kids to learn Python programming. One of the keynote speakers brought his two(?) year old kid up on stage - wearing a Python T shirt - and I saw several parents with children at the conference, as attendees. Getting kids into programming at such young ages is awesome. Every attendee was offered a Raspberry Pi and we were told that all the spare ones that attendees didn't want would be donated to school programs and similar outreach. In addition to the unusual sight of children at a tech conference, there were also far more women at PyCon than I've ever seen at a tech conference, with booths occupied by PyLadies, Women Who Code, CodeChix, OpenHatch and others - all of whom are dedicated to increasing diversity in IT. That was awesome too.
So what about the technology itself? I learned that Python is a clean, elegant, powerful language based on some well-designed abstractions, with a rich ecosystem of libraries and tools. Python seems to satisfy both the "easy to learn" camp and the high end "power user" which is no mean feat. I was very impressed with how deeply baked iterators, generators and comprehensions are into the both the language and the "social norms" around building software - that sort of consistency (and flexibility) is important and it's one of the things I love about Clojure (the sequence abstraction). Several sessions I attended covered iterators and generators and a couple touched on coroutines (which seem to be implemented as generators that yield to each other, which is pretty slick). The idea of contexts is very powerful, similar in some ways to Clojure's structural macros, so that you can easily run code in, say, the "context" of an open file and have the file automatically closed for you. Another powerful aspect of Python which I liked was how tuples are used for multiple assignments, similar to destructuring in Clojure, and it was good to know that this is both idiomatic, fast and atomic. Another session covered Python's class support and showed how to create the simplest possible code needed yet be able to enhance it over time as requirements changed in ways that would not break early clients of the class: starting with public attributes and switching to implicit property getters and setters with changing how the class was used, using decorators (annotations).
I went to PyCon thinking Python was "just another scripting language" but I came back thinking that "Python is awesome!".
→ 5 CommentsTags: python
congomongo 0.4.1 released
March 14, 2013 · No Comments
CongoMongo (on Github) has just received a small update today, adding a few more advanced features:
- read preference supported (per-connection, per-collection, per-fetch) - Niclas Meier
- add-index! supports :background true/false - dwwoelfel
- namespaced keyword keys in maps are roundtripped correctly - Adam Clements
See also CongoMongo on clojars.
→ No CommentsTags: clojure · congomongo · mongodb
clj-time 0.4.5 released
March 14, 2013 · No Comments
It had been a while since the last release of clj-time (on Github) (July 2012) so I figured it was about time to have an update, to officially release the features that community members have been adding:
- Add testing predicates for days (e.g., tuesday?) and months (e.g., july?) - Devin Walters
- Change base Clojure version from 1.3.0 to 1.4.0 (we're testing against 1.3.0 and 1.5.1 now)
- format-local-time now returns nil on a bad format string (instead of silently returning the current time!) - mw10013
- date-midnight is now supported across all the coercions - Nick Barnwell, with a fix from Tom McNulty
- Correct parse-local behavior when no format is given - Ben Poweski
- Added MIT-LICENSE.txt - thank you David Powell for the nudge!
- Add support for Joda's YearMonth - Ragnard Dahlén
- Add instant->map producing readable Clojure-format date/time, interval and period values - Thiago Nunes
I'd also like to give a special shout out to Michael Klishin for attention to the documentation and for review and input on some of these features!
See also clj-time on clojars.
→ No CommentsTags: clj-time · clojure
Hiring! Hiring!
January 20, 2013 · 1 Comment
[UPDATED] Welcome to 2013 and at World Singles we are expanding our development team! We're looking for self-motivated people in two very different roles, working remotely from their home office.
→ 1 CommentTags: clojure · coldfusion · javascript · mongodb · programming · tdd · worldsingles
FW/1 Version 2.1.1 Released - Layout Bug Fix
January 18, 2013 · No Comments
Thanks go to Chris Blackwell for this: if you rely on calling layout() explicitly, you'll get an exception in version 2.1. Chris provided a fix and version 2.1.1 contains that. Version 2.1.1 is the default download now from FW/1's RIAforge page as well as from the FW/1 Github repo.
If you don't use layout() directly, you should be fine with version 2.1.
→ No CommentsTags: coldfusion · fw1
