• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Dion Almaer

Software, Development, Products

  • @dalmaer
  • LinkedIn
  • Medium
  • RSS
  • Show Search
Hide Search

Product Development

Simulate annealing as you build products and companies

December 1, 2016 Leave a Comment

Simulated annealing sounds awkwardly technical, but it is a genius technique that took physical observations and brought them to the world of computer science.

The physical version came in areas such as metallurgy:

“Annealing, in metallurgy and materials science, is a heat treatment that alters the physical and sometimes chemical properties of a material to increase its ductility and reduce its hardness, making it more workable. It involves heating a material to above its recrystallization temperature, maintaining a suitable temperature, and then cooling.

In annealing, atoms migrate in the crystal lattice and the number of dislocations decreases, leading to the change in ductility and hardness.”

The simulated type uses a similar high level idea. At high temperatures you have more randomness, and as the temperature drops the randomness drops. Using this technique in algorithms can allow us to do well by not stopping at local maxima.

By Kingpin13

Ok, so how do we bring this to the real world of engineering our products and experiences?

Startups and Innovation

When you are working on a brand new project that requires innovation, you will want to start with a lot of randomness. This means that you need the freedom to come up with crazy ideas and get prototyping on the ones that are best.

As you measure the experiments (via A/B testing and friends) you need to make sure that you are applying the appropriate level of randomness. This is hard to do, as we aren’t programmed for it. Instead, we tend to start measuring and walk up the hill in the direction that the data sends us. Thus, we often end up with local maxima. This is one of the problems that I have with how teams run A/B tests…. they tend to send one or two darts out and then iterate to the local win.

Standards

We tend to learn time and time again that the best standards come along after a lot of experimentation. Once that happens it is time to cool down and codify the best practices so we can get the benefits of consistency.

The best APIs come from learnings (e.g. jQuery => querySelector()) and the worst come from standards groups inventing (e.g. Enterprise JavaBeans).

Prototyping

If you aren’t prototyping, and getting many of those prototypes in front of customers, you aren’t going to deliver enough randomness.

The Web is a great way to deliver these prototypes, as the only code that is required to be on the users device is the generic web platform itself.

This doesn’t mean that you can’t do any of this work on native platforms, and indeed you should have a plan to do just this. It may even involve the app being a platform that can run various experiments.

UI Consistency

UI consistency is important for user success. If a user comes to your product for the first time and is able to do a lot without thinking, because you follow similar patterns, that is a great thing.

So, if you are building a new niche e-commerce company, you may not want to go totally hog wild on the checkout flow, and instead work within the boundaries. The downside is that you may not create enough activation energy to get out of the local maxima of that world.

J Curves

Whenever you put out a large change in the design of your product you often see a J curve effect [https://en.wikipedia.org/wiki/J_curve] where metrics dip as users work out the differences and re-program their habits.

As you watch the metrics head downward it is hard to know if you are just in a J curve that will bend up and beyond, or if things are just broken. Thus, you need to be able to test long enough, or have strong enough faith, to pull through to the other side.


Companies

The annealing effects aren’t just for products, they can apply to companies too. When a company is in an early phase there should be a lot of randomness as you try to find product market fit. Then as you grow and find a business model you will naturally slow down.

If you are fortunate enough to be successful the innovators dilemma will kick in and you will be fighting to add randomness which will often seem at odds with the cash cow.

If you stop adding randomness you are destined to stay at the local maxima and depending on how it compares to the rest of the ecosystem that may be OK for some time, but eventually the landscape may change enough that you are washed out by a competitor that found another, higher mountain top that enticed customers.

To combat this you need to constant add back randomness, and keep moving in the wrong direction to look for a larger peak. This will feel painful though. It may feel like the company isn’t full aligned. Some will take the path down and never make it up, and thus fail. Organizational hierarchies will keep changing and not everyone will like it. The only thing constant is change and this can feel uneasy, especially as it feels like change is accelerating these days.

Understanding simulated annealing has helped me handle this change and understand that even if sometimes you go backwards, you need to agitate and keep trying, else you will be stuck.

Primary Sidebar

Twitter

My Tweets

Recent Posts

  • I have scissors all over my house
  • GenAI: Lessons working with LLMs
  • Generative AI: It’s Time to Get Into First Gear
  • Developer Docs + GenAI = ❤️
  • We keep confusing efficacy for effectiveness

Follow

  • LinkedIn
  • Medium
  • RSS
  • Twitter

Tags

3d Touch 2016 Active Recall Adaptive Design Agile Amazon Echo Android Android Development Apple Application Apps Artificial Intelligence Autocorrect blog Bots Brain Calendar Career Advice Cloud Computing Coding Cognitive Bias Commerce Communication Companies Conference Consciousness Cooking Cricket Cross Platform Deadline Delivery Design Desktop Developer Advocacy Developer Experience Developer Platform Developer Productivity Developer Relations Developers Developer Tools Development Distributed Teams Documentation DX Ecosystem Education Energy Engineering Engineering Mangement Entrepreneurship Exercise Family Fitness Founders Future GenAI Gender Equality Google Google Developer Google IO Habits Health HR Integrations JavaScript Jobs Jquery Kids Stories Kotlin Language Leadership Learning Lottery Machine Learning Management Messaging Metrics Micro Learning Microservices Microsoft Mobile Mobile App Development Mobile Apps Mobile Web Moving On NPM Open Source Organization Organization Design Pair Programming Paren Parenting Path Performance Platform Platform Thinking Politics Product Design Product Development Productivity Product Management Product Metrics Programming Progress Progressive Enhancement Progressive Web App Project Management Psychology Push Notifications pwa QA Rails React Reactive Remix Remote Working Resilience Ruby on Rails Screentime Self Improvement Service Worker Sharing Economy Shipping Shopify Short Story Silicon Valley Slack Software Software Development Spaced Repetition Speaking Startup Steve Jobs Study Teaching Team Building Tech Tech Ecosystems Technical Writing Technology Tools Transportation TV Series Twitter Typescript Uber UI Unknown User Experience User Testing UX vitals Voice Walmart Web Web Components Web Development Web Extensions Web Frameworks Web Performance Web Platform WWDC Yarn

Subscribe via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Archives

  • February 2023
  • January 2023
  • September 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • November 2021
  • August 2021
  • July 2021
  • February 2021
  • January 2021
  • May 2020
  • April 2020
  • October 2019
  • August 2019
  • July 2019
  • June 2019
  • April 2019
  • March 2019
  • January 2019
  • October 2018
  • August 2018
  • July 2018
  • May 2018
  • February 2018
  • December 2017
  • November 2017
  • September 2017
  • August 2017
  • July 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012

Search

Subscribe

RSS feed RSS - Posts

The right thing to do, is the right thing to do.

The right thing to do, is the right thing to do.

Dion Almaer

Copyright © 2023 · Log in

 

Loading Comments...