Subscribe to The Way I See It        RSS Feed
- - - - -

Groovy StreamingMarkupBuilder Empty Tags

Icon Leave Comment
I found something interesting today at work while playing with Groovy. By default, the StreamingMarkupBuilder builds empty tags like this:

<someTag />

but an external system that uses our API needs the tags to be expanded like this:

- - - - -

Groovy Strings

Icon Leave Comment
I'm back again to write about Strings in Groovy. If you are like me, then you use strings for all sorts of things. Groovy has some nice features that make it a pleasure.


In Groovy, you can declare strings with single or double quotes. Double quotes denote GStrings--strings that allow exp...
- - - - -

Excluding Groovy Methods in AspectJ Advice

Icon Leave Comment
Groovy is great for developers because of its simple scripting feel, but in order to compile to java bytecode, it adds lots of bloat at compile time to make the magic work. When mixing it with AspectJ's post-compile binary weaving, it will cause lots of unwanted methods to be caught by your AspectJ Advice. I wrote a pointcut to help eliminate...
- - - - -

Collecting attributes from a Collection of Objects

Icon Leave Comment
Groovy provides us with a slick way to iterate over objects in a collection to collet specific attributes. This is called the Spread operator ("*.")

For example:

class Person{     String name;     int age;}

Say we have a collection of people:

* * * * *

Totally Groovy

Icon Leave Comment
- - - - -

Conclusiong to Internship

Icon Leave Comment
First of all, I want to say that I'm back and I am going to keep up with D.I.C more than I have in the last year. I have followed peoples posts but remained pretty much incognito.

This summer I had the opportunity to go work for Verizon Wireless in Alpharetta, Ga. Talk about an amazing opportunity! I wanted to share a little bit about...
- - - - -

First Interview for a HUGE internship

Icon Leave Comment
So, unbeknownst to me, silly business communication classes do have their benefit. Two semesters ago, I was required to take a class geared towards networking your contacts to help make yourself visible to hiring companies. One assignment was to make a profile on a little site called I thought it was ridiculous to require something...
- - - - -

Deserving of Death? No

Icon 2 Comments
- - - - -

Compiling Programs With Command Prompt

Icon 1 Comments
New guys, this is for you. Many of you have asked, "What is the best way to learn how to program?" To put it simply, notepad and command prompt...
- - - - -

GUI Crafting

Icon Leave Comment
In Java, there is only one right way to develop a GUI--by hand. No other road is acceptable in our realm. For reason I won't get into here, the Netbeans Generator is frowned upon by all respectable programmers. Here are a few tips to keep in mind when developing your own GUI:

Tip #1: Always Use A Constructor

  • (2 Pages)
  • +
  • 1
  • 2

October 2021

17 18 1920212223

Recent Entries

Recent Comments

Search My Blog

1 user(s) viewing

1 Guests
0 member(s)
0 anonymous member(s)