sisyphean

joined 1 year ago
MODERATOR OF
[–] sisyphean 16 points 1 year ago* (last edited 1 year ago) (1 children)

I absolutely agree. But:

  • sometimes you need to modify existing code and you can't add the types necessary without a giant refactoring
  • you can't express units with types in:
    • JSON/YAML object keys
    • XML tag or attribute names
    • environment variable names
    • CLI switch names
    • database column names
    • HTTP query parameters
    • programming languages without a strong type system

Obviously as a Hungarian I have a soft spot for Hungarian notation :) But in these cases I think it's warranted.

[–] sisyphean 11 points 1 year ago* (last edited 1 year ago)

From now on, if anyone needs an example of why Lemmy/kbin are better than Reddit, we can link to this thread :) It was nice to have a respectful debate with someone without it devolving into an exchange of simplistic quips.

[–] sisyphean 5 points 1 year ago

I understand what you mean, and I even agree with it, but just to be a little pedantic, variable names are code, or at least they are more code than comments or docs.

But yes, encoding units into the type system is a much better solution. It doesn't work however for config options, environment variables or CLI switches.

[–] sisyphean 1 points 1 year ago

It's too entertaining actually! I'm wasting a lot of time here...

[–] sisyphean 1 points 1 year ago

But there are also several pages that list all existing instances to help new users discover them. It would be easy to take this list and autoremove all comments that mention them.

[–] sisyphean 1 points 1 year ago

Maybe, but maybe not. My prediction is that there will be extremely popular communities that will be basically like the biggest subreddits, but you will also be able to have a nice relaxed conversation in your home instance's smaller comms. So you'll get the best of both worlds!

[–] sisyphean 11 points 1 year ago* (last edited 1 year ago)

Related: Making Wrong Code Look Wrong

TL;DR: there is good and bad Hungarian notation. Encoding types (like string or int) in variable names is bad. Encoding information that cannot be expressed in the type system is good. (Though with the development of type systems, more and more of those concepts can be moved into the types, keeping variable names clean.)

But as a Hungarian, I'm obviously a little biased :)

[–] sisyphean 12 points 1 year ago (3 children)

I'm also biased.

But:

  • Celsius is easy to understand, even for children: water freezes at 0°C, boils at 100°C.
  • It is understood by more people in the world.
  • If the US used Celsius, understanding scientific papers and data would be easier for common people.
  • In Celsius, the range of livable temperatures for humans (-20 to 40°C) still gives plenty of precision. Additionally, each step in the Celsius scale corresponds to a bigger change in "feel" of the temperature, which leads to a more intuitive understanding of temperature changes.
[–] sisyphean 2 points 1 year ago

This is really interesting! I'll try it in my Midjourney prompts.

[–] sisyphean 2 points 1 year ago* (last edited 1 year ago) (1 children)

Haha thanks, but the original idea is from @goodside on Twitter, I just screenshotted his tweet and harvested the upvotes :D

[–] sisyphean 8 points 1 year ago (5 children)

Ha! You can't just say "fight me" and then disappear! What are your arguments?

view more: ‹ prev next ›