Mastodon: @canpolat@hachyderm.io

  • 12 Posts
  • 34 Comments
Joined 1 year ago
cake
Cake day: June 20th, 2023

help-circle

  • I mainly develop in C#, and I agree that having to write so much boiler plate for type safety is really boring. C# is not perfect either (it doesn’t have discriminated unions, etc.) but at least it gives type safety out of the box.

    However, in general, I think enums are widely misused. I see a lot of cases where they should have been classes with a factory, but ended up being enums with a lot of static functions and switch statements.





  • canpolat@programming.devtoSelfhosted@lemmy.worldPlex for books?
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    8
    ·
    7 months ago

    I know you said “self hosted”, but if you are interested in an Android app, Google Play Books does most of what you want, I think. You can upload your books, and read them on any device (with offline capabilities). But this is the Self Hosted community, so I will show myself out.















  • canpolat@programming.devtoLinux@lemmy.mlDocumenting commands # or $ before sudo?
    link
    fedilink
    English
    arrow-up
    13
    arrow-down
    1
    ·
    edit-2
    1 year ago

    I don’t work much with Linux systems these days, but I would vote for $ sudo over #. Two reasons:

    1. It’s easy to overlook the prompt. That part is basically “some characters before the actual command”, so I don’t normally pay attention to it.
    2. # is also used for comments. I think it would be confusing to use the same character for two wildly different things.