Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)TR
subversive_dev @lemmy.ml

I sail the high seas of the Lemmyverse, posting snarky + Lefty comments

Posts 0
Comments 90
Any dev here ? Building an image scroller fediverse client
  • You're welcome!

    So if you didn't care about having to wait for the video to buffer on every scroll, it becomes an easier problem. I kind of think that defeats the purpose of a tiktok-style interface though.

    I agree that you wouldn't necessarily need to build a new algorithm, but like I said, it's part of the smooth scrolling magic

  • Any dev here ? Building an image scroller fediverse client
  • I'm a dev but not very good at mobile.

    I can promise you that a lot of engineering work went into making the tiktok scrolling experience so smooth. Part of the trick is having a good enough algorithm that the user wants to watch the majority of served videos.

    Another huge part of it is having lightning fast content distribution and aggressive "prefetching" of the next videos in the feed.

    I don't want to discourage you but I also don't want you to be caught off guard by the difficulty. Do you want to make this bad enough to give it your nights and weekends for a year?

  • A picture speaks more than enough words
  • Rail is fundamentally superior to roads + cars at an engineering level.

    All at the same time:

    • Rail has a smaller footprint

    • Rail moves multiple times more people or cargo per hour

    • Rail has multiple times more fuel efficiency

    The fact that USA's policy has been designed to favor cars only makes them more 'practical' than rail if you consider political constraints more binding than physics constraints.

    I'll grant that trucks have tighter turning radii and maximum operating grade. If we truly only used them when those characteristics are needed THAT would be 'practical'

  • Databases and their real world use examples
  • ELI5: a database is the "memory" of a program.

    Every piece of data that any software uses almost certainly comes from and goes to multiple databases.

    Once the data is stored, you can execute "queries" to have powerful access to update many records at a time, read particular records based on their relationship to other records, and so much more.

    Your bank balances, your purchase history, your emails, every part of your digital life is almost certainly spread across a constellation of databases.

    Bonus Fediverse content:

    Lemmy itself uses the Postgres database extensively. Posts, users, comments, votes and more are all individually stored in the database.

    Mastodon also uses Postgres. If a post goes up on Lemmy, and a Mastodon server is federated with it, the Lemmy server will send out a HTTP request to the Mastodon server containing the contents of the post. The Mastodon server will use this information to write its own record of the post in its own database.

    Regarding your question about VMs: You can run a database inside a VM, or give the VM access to an outside database via queries, or both! You might run SQLlite (a small and excellent embedded database) on the VM to track its local state, while also running queries against a large postgres database to synchronize with other services in the cluster.

  • my wife is pregnant and all I feel is worried
  • They say a woman becomes a mother when she first feels the baby stirring in the womb, but a man only becomes a father once he sees the baby for the first time.

    I'm not a bio parent myself, but if that stereotype is true I think you should expect some emotional discordance during this phase.

    I think you aren't wrong to be worried, but I think if you focused your mind and energy on nesting and getting excited with your wife, it would help bridge the gap.

    I'm 100% sure biology will win out and you will be changed forever when the baby does come

  • I'm experiencing an anyeurism
  • "useful and convenient"....

    How about deadly, destructive, and isolating?

    Or we could just ignore the corrupt alliance of industry colluding to eliminate other transportation options and wax poetic about the Free Market and Rugged Individualism, right?