My thoughts as an enterprise Java developer.

Tuesday, November 27, 2012

LinkedIn CEO: Site will become 'economic graph' over next decade | Internet & Media - CNET News

LinkedIn CEO: Site will become 'economic graph' over next decade | Internet & Media - CNET News: "Weiner envisions companies using LinkedIn to evaluate a workforce in an area to see if it's equipped with the skills to get the jobs that will be emerging."

Tuesday, November 20, 2012

Source Control Message for Single File Add

What should be in a source control commit message for a single file add?

  1. Reason: The reason for the file should be in a comment in a file so it would be a duplicate to also include in the commit message.
  2. File add: Already part of the commit
  3. Issue identifier

Thursday, November 01, 2012

Laws are like computer programs

Laws are like computer programs. Like programs, laws try to apply rules to change their environment but the system for making laws isn't setup to make good laws. Programmers have generally accepted best practices to increase the chance of good code but there aren't such practices for laws (or they are minimal).

  1. Laws have to deal with much more varied input than computer programs.
  2. Laws have greater risks when the input isn't handle correctly (people can die)
  3. Laws are written by people who are selected for their ability to have general goals -- not people who are necessarily good at ensuring that all of the details are correct. Generally visionaries don't write code.
  4. Laws have virtually no testing that is done before implementation (sometimes there are studies but they are usually general). Code generally has multiple types of testing: compiler, unit, functional, QA, user, etc that verify that the code is good before it is released.
  5. Laws are written by large groups that are all responsible for large portions. Programmers are usually responsible for small portions that don't overlap much.
  6. Laws are applied to large groups before being tested on small groups (sometimes federal laws are based on state laws but that is rare and loose).
  7. All of the people who help produce programs generally focus on a narrow domain but laws are mainly written by generalists (exceptions being lobbyists and "experts")
  8. Laws reference parts of laws, which is like functions
  9. Simplicity isn't a goal for laws.
  10. Laws use the waterfall model
  11. Laws don't have official comments

What other programming best practices do laws not follow? Are there programming practices that laws follow well?