Page 109 of 235

Re: The Glowfic Constellation

Posted: Fri Oct 28, 2016 7:07 pm
by Timepoof
+1 star

Re: The Glowfic Constellation

Posted: Sat Oct 29, 2016 12:09 am
by Marri
I can do stars xD There are star medals with a plus and minus Image Image or a basic star with no plus or minus Image, feel free to continue to have opinions.

Re: The Glowfic Constellation

Posted: Sat Oct 29, 2016 6:06 am
by pedromvilar
+1 no medals :P

Re: The Glowfic Constellation

Posted: Sat Oct 29, 2016 6:37 am
by Kappa
*photoshops*

Image Image Image
Image Image Image
Image Image Image
Image Image Image
Image Image Image
Image Image Image

I can do more variants/tweaks on this theme if anyone has suggestions

Re: The Glowfic Constellation

Posted: Sat Oct 29, 2016 9:25 am
by Adelene
I suspect the gold is the only one of those that looks okay on both dark and light backgrounds, could somebody maybe check? Or I'll do it when the cat's done napping on my wrist.

Re: The Glowfic Constellation

Posted: Sat Oct 29, 2016 9:33 am
by Kappa
Actually, as far as I can tell, the dark grey and dark blue are the only ones that don't look okay on both. The pale grey is a little weird on the light blue forum background, but the rest are fine both ways.

Re: The Glowfic Constellation

Posted: Sat Oct 29, 2016 1:13 pm
by Marri
Updates:
- Bolding of never-opened posts
- Gold stars instead of hearts
- Fragment caching on views to make loading posts faster

Hopefully that last one improves post view speed... it was terrifying to release, since there's literally no way to fully test locally. It was definitely slow for a bit while the cache warmed, and then for some reason restarting the app made it speed up, and I'm going to be reading about caching all weekend I can already tell :/

Re: The Glowfic Constellation

Posted: Sat Oct 29, 2016 9:21 pm
by Ezra
There are two hard things in computer science. The first one is called "cache invalidation".

Re: The Glowfic Constellation

Posted: Sat Oct 29, 2016 10:01 pm
by Marri
Ezra wrote:There are two hard things in computer science. The first one is called "cache invalidation".
<3333333

I actually first heard that joke as "there are two truly hard problems in computer science: cache invalidation, naming conventions, and off by one errors."

For the technically curious, I didn't actually add much caching, and none of it's custom; Rails in theory has its cache invalidation under control. Most of what I did was change our cache structure from file based (the Rails default, but a horrible design for Heroku, which has an ephemeral file system) to Redis based after installing the free Redis plugin. And then I used a Rails builtin to go from generating "render array <list of replies for this thread>" to "render array <list of replies for this this thread>, with cache"*. I have not yet put caching anywhere else. I did check into the cache invalidation strategy for the list of replies place I put it; the cache key is built with the class name, id and updated_at key of the object, so it'll expire whenever you save it (<this is also why I haven't done it for top level posts yet; updated_at is not tagged_at, and updated_at changes whenever a new reply is made, so caching won't gain us much if I use the built in, I'll have to design my own) and an md5 digest of the template file so it'll also expire whenever you change the template. Which I am reasonably comfortable with being the important invalidation spots to hit?

*code:

Code: Select all

= render partial: 'replies/single', collection: @replies, cached: true

Re: The Glowfic Constellation

Posted: Sun Oct 30, 2016 1:10 am
by Marri
It's alive! It was more expensive than expected because I got SSL up too, and took like two days to get the certs issued properly, and all your cookies including login are for the old domain so those'll all vanish, and if you disable Javascript by default or anything I'm sure those need redoing, and whatever it's done.

Also, wtf am I even doing, it's past 4am bed now.