Skip to content

Instantly share code, notes, and snippets.

@ceddlyburge
Created February 17, 2022 13:17
Show Gist options
  • Save ceddlyburge/ce8ca7f3aced0787ae03ba119ab480fb to your computer and use it in GitHub Desktop.
Save ceddlyburge/ce8ca7f3aced0787ae03ba119ab480fb to your computer and use it in GitHub Desktop.
public double CalculateDesignTurbulence(
double windSpeed,
double designTurbulence
double designTurbulenceShape)
{
return
designTurbulence
*
(
(
(
(15 / windSpeed)
+
designTurbulenceShape
)
/
(1 + designTurbulenceShape)
)
+
(
(1.28 / windSpeed)
* 1.44
)
);
}
@ceddlyburge
Copy link
Author

Part of We should format code on demand blog post

Currently our source code is saved to disk already formatted, and our editors display this saved format. There are many auto formatting tools, but the results always get saved back to disk. What happens if we save to a standardised text representation, and instead format code on demand, in the editor?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment