this post was submitted on 06 Jan 2025
28 points (100.0% liked)
Anime
2056 readers
258 users here now
This community is the place to discuss and ask questions about anime, anime news, and related topics.
Currently airing show discussion threads are created by our resident bot, rikka@ani.social. If it doesn't make a thread for an episode that you want to discuss, see the user guide on the wiki for instructions on how to ask rikka to make a thread for you to use.
Check out our wiki to find:
- Episode Discussion Thread Index
- Weekly Discussion Thread Index
- Bot User Guide
- List of shows currently monitored by the bot
Rules
More complete rules on the wiki.
- Posts must relate to anime or similar (donghua, etc.)
- Discussion threads for currently airing media must be made by the bot. If there isn't a discussion thread made for a piece of media you want to discuss, then request it via pm.
- Ensure that all series spoilers are tagged. See here for details.
- Memes should be directed toward !animemes@ani.social (or similar) instead of this community
- Do not post explicitly NSFW material. Please use your best judgement when marking lewd material as NSFW, unmarked material risks being removed.
- Please redirect discussion of piracy towards a more appropriate community
- Any clips from currently airing shows cannot include content from episodes released within the past 7 days.
- All posts and comments must adhere to the ani.social Terms of Use
- In general, keep things civil and avoid attacking other individuals.
Related General Communities
- !animemes@ani.social
- !anime_irl@ani.social
- !avid@ani.social - Videos
- !animewallpapers@ani.social
- !manga@ani.social
- !lightnovels@ani.social
- !anime@lemmy.eco.br (Brazil community)
- !anime_es@ani.social (Spanish language community)
- !aum@ani.social (Myanmar community)
- Megathread of other communities on the fediverse maintained by @MentalEdge@sopuli.xyz
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I am keeping this post very brief as I am really not feeling very well at the moment. So, here are some super brief impressions on what I watched this past week:
Just as a meta aside, I have been toying around with stuff for future versions of the voting stuff we just did for the awards and the async nature of web stuff is really breaking my brain. I am so used to writing scripts and stuff for work that just runs a bunch of data cleaning and analysis sequentially and I sit there while it thinks until it spits out the results.
That kind of thing just doesn't work when you try to do things in a browser without making you constantly think that things are broken. Making this issue worse is that one of the api's I am trying to integrate (animethemes.moe) is pretty slow to respond, usually taking ~0.5-1 second per query. So, I am being forced to learn async stuff and I kind of hate it...
There's some things you can't really avoid dealing with that stuff for, but if it doesn't really need to be a dynamic interaction with the service, you may be able to just write a script that runs on your server (either once or periodically) to download what you need as a batch, and then serve static results based on that to your users. It's not only easier to implement when you can use that technique, but the UX is often better that way too...
I remember beating my head against the wall working through the details of Promises in JS a couple years ago when I needed to figure out how to trigger certain pieces of logic only after all of a large batch of slow, dynamic results were fetched -- which the user would often want to interrupt and adjust as partial results came in... so, I know what you mean.
Yeah, I think this is what I am going to do for the most part. Especially when dealing with the slow api responses, I can just make all the requests in a background script and save what I need to a local database. It's just text at the end of the day, so even a couple thousand entries is nothing.
Haven't really gotten a handle on these yet. I have almost exclusively worked with python and R in the past, so dipping a toe into JS has been challenging. I haven't gotten too far into frontend stuff yet, but think I might try to just avoid it as much as possible through flask+htmx. Some JS is going to be unavoidable though I think since I do want certain things to be interactable.
You guys have just reminded me why I no longer try to do any kind of website work. 🙄 😭