Tag: metrics

Analytics for Freelancers

What would 500 more visitors to your website do for your business? … I hope you answered "it depends". It depends on what period of time those 500 show up. In one hour? In one month? In one year? It depends if they fit your ideal clients or if they just came because you posted …

Read more

Weekly product metrics

Every Monday morning I sit down and run the metrics for all of my products for the past week. I do this in order to make sense of what was happening with them, as well as to track their long term progress. Why every week? I found weekly metrics worked the best for me because …

Read more

Daily Code Reading #16 – Flay#analyze

The third step in flay’s process is to run the s-expressions through the #analyze method. The Code 1 2 3 4 5 6 7 8 9 10 def analyze self.prune   self.hashes.each do |hash,nodes| identical[hash] = nodes[1..-1].all? { |n| n == nodes.first } masses[hash] = nodes.first.mass * nodes.size masses[hash] *= (nodes.size) if identical[hash] self.total += …

Read more

Daily Code Reading #15 – Flay#process_sexp

Now I’m starting to get into the deep dark corners of flay. The #process_sexp method is the next step in the process. The Code 1 2 3 4 5 6 7 8 def process_sexp pt pt.deep_each do |node| next unless node.any? { |sub| Sexp === sub } next if node.mass < self.mass_threshold   self.hashes[node.structural_hash] << …

Read more