Join Notes

A batch of the best highlights from what Tristan's read, daily.

Nothing is less safe than playing it safe and nothing guarantees loss like trying to avoid it.

The Behavioral Investor

Daniel Crosby

Boolean logic is hard enough to understand without having to see it in the context of an if or while statement. Extract functions that explain the intent of the conditional. For example:    if (shouldBeDeleted(timer)) is preferable to Click here to view code image    if (timer.hasExpired() && !timer.isRecurrent())

Clean Code

Robert C. Martin

The [fallacy](https://www.logicalfallacies.org/) of equivocation uses misleading terms of more than one meaning without clarifying which definition is intended in the scenario. Example of Equivocation • Philosophy students are taught how to argue, but shouldn't we teach them something more helpful? After all there are already a lot of arguments and conflicts in the world. The term argue/argument is being used with different meanings. • Claiming someone is unethical because they have bad worth ethics. The word unethical/ethics have two different meanings in this conflict.

Equivocation

logicalfallacies.org

...catch up on these, and many more highlights