DevOps Zone is brought to you in partnership with:
DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
  • submit to reddit
Jonas Gauffin09/03/14
3797 views
6 replies

Communicating business rules with methods

Do you use anemic models? i.e. having business classes like “User” without any methods but just properties instead? Do you want to do better but do not know how?

Mark Needham09/03/14
4486 views
0 replies

R: Grouping by week, month, quarter

In my continued playing around with R and meetup data I wanted to have a look at when people joined the London Neo4j group based on week, month or quarter of the year to see when they were most likely to do so.

Alec Noller09/03/14
7978 views
0 replies

The Best of DZone: August 27 - September 3

If you missed anything on DZone this week, now's your chance to catch up! This week's best include the anatomy of Hibernate dirty checking, the similarities of Swift and Scala, the Agile version of Superman vs. Batman, and more.

Andrew Fuqua09/02/14
6417 views
0 replies

Flow Is For Sissies

The moral of the story is that real options thinking, systems thinking and many other such concepts present or yet to come may be more appropriate in some cases than Lean/Kanban thinking. Lean/Kanban thinking is useful, but it isn’t all there is.

Rob Galanakis09/02/14
4635 views
1 replies

Hire talented people and get out of their way?

Today's quote is: "In most cases being a good boss means hiring talented people and then getting out of their way." This advice (hire smart, don’t micromanage) is so simplistic, it’s hardly worth saying. The profound stupidity is equating this with “being a good boss“. No, hiring smart people and not micromanaging them is the absolute, bare minimum you should be doing as a boss.

Anders Abel09/02/14
3451 views
0 replies

A Geek's Nightmare

Last night I woke up after a night mare. A nightmare containing a future, “improved” version of powershell a competing blogger and Entity Framework Migrations. Slightly off topic, but I’ll share it anyway.

Allan Kelly09/01/14
777 views
0 replies

Book: Scaling up Excellence

Right now I want to blog about a book because I want to recommend this book. The book is: Scaling Up Excellence by Robert Sutton and Huggy Rao. I hope this book becomes more widely known in the software development community, and particularly those concerned with “Agile” and “Scaling Agile.”

Tracy Vides09/01/14
742 views
0 replies

6 Copy Writing Secrets from the Masters

Words have the power to bring about revolutions. How do those of master wordsmiths make the world sit up and take notice, while most of ours fall on deaf ears?

Nicolas Frankel09/01/14
7332 views
2 replies

Using exceptions when designing an API

Many knows the tradeoff of using exceptions while designing an application: On one hand, using try-catch block nicely segregates between regular code and exception handling code On the other hand, using exceptions has a definite performance cost for the JVM. This week has proved to me that exception handling in designing an API is a very serious decision.

Kaveh Shahbazian09/01/14
7891 views
5 replies

Two Tales: Object Oriented Programming & Functional Programming

Recently, while crawling in old scrap repositories, I've found something that ironically still makes sense! And that was a different point of view about the relation between OOP (Object Oriented Programming) and FP (Functional Programming).

Robert Diana09/01/14
7817 views
0 replies

Programming Languages Job Trends: Part 2 - August 2014

In part 1 of the programming language job trends, we reviewed Java, C++, C#, Objective C, and Visual Basic. In today’s installment, we review trends for PHP, Python, JavaScript, Ruby, and PERL. Watch for part 3 in the next few days, where we will look at some emerging languages and others gaining steam.

Gerry Claps08/31/14
761 views
0 replies

3 Simple Steps to Effective Retrospectives

Do you create a list of actions by analyzing the data you collect in your Retrospectives? Read on for 3 simple steps on how to run your Agile Retrospectives.

Gil Zilberfeld08/29/14
15723 views
3 replies

Superman vs. Batman: The Agile Version

I used to be Superman. I could do anything I wanted, and no one would tell me I was wrong. But Superman can be wrong. And when Superman makes a mistake, it can be a crucial mistake for the organization. In short, we don’t need Superman. We need Batman and Robin.

Johanna Rothman08/29/14
6871 views
0 replies

Capacity Planning and the Project Portfolio

If you are considering doing capacity planning on what the teams can do based on their estimation or previous capacity, don’t do it. First, you can’t possibly know based on previous data. Why? Because the teams are interconnected in interesting ways.

Alex Curylo08/28/14
1473 views
0 replies

Project Management: Kanban

So chances are that, should you follow any kind of formalized project management, it’s likely to be a form of Scrum. And if so, we’ll just betcha that you’ll nod along with this piece:

Bob Hartman08/28/14
484 views
0 replies

Agile Denver Session Notes: Unscaling

For those who attended this week's Agile Denver meetup, here are the slides and some additional resources for you…

Tomasz Nurkiewicz08/28/14
10715 views
2 replies

URL shortener service in 42 lines of code in... Java (?!)

Apparently writing a URL shortener service is the new "Hello, world!" in the IoT/microservice/era world. So my inner anti-hipster asked: how long would it be in Java? But not plain Java, for goodness' sake. Spring Boot with Spring Data Redis are a good starting point. All we need is a simple controller handling GET and POST:

//Load EML and Save to MSG and MHTML

public static void ConvertFromEML()
{
    // Base folder for reading and writing files
    String  strBaseFolder  = Environment.getExternalStorageDirectory().getPath();
    strBaseFolder = strBaseFolder + "/";

    //Initialize and Load an existing EML file by specifying the MessageFormat
    MailMessage msg = MailMessage.load(strBaseFolder + "AnEmail.eml", MessageFormat.getEml());

    //Save the Email message to disk by specifying the MSG and MHT MailMessageSaveType
    msg.save(strBaseFolder + "message.msg", MailMessageSaveType.getOutlookMessageFormat());
    msg.save(strBaseFolder + "message.mhtml", MailMessageSaveType.getMHtmlFormat());
}

//Load MSG and Save to EML and MHTML

public static void ConvertFromMSG()
{
    // Base folder for reading and writing files
    String  strBaseFolder  = Environment.getExternalStorageDirectory().getPath();
    strBaseFolder = strBaseFolder + "/";

    //Initialize and Load an existing MSG file by specifying the MessageFormat
    MailMessage msg = MailMessage.load(strBaseFolder + "AnEmail.msg", MessageFormat.getMsg());

    //Save the Email message to disk by specifying the EML and MHT MailMessageSaveType
    msg.save(strBaseFolder + "message.eml", MailMessageSaveType.getEmlFormat());
    msg.save(strBaseFolder + "message.mhtml", MailMessageSaveType.getMHtmlFormat());
}

//Load MHTML and Save as EML and MSG

public static void ConvertFromMHTML()
{
    // Base folder for reading and writing files
    String  strBaseFolder  = Environment.getExternalStorageDirectory().getPath();
    strBaseFolder = strBaseFolder + "/";

        //Initialize and Load an existing MHT file by specifying the MessageFormat
    MailMessage msg = MailMessage.load(strBaseFolder + "AnEmail.mhtml", MessageFormat.getMht());

    //Save the Email message to disk by specifying the EML and MSG MailMessageSaveType
    msg.save(strBaseFolder + "message.eml", MailMessageSaveType.getEmlFormat());
    msg.save(strBaseFolder + "message.msg", MailMessageSaveType.getOutlookMessageFormat());
}
Alec Noller08/27/14
12607 views
0 replies

Dev of the Week: Trisha Gee

Every week, we feature a new developer/blogger from the DZone community to catch up and find out what he or she is working on now and what's coming next. This week we're talking to Trisha Gee, developer at 10gen, expert in high performance Java systems, and leader in the London Java Community.

Alec Noller08/27/14
7804 views
0 replies

The Best of Dzone: August 20 - 27

If you missed anything on DZone this week, now's your chance to catch up! This week's best include JPA Hibernate alternatives, an explanation of the Hadoop ecosystem, why you shouldn't waste time on code reviews, new features coming in Java 9, a rejection of Google's programming tests, and more.