this site has two programmers

 

dorky femme droid

eggbug enthusiast

important eggbug lore

 


 

if you use the phrase "be normal" as if it's something to aspire to, kindly take a long walk off a short plank. or block me. whichever is easier for you.

 


 

child of the 80s

 


 

i escaped a cult.
all of the content warnings.
all of them.
tag: exerian's tragic backstory

 


 

                                 
eggbug bounce 88x31An 88x31 button advertising Cohost: "no ads. no tracking. yes eggbug."get firefox
   
                                                       
  

lexi
@lexi

this is one of those things that only like two people would actually care about but GOD i love a perfect transition from SSR to hydration. the problem here is that the "see all" button always appears on SSR and gets hidden on hydration. and there are two possible ways to fix this.

solution 1 would be css. problem is, we just need to select the 3rd line somehow. but the only line selector is is ::first-line. no other line selectors exist. and because it does not even allow z-index you're basically screwed.

solution 2 works but is REALLY cursed: cohost always uses atkinson hyperlegible. SOOOO you can do a terrible terrible thing:

  1. calculate ALL character widths in atkinson
  2. calculate at what post width it would overflow
  3. calculate all layout widths where that breakpoint hits
  4. include CSS minmax viewport width rules in at SSRtime that display none the see all button

haha anyways @staff do you want to hire me. i can and will make your SSR perfect. i can be trusted with the cohost codebase


exerian
@exerian

i couldn't figure out what ssr could possibly mean so i asked duckduckgo and found this

i still have no idea what ssr could possibly stand for.

what is ssr?


You must log in to comment.

in reply to @lexi's post:

oh this is far from the only place hydration is broken, but the majority of our issues stem from useId being non-deterministic (and used by a library we depend on) despite what the react documentation claims

wow, react? smh i am so disappointed. instead you should use [user’s personal favorite framework that has a smaller community and also does not support a library that is critical to cohost’s functioning]

exactly this is the reason why i had the great idea to try to make react components run inside sveltekit. i have not managed to pull it off yet but once i do it is over for react

giving me access to a javascript runtime was a mistake

yeah i have spend a lot of this time on this too and it is literally theoretically impossible to get this right. this is like the halting problem for web developers

in reply to @exerian's post:

in @lexi's post, Server-Side Rendering (generating a lot of the layout of cohost pages on cohost's servers, and then having the user's web browser make small adjustments as needed, rather than making the browser assemble the whole page itself). in my reply, Super-Super-Rare (a designation for really valuable items/characters you can pull in gacha games if you get lucky)