DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Discussion on: Software Performance – A Pragmatic Guide

Collapse
 
jamesdengel profile image
James dengel

I feel what this pragmatic guide is missing is the reason of optimising code.

  1. No one will run code that does not do what we require it it do. So the right result from the code is priority number 1.
  2. Does it give the right result in a time scale in which the function gives benefit? Reloading a webpage < 1 second Weather forecast for tomorrow < a few hours

Keep the task in mind always :)

It’s an effective bar for optimisation

Collapse
 
hafez profile image
Hafez Author

Good point!

I'm not sure what you mean by "Weather forecast tomorrow < a few hours", though.

Collapse
 
jamesdengel profile image
James dengel

Well if you want to predict the weather tomorrow but it’s going to take you till tomorrow to predict it, then it’s pretty useless.