dukk

joined 2 years ago
[–] dukk@programming.dev 1 points 2 years ago

Lemmy’s mobile UI is nice. Voyager is just a PWA, and it’s both really smooth and stupidly nice. In my eyes, the spiritual successor of Apollo. I’m not leaving it.

[–] dukk@programming.dev 3 points 2 years ago

What’s with the big and blue username?

[–] dukk@programming.dev -1 points 2 years ago (1 children)

Looks very cool! I’m very comfortable on Voyager, but I checked it out and my initial impressions:

  • Comments take up a LOT of space
  • IMO, comment replies should be shown by default (but obviously should also be in a setting)
  • The Lemmy devs would prefer if you didn’t show account points.
  • IDK if I’d show the name/community of the user above the title
  • Showing the title instead of community at the top when viewing comments would be cool
  • Maybe rename “Explore” to “Search” (or at least make it more obvious how to find search)
  • Maybe add a Markdown toolbar?
  • Reloading posts every time you exit a post makes it feel a bit slow

No app’s perfect from the start, just my two cents. (Maybe I’m getting a little nit-picky? IDK, just my advice.)

[–] dukk@programming.dev 1 points 2 years ago (1 children)

From the README:

Feel free to take a look around. We are not yet taking patches as we still have a little bit of tidying up to do. When we do, there will be a contributor license agreement.

So yeah, looks like there will be a CLA.

[–] dukk@programming.dev 2 points 2 years ago

I personally use them pretty often. They’re not natural to me, I spend a little bit thinking about them, but they’re still decently useful.

[–] dukk@programming.dev 5 points 2 years ago* (last edited 2 years ago) (6 children)

I’ll point to how many functional languages handle it. You create a type Maybe a, where a can be whatever type you wish. The maybe type can either be Just x or Nothing, where x is a value of type a (usually the result). You can’t access the x value through Maybe: if you want to get the value inside the Maybe, you’ll have to handle both a case where we have a value(Just x) and don’t(Nothing). Alternatively, you could just pass this value through, “assuming” you have a value throughout, and return the result in another Maybe, where you’ll either return the result through a Just or a Nothing. These are just some ways we can use Maybe types to completely replace nulls. The biggest benefit is that it forces you to handle the case where Maybe is Nothing: with null, it’s easy to forget. Even in languages like Zig, the Maybe type is present, just hiding under a different guise.

If this explanation didn’t really make sense, that’s fine, perhaps the Rust Book can explain it better. If you’re willing to get your hands dirty with a little bit of Rust, I find this guide to also be quite nice.

TLDR: The Maybe monad is a much better alternative to nulls.

[–] dukk@programming.dev 3 points 2 years ago (1 children)

I thought it was TS/JS too, but the way those braces are below the if statements makes it feel more like C#.

[–] dukk@programming.dev 3 points 2 years ago

To be fair, Tesla Autopilot probably already did that.

[–] dukk@programming.dev 2 points 2 years ago

You’d like the “features” of any car, it’s why they’re features. It’s the tradeoffs that actually matter.

And yeah, it looked cool at first, but that’s really just because of its uniqueness. From an actual design perspective, it just looks…stupid.

[–] dukk@programming.dev 2 points 2 years ago

This is fucking cool. I can imagine the many times this could’ve helped me quite a bit, and honestly even if I didn’t find the function I needed I could still probably hack out a decent implementation in whatever language and actually contribute towards this. In 5-10 years, this could be really useful.

[–] dukk@programming.dev 1 points 2 years ago

Yeah, it’s an Android, the Material You theme makes it easily recognizable.

[–] dukk@programming.dev 2 points 2 years ago

This comment was made by the trombone gang.

view more: ‹ prev next ›