#Constants

Python PeakPythonPeak
2025-12-27

Magic Number Explosion

Hardcoded Numbers EVERYWHERE?! Python Magic Number Hell! πŸ”’

Why use constants when you can hardcode values everywhere? This code is unmaintainable!

🚫 What NOT to do:
β€’ Hardcoded magic numbers
β€’ No named constants
β€’ Unclear number meanings

βœ… The right way: Use named constants or enums

Readable code uses names! This Code Crimes shows why constants matter.

...

youtube.com/watch?v=TY2DLNy9EPw

Ethan Longhenrydeverbovitae
2025-06-02

Monday Miscellany!

This week:
- as news
- 20 and '
- attitudes about
- readings
-
- Book reviews: 'ran in context,

Please read, share, and subscribe!

open.substack.com/pub/deverbov

2025-05-21

Ever wonder why constants like 'c' or 'G' have such specific, weird values? It's not deep cosmic magic! Our everyday units (meters, kg, seconds) are arbitrary human inventions that don't inherently match nature's true proportions. Physical constants are simply the crucial scaling factors that harmonize our man-made SI units with the universe's actual way of working. That's why they "vanish" (become 1) in "natural" unit systems – the scaling job is then done by the unit definition itself!

#Physics #Constants #ScienceExplained #RethinkPhysics

2025-02-20

Returning a Constant Value in IBM Db2 SELECT Statements
Master IBM Db2 constant values for cleaner, more portable SQL code! Learn how to handle string literals & aliases effectively, preventing errors & ensuring consistent query behavior.
tech-champion.com/database/db2

Ζ§ΖΏΡ¦Ο‚Ι›β™Ρ¦ΰ¨ΉΡ€Κžspacemagick
2025-02-19

Have you ever wondered what the first million digits of π↑↑4 might be?
Well, wonder no more...
ankokudan.org/d/d.htm?mathlist

M Douglas Wraymdwray@mindly.social
2024-07-31

@BathysphereHat - Bucky Fuller posed a fascinating question once: where does God round off pi when he's making a bubble? Miss you Bucky!

#pi #constants #fuller #bucky #rounding

Chicken Joechickenjoe
2024-06-24

Hello again.

After a long break I come back to learn new languages.

I've started to learn . For this way I will use "Elixir in Action" book and .

I will share news on and on , may be I can find people who interested in learning new languages too.

github.com/DanteOnline/blog-po - this is first code from the book.

Today I learned about , , (elixir shell),

Happy coding :underheart:

Knowledge Zonekzoneind@mstdn.social
2024-02-19

How many #Constants define our #Universe? : Medium

Introducing #Gemini 1.5, Google's next-generation #AI model : Google

The #Elusive Origin of #Zero : Sci Am

Check our latest #KnowledgeLinks

knowledgezone.co.in/resources/

Matt WillemsenNonog@fedibird.com
2023-08-31

Scientists Have Made a Discovery That Could Change Our Understanding of the Universe
Scientists have revealed that fundamental constants, previously thought to be unchanging, have a range where they can vary. This variability is pivotal for maintaining the necessary viscosity for life processes within cells.
scitechdaily.com/scientists-ha #physics #FluidMechanics #fundamental #constants #variability

@cenbe

Not sure exactly what you're getting at; there are various approaches. If you want #symbolic #constants, use the enum module/base class, and you can have constants of any flavour you like, protected from assignment. It's in the standard library and highly recommended.

If, on the other hand, you're trying to protect the user from themselves, you can create an #object that represents a #value but which resists changing value - but you can't prevent the user assigning to a name.

[...]

2023-07-21

"After two centuries of improved precision, recent measurements of G are troubling. A handful of labs around the world have turned up values that disagree (SN Online: 4/30/15). The scattered values could be a sign of trouble with the measurement techniques among various groups, or there might be a more intriguing aspect."

sciencenews.org/article/newton

#Physics #Constants #Gravity #Newton #Measurements

2023-07-10

Transcendental numbers cannot be expressed by a finite algebraic equation. They include famous constants such as pi and e and most irrational numbers. Transcendental numbers have challenged mathematicians for centuries, and their properties and applications are still being explored. Transcendental numbers are the hidden gems of mathematics.

#TranscendentalNumbers #Mathematics #Constants quantamagazine.org/recounting-

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst