3 ms·
>Do you never see code that has global side effects? The answer for modern languages and frameworks is "write pure functions." >Or that is written a particula
by ohaideredevs 7y ago
>Do you never see code that has global side effects?
The answer for modern languages and frameworks is "write pure functions."
>Or that is written a particular way to take advantage of the hardware that it is running on?
Move to service/helper/utility class for that particular hardware or with a name that clarifies it's for that particular hardware.
I find comments to be necessary very rarely. Atm looking at a codebase where they are made to cover up for a lack of desire to think.