Christopher Wood is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Weird programming habit after a painful experience aeons ago: always putting the rvalue on the left in a C equality test: because 4==x is a valid statement whereas 4=x fails to compile. (Bitten by writing if x=4 instead of if x==4 in prehistoric times)
Christopher Wood @cwood

@hattiecat It's not that weird, I've seen this as a piece of advice in a number of places. (But rubocop likes the rvalue on the right, at any rate.)

· Web · 0 · 0
@cwood These days compilers should warn you but I never shook the habit.