top | item 45775677

(no title)

ape4 | 4 months ago

In a real application meaningful names are nearly always possible, eg:

    const pi = 3.1415926
    const 2pi = 2 * pi
    const circumference = 2pi * radius

discuss

order

tmtvl|4 months ago

Calling tau 2pi is the most cursed thing I've seen all day. Appropriate for Halloween.

smrq|4 months ago

If you call a variable tau in production code then you're being overly cute. I know what it means, because I watch math YouTube for fun, but $future_maintainer in all likelihood won't.

catlifeonmars|4 months ago

Agree in real life you can come up with meaningful names (and should when the names are used far away from the point of assignment), but it doesn’t make sense for GPs example, where the whole point was to talk about assignments in the abstract.