• 1 Post
  • 22 Comments
Joined 1 year ago
cake
Cake day: August 15th, 2023

help-circle
  • designing a vote weighting system that favors similar instances

    Would make the whole thing even worse, as I could create several new instances with 10 bot users each, then hammer out the votes.

    The entire problem is that you can’t trace back each vote to a genuine user. It would be bad in case of fake instances that create 100 user accounts and upvote/downvote stuff, but you can ban the instance. It would be a disaster if a big instance creates fake votes (like lemmy.world suddenly adds 1000 fake users and uses them to manipulate other instances, if votes were anonymous you couldn’t check if it’s genuine lemmy.world users or fake accounts).



  • The problem isn’t keeping votes anonymous, that’s easy. The problem is bots/spam. You could just create a new instance and then upvote a post from another instance a thousand times. If the votes are anonymous for the other instance it’s tough to say if they are genuine users or just bots.

    That’s the main issue here, when votes are anonymous you could easily just spam votes with no way to trace it back. If it’s a rogue instance then fine, you can ban the whole instance. But imagine if lemmy.world starts using fake votes in the background towards other instances.




  • I was rather happy with Netflix for nearly a decade. The price was reasonable and family members could also watch. When I moved out I upgraded to the 4K package (split 3 ways between family members) and it was fine at first.

    But there were several caveats:

    • 4K only works on TVs, on my 1440p monitor I could only watch 1080p. Sucked, but it’s not too bad
    • Price kept going up, in the end it was 18€ a month. That’s okay split between 3 people, but otherwise far too much for what is offered
    • Series that I liked kept getting cancelled, while trash was getting renewed or they messed up the later seasons (Looking at you, The Witcher…)
    • They cracked down on password sharing, suddenly you need to be in the same WiFi to count as home or you need a travel code (limited to 2 a month and only for 2 weeks each), so if you regularly move between places it’s a no-go for a service you pay for

    I finally cancelled it, sick of their shit. Which also has the benefit of no longer having to take care of the account for the family. Unfortunately my dad accidentally took over the account (while trying to create a new one) and keeps paying the 4K price (I suggested at least going down to 1080p as the quality is shit either way). Simply idiotic :-/

    Personally I tried out Real Debrid and it has been pretty alright so far. The quality is better too, which is ridiculous.





  • Git is mainly tracking and saving changes, which works great for text, but not that well for data (especially binary). You won’t lose your data, but the Git repo will keep growing too fast.

    The big question here is: How often does the data change? If you just use it as a convenient format and rarely change things, it should be fine. Though as mentioned: It might make sense to export to SQL before putting it in Git then. As long as the size is reasonable too (Not storing gigabytes of data).

    Alternatives can be other sync services (Dropbox, Seafile, …) to keep your Git repo lean or even better: Set up a SQL server so the data is always in the same spot. Of course that depends on if you have internet everywhere you work (but you probably do).


  • You can’t trust the result if you only do one pass, because the result could be compromised. The entire point of the first pass is a simple: Safe, yes or no? And only when it’s safe do you go for the actual result (which might be used somewhere else).

    If you try to encode the entire checking + prompt into one request then it might be possible to just break out of that and deliver a bad result either way.

    Overall though it’s insanity to use a LLM with user input where the result can influence other users. Someone will always find a way to break any protections you’re trying to apply.







  • I’ve worked in a company that used linear code most of the time. And at first it felt really easy to read and work with. If you wanted to know what happened, just jump to the entry point, then read over the next 200 lines of code, done. No events, no jumping around between 10 different interfaces, it worked at first.

    But over time it became a total mess. A new feature gets added, now those 200 lines get another if/else at several spots, turns into 250 lines. Then a new option is added that needs to be used for several spots, 300 lines. 400 lines. 500 lines… things just escalate.

    You can’t test that function and bugs sneak in far too easily. If you want to split it up later into new functions it’s going to be a major hassle. There also was no dependency injection or using interfaces, other classes were often directly called or instantiated on the spot. Code reuse was spotty and the reused functions often got 5+ parameters for different behavior.

    It was horror after a while.

    The company I work for now uses interfaces, dependency injection, unit tests, but all the way down a function might still have 50 lines tops or so. It’s slightly tougher to find out where things happen, but then much easier to work with. You need a certain balance either way.


  • Vlyn@lemmy.ziptoProgramming@programming.dev...
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    This would actually work well with a tag system. Like you have predefined content warning tags. “Porn”, “Nudity”, “Gore”, “Violence”, “Sexual assault”, or whatever might be in the text/image/video. Users could then filter tags in their settings.

    Defining the tags and enforcing them in communities would probably be the biggest hurdle.


  • Vlyn@lemmy.ziptoProgramming@programming.devThe Worst Programmer I Know
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    2
    ·
    1 year ago

    You never heard of pair programming?

    With juniors Tim would pretty much be training them and nudging them on to write better code.

    With seniors, like the short article says, it’s more a sparring match, trying to find the best solution. You also find a lot of edge cases when someone else works with you together.

    I haven’t been in a company yet where they have a full time floating position for pair programming, but if it’s a senior doing it I can see how it’s very beneficial for product quality.



  • Yeah, my experience was mostly from that time. For example with an original Galaxy S (custom ROM + overclocking).

    I also had a OnePlus One, which was unlocked of course, but the key combination to get to the bootloader was super unreliable or straight up didn’t work at times.

    Funny thing is: Now that it’s easier to install a custom ROM I’ve just been running stock for years.