– Quote from a Tara Brach podcast episode about communicating tough emotions with others.

What I’m thinking about today:

  • I’m going to start tweeting the interesting sites/articles I run across during the day.  If nothing else it will be a useful reminder and potential employers can see the types of things I’m interested in.  
  • I’m imagining creating a nonprofit that gives CrossFit (or some type of community-based gym) scholarships to people who can’t afford them, since CrossFit can provide life-changing experiences but is cost prohibitive to most (I’ve gotten apartments, my friend met her husband, and I’ve made a number of professional connections to say the least). Besides getting one-on-one coaching, there tends to be a community that provides support, encouragement, and networking opportunities. Now that I’m unemployed, I see the how unfair it is that these advantages are only given to people who can afford them. *There are probably a LOT of things like this that I never thought about while having a steady income. 

What I learned today:

  • From Peter Attia’s series, Studying Studies: “The research worker is sometimes a difficult person,” wrote W.I.B. Beveridge in The Art of Scientific Investigation (1957), “because he has no great confidence in his opinions, yet he also is [skeptical] of others’ views. This characteristic can be inconvenient in everyday life.” 

Today in programming, Java notes:

  • Comparable class: Comparable allows for ordering, so its useful when you’ll want to sort a collection.
  • getOrDefault (key, default value): this method of the Properties class is used to get the value mapped to this key passed as the parameter, and will fetch the corresponding value to to this key if present. If there is no such mapping, it returns the defaultValue. 
  • UnmodifiableMap(): method of the Collections class that is used to return a read-only map.  Note, it’s the collection itself that is unmodifiable, the objects themselves can be modified (like adding and removing quantities in the course example)
  • Hash_map.entrySet(): method is used to create a set out of the same elements contained in the hash map. 
  •  Formatting: String.format(“%,2f” + itemValue) + “\n”; F means floating number
  • Switch from hashMap to LinkedHashMap to maintain list order
  • Formatting for item vs items based on amountString s = “\nShopping basket ” + name + ” contains ” + list.size() + ((list.size() == 1) ? ” item” : ” items”) + “\n”
  • TreeMap is always going to be slower than an unsorted map type like hashMap.