Skip to main content

Implementation of a Boolean toggle function according to the KICS principle

Project description

cursed-toggle

This library is intended to implement a toggle function for Boolean values in a very bad or even the worst and most unmaintainable way, following the KICS (Keep it complicated, specialist) principle.

Preamble

The variable b can be True (1) or False (0). One of the most basic implementation to get a toggle is

f(b) = not b

But this is way too simple and efficient and something cooler looking might be

f(b) = b^1

A trivial linear function is also possible

f(b) = 1 - b

and this sounds like a good start.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cursed_toggle-0.1.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cursed_toggle-0.1.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file cursed_toggle-0.1.0.tar.gz.

File metadata

  • Download URL: cursed_toggle-0.1.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for cursed_toggle-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f590fb8e6ba842a1baf4f3cc322f3780d5d8afc6fe16ba44921d25660ea1400d
MD5 3d0ff69f52f03c24be18779f243d7d45
BLAKE2b-256 4a373e551e571939240fc2a0517fbca0d1bfef73bf12e6d075b40fd0a60350fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for cursed_toggle-0.1.0.tar.gz:

Publisher: cd.yml on kvnglb/cursed-toggle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cursed_toggle-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cursed_toggle-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for cursed_toggle-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43667f4f4aeab7f82b2f08a881582297b5589bc5569a515514c6770a5bac9aa0
MD5 b3ccf494de1f1c5ac5b69fdd5dfbf8f2
BLAKE2b-256 98e7a9c88d3fe9668a89af97c45b8047d23508218b2dbc9d7009a77db18344a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for cursed_toggle-0.1.0-py3-none-any.whl:

Publisher: cd.yml on kvnglb/cursed-toggle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page