Small coffee shop in Alba, Italy

377
71
Me, migrating my code from JavaScript to TypeScript:
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearFU
    fusio
    Now 95%

    this is terrible advise - you should be using unknown. using any you're basically disabling TS and will be under the false assumption that your code is ok while it's most likely missing a lot of runtime checks

    21
  • Me, migrating my code from JavaScript to TypeScript:
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearFU
    fusio
    Now 100%

    using any is actually much worse than using TS, because you're basically telling the compiler "don't help me here".. at least with JS the IDE is gonna help you.. :/

    12
  • And how much do you spend in average per kg?

    10
    6

    Just saw a spectacular display in Zürich yesterday and I'm wondering for how long we will be able to see them. I mean, they are pretty terrible for the environment and the animals.. but they look and feel so good!

    4
    8
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearFU
    Now
    3 47

    fusio

    fusio@ lemmy.world