What is Nostr?
Obsurveyor /
npub1ezl…y563
2025-01-04 15:21:16
in reply to nevent1q…wp2p

Obsurveyor on Nostr: nprofile1q…dj2mx nprofile1q…9kksy That's always been more of a code smell to me. ...

nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpq4yqjkzqkgv4a27egvq5xmh2ravemytg9g5kldqeqfts92uvh90sqkdj2mx (nprofile…j2mx) nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpq7yr7pmc0a3h7a0ykx5d04j0zdc7js0mksy8ht7wvehwpht6wh83q89kksy (nprofile…kksy) That's always been more of a code smell to me. Now you're embedding nearly invisible logic inside your algorithm which isn't fun to untangle in the future. Add a loop and the bool changing a lot and it can get downright nightmarish. Of course, sometimes this is necessary for optimization.

You don't have to include the casts within your mathematical statements either:

c = bool as int
d = bool as int

a += c * d * b

Expresses intent, keeps your math the way you want it. 😁
Author Public Key
npub1ezlqxk4qjsyvwkq9ashhu5fgcsf886c2tt2kr5j3pp4jwpm96hfq63y563