One of the websites I manage is sports related and heavily data-driven.

And there is a great and wonderful spectrum of sex and gender in the world that is to be celebrated.

I still used a boolean to denote a person's sex, which for this application is a binary distinction.

At my heart however, I am a child, so I'll let you guess what 1 and 0 each represents.

#bool #boolean

[Перевод] Маленький bool Дума

Должен признать, у меня есть некая особая любовь к классическому DOOM . Несмотря на то, что игре уже 31 год, в нее все еще весело играть самому (хотя и выходит у меня так себе) или просто смотреть на то, как другие в нее играют (вот в этом я показываю себя лучше); и поскольку исходный код игры открыт, ей можно наслаждаться на любой современной платформе — ПК, смартфон, камера , осциллоскоп — да и вообще на любой вещи, которая придет вам в голову. В результате чего, благодаря ряду обстоятельств, я оказался меинтейнером нескольких связанных с DOOM пакетов в Fedora Linux. Итак, за несколько месяцев до нового релиза, проект Fedora Linux осуществляет массовую сборку всех пакетов. Это имеет несколько преимуществ — позволяет убедиться в совместимости ABI, обновить статически линкуемые зависимости, использовать новые оптимизации компилятора и так далее. Как бы то ни было, с приближением релиза Fedora Linux 42 в середине апреля, пришло время для массовой пересборки, и как часто бывает, не все пакеты выжили. Одним из пакетов, которые не удалось собрать оказался chocolate-doom .

https://habr.com/ru/companies/beget/articles/877984/

#doom #c #assembler #bool

Маленький bool Дума

Должен признать, у меня есть некая особая любовь к классическому DOOM . Несмотря на то, что игре уже 31 год, в нее все еще весело играть самому (хотя и выходит у меня так...

Хабр

I can never remember the name in de Morgan’s law.

»You invert that with whatsisname … Morgana’s rule«

#Bool #boolean #DeMorgan #Morgana
https://en.wikipedia.org/wiki/De_Morgan%27s_laws

De Morgan's laws - Wikipedia

I wonder if anyone has seriously thought about adding some kind of namespacing to the C preprocessor.

for example, it would be nice if you could say

#namespace FOO
#include "foo.h"
#endnamespace

and then all the preprocessor defines from foo.h are brought into your file with names like FOO###BOOL

#c #preprocessor #cpreprocessor #cpp #wg14

Word Search Puzzle 972

Word List : #faute #reak #meraline #enabler #quashee #knurlin #amyloids #carrycot #disbar #tainted #bool #redries #crude #turves #bkpr #main #medias #dioxan

Kara Finance

Python Data Types:

Floats can behave unpredictably.
Pycode
10 * 0.1 * 3 == 3 #bool
0.1 * 3 * 10 == 3 #bool
0.1 * 3 == 0.3 #bool
0.1 * 3 # float

The last one gives a float instead of Boolean. Excellent explanation of this here:
http://0.30000000000000004.com
#Datascience@Hertie_DSLab
#Hertie Data science lab summer school

Floating Point Math

In Java, we can use statements like if-then/if-then-else to control what portions of the code are executed.

Our conditions can be simple tests or they can be chains of tests strung together to make one overall boolean result.
#java #if #discussion #bool

http://codingchica.com/2023/06/29/if-only-lets-talk-conditions/

If only! Let’s Talk Conditions

In Java, we can use statements like the following to control what portions of the code are executed: – if-then – if-then-else Our conditions can be simple tests or they can be chains of…

Coding Chica
各言語におけるtrue/falseまとめ - 昼メシ物語

たとえば PHP で、 if ($hoge) { ... } とか書いてあったら、 $hoge がどんな値のときに if の中身が実行されるのか即答できますか。 こういう書き方は多くの言語で可能ですが、言語によって何が真で何が偽になるのかが異なるので、それぞれまとめてみました。 C言語 C言語には bool 型が無い。 0 (int) だけが偽となり、それ以外はすべて真となる。 NULL 定数は stddef.h で以下のように ((void*)0) と定義されているため、偽値として使える。 意見が分かれそうなところですが、個人的にはNULLを偽値として使用するは好きじゃないです。 #ifnd…

Hatena Blog