A Rant about Front-end Development
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    Now 100%

    I've been forced to do react for years and I still don't like or understand it. Most times plain JavaScript is easier and quicker to write and quite maintainable if people can resist the urge to take the piss with nested anonymous functions.

    I honestly can't get my head around the idea that people can hit the ground running with react, but can't write unabstracted JavaScript. It's like a MotoGP rider not being able to ride a push bike.

    8
  • I made a website that lets you use ranked choice voting in a mock UK General Election to explain how it works.
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    Now 100%

    Sorry about that. Only way I could think to stop spam was to use IP as unique id. Try disconnecting from WiFi.

    Edit: if you've already voted, it overwrites that vote with the new one. This is just the quickest laziest way of stopping someone using a bot to skew the results.

    3
  • I made a website that lets you use ranked choice voting in a mock UK General Election to explain how it works.
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    Now 100%

    The first step in my mental roadmap for making this more than a toy is going to be user accounts and magic links, so small orgs can manually vet people for local party branches and meetings. I'll have to look into TLSNotary.

    4
  • https://publicslate.co.uk/

    I don't know if this is too self-promotey to put in the more serious subs so I'm putting it here. I need to blag being able to do the django framework so I spent a week fannying about with it to make this. Feel free to mess about with it, give feedback or repost it on reddit or any other lemmy knock-offs.

    61
    19
    I Will Fucking Piledrive You If You Mention AI Again — Ludicity
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    Now 100%

    it's pretty good for things that I can eye scan and verify that's what I would have typed anyway. But I've found it suggesting things I wouldn't remotely permit to things that are "sort of" correct.

    Yeah. I haven't bothered with it much but the best use I can see of it is just rubber ducking.

    Last time I used it was to asked how to change contrast in a numpy image. It said to multiply each channel by contrast. (I don't even think this is right and it should be ((original value-128) * contrast) + 128) not original value * contrast as it suggested), but it did remind me I can just run operations on colour channels.

    Wait what's my point again? Oh yeah, don't trust anyone that can't tell you what the output is supposed to do.

    4
  • What's the best torrent client these days?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    Now 100%

    It depends what you want to do with it. Webtorrent-desktop has been my go-to for a while now. It's great for videos as it'll stream mp4 in the client or open mkv in VLC within a few seconds of starting a download.

    1
  • Wells Fargo fires employees for utilising down time.
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    Now 90%

    I'm not even mad at the employers to be fair. The problem is that so many jobs are just busy-work that exists because as a society we can't imagine decoupling labour from subjugation.

    9
  • Wells Fargo fires employees for utilising down time.
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    Now 83%

    The article doesn't say anything about productivity or targets. They got as much done as someone who manually wiggles the mouse while thinking instead of going for a walk while thinking.

    16
  • Wells Fargo fires employees for utilising down time.
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    Now 96%

    Notice how this doesn't even have anything to do with productivity. These people were fired purely for having the gall to not respect office hours regardless of the completion of tasks.

    80
  • Is it just me or do Lemmy communities tend to skew left wing? Why might this be?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    Now 96%

    There are sections of both the right and the left that have anti-authoritarian tendancies.

    The libertarian right tends to view things purely in terms of government over reach, whilst the left tends to view things in terms of the power of capital.

    Leftists saw Facebook pushing propaganda for the highest bidder, Reddit trying to be safe to sell to investors and twitter basically becoming a project to reflect Elon Musk's personal opinions.

    Out of that came a bunch of attempts at creating new social networks. The right wing attempts were not cognisant that the aforementioned were the natural result of trying to get rich off it, while the left attempted to make it impossible to get into that position.

    26
  • Why don't electric car manufacurers put solar panels on the car roofs?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    Now 92%

    Solar panels on cars are thought of the wrong way. The responses in this thread really demonstrate that.

    It's true that they're kind of pointless on EVs, because they're never going to supply enough power to not need a proper charge, which makes the panels redundant.

    Where they could be useful is hybrids, sold as something that makes the engine 10-20% more efficient.

    21
  • Where have you never been, but is close to you?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    manicdave
    Now 94%

    Almost went to Stonehenge after visiting family down south. They wanted £60 and wouldn't let us take the dog in.

    You can apparently get in cheaper if you're a member of English Heritage. So we looked online to see if it was a fair deal and what other sites membership grants you.

    Turns out that English Heritage are a bunch of robbing bastards (they literally stole seahenge!) that enclose our historic sites in order to charge money for access to them.

    I won't be visiting if I have to pay them.

    15
  • *This is a question that comes to mind every time I spend a few days focusing on the fediverse. Normally I'm on the microblogging side, but now I have a Lemmy account it might start a proper discussion.* So, to the point, pretty much every fedi platform has similar problems with small servers taking a beating whenever a post goes viral. This ends up costing the server owner a bunch of money trying to keep their server alive while thousands of instances attempt to pull large static files from the original host's post. This recently instigated [this call to action ](https://shlee.fedipress.au/2024/call-to-action-fediverse-media-server/) on this forum. I've never seen the question of torrents answered and it feels like a lot of effort and a bit self entitled to get the ear of fedi software devs to implement torrents as a solution, so I'm putting this here. If media files were made into torrents when a post was being created, an extra object could be added to post objects like ```{... 'torrentcdn': { 'https://imagePathAsKey.jpg': { 'infohash': 'ba618eab...', 'torrentLocation': 'https://directlinkto.torrent', 'webseed': 'https://imagePathAsKey.jpg', ... } } ``` This would not break compatibility as it would just be ignored by anything not looking for a 'torrentcdn' object, yet up to date instances could use this instead of directly pulling the static files. This would benefit instances as when a post goes viral, the load would be distributed amongst all instances attempting to download the file. This could also benefit clients and instances as larger files like short videos could be distributed using webtorrent, massively reducing the load on server when many people are watching the same video. Thoughts?

    84
    20
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearMA
    Now
    6 49

    manicdave

    feddit.uk