🔥 Have a function that gets used in about 100 places that you need to behave slightly differently for some new code? Add an optional flag.

legacy_coder's tweet image. 🔥 Have a function that gets used in about 100 places that you need to behave slightly differently for some new code? Add an optional flag.

I like the simplicity of the opening `echo`. So many would have gone for the overly complex `sprintf` when all you actually need is a string


Yeah I really believe in YAGNI. If we ever need to customize it it's easy to add another flag.


United States 趨勢
Loading...

Something went wrong.


Something went wrong.