<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Programming on richardleggett.com</title>
    <link>https://richardleggett.com/categories/programming/</link>
    <description>Recent content in Programming on richardleggett.com</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Sat, 14 Jan 2017 21:31:13 +0000</lastBuildDate><atom:link href="https://richardleggett.com/categories/programming/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Value Objects in Java with AutoValue and Lombok</title>
      <link>https://richardleggett.com/2017/01/14/value-objects-in-java-with-autovalue-and-lombok/</link>
      <pubDate>Sat, 14 Jan 2017 21:31:13 +0000</pubDate>
      
      <guid>https://richardleggett.com/2017/01/14/value-objects-in-java-with-autovalue-and-lombok/</guid>
      <description>&lt;p&gt;In this post I want to discuss the subject of &lt;strong&gt;Value Objects&lt;/strong&gt;, their purpose and some ways of easily implementing them in Java, specifically, although not exclusively, within the context of Android development.&lt;/p&gt;
&lt;p&gt;I’ll cover a couple of popular libraries that I’ve tried, namely &lt;a href=&#34;https://projectlombok.org/&#34;&gt;Project Lombok&lt;/a&gt; and &lt;a href=&#34;https://github.com/google/auto/tree/master/value&#34;&gt;AutoValue&lt;/a&gt;, how they approach the problem of making value objects easier to create and maintain, plus a few pitfalls.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;In computer science, a &lt;strong&gt;value object&lt;/strong&gt; is a small &lt;strong&gt;object&lt;/strong&gt; that represents a simple entity whose equality is not based on identity: i.e. two &lt;strong&gt;value objects&lt;/strong&gt; are equal when they have the same &lt;strong&gt;value&lt;/strong&gt;, not necessarily being the same &lt;strong&gt;object&lt;/strong&gt;. Examples of &lt;strong&gt;value objects&lt;/strong&gt; are &lt;strong&gt;objects&lt;/strong&gt; representing an amount of money or a date range.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>How did you start coding?</title>
      <link>https://richardleggett.com/2016/02/28/how-did-you-start-coding/</link>
      <pubDate>Sun, 28 Feb 2016 21:21:00 +0000</pubDate>
      
      <guid>https://richardleggett.com/2016/02/28/how-did-you-start-coding/</guid>
      <description>&lt;p&gt;Recently Usborne books made their beautifully illustrated 1980’s &lt;a href=&#34;http://www.usborne.com/catalogue/feature-page/computer-and-coding-books.aspx&#34;&gt;computing books for kids&lt;/a&gt; available for download. It turns out several of my friends and Twitter acquaintances picked up their love of coding from these books as youngsters, myself included.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I owe my career to these books. I first learned BASIC from this one back in 1993: &lt;a href=&#34;https://t.co/a9SwJxLTrc&#34;&gt;https://t.co/a9SwJxLTrc&lt;/a&gt; &lt;a href=&#34;https://t.co/cdinNZi47j&#34;&gt;https://t.co/cdinNZi47j&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;— Nick Lockwood (@nicklockwood) &lt;a href=&#34;https://twitter.com/nicklockwood/status/696360333380882434?ref_src=twsrc%5Etfw&#34;&gt;February 7, 2016&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;!-- raw HTML omitted --&gt;
&lt;p&gt;I remember being in a dentist’s waiting room where an old battered copy of “&lt;a href=&#34;https://drive.google.com/file/d/0B2Z4GOoRXHWUako5bHhURTh1NGM/view&#34;&gt;Computer Space Games&lt;/a&gt;” lay on the bookshelf. I was so engrossed they actually let me take that book home, and thus began my journey.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
