@andrew_chou@toot.cafe
@andrew_chou@toot.cafe avatar

andrew_chou

@andrew_chou@toot.cafe

Senior dev at Digital Democracy 🌎 • Former core dev at Manyverse • occasionally none too happy 🐝

This profile is from a federated server and may be incomplete. Browse more on the original instance.

DavidDarnes, to random
@DavidDarnes@mastodon.design avatar

Sharing another Web Component today. This is the one that kinda sparked things off for me to create small, but useful, that I would benefit from and maybe others too.

I wanted to utilise the :playing pseudo selector to style elements when an audio element is playing, but it's only available in Safari. So I made a Web Component:
https://darn.es/is-playing-web-component/

andrew_chou,
@andrew_chou@toot.cafe avatar

@DavidDarnes nice! quick question: do you have to explicitly remove the event listeners that are registered in that connectedCallback i.e. on disconnectedCallback? I've seen some posts recently that have me a little bit confused about event listeners and how to work with them in web component lifecycles

andrew_chou,
@andrew_chou@toot.cafe avatar

@DavidDarnes @scrwd @hawkticehurst I think in your case, maybe it's not as essential to do so since the events you're listening for are fired by child elements. So if your component disconnects, those children are also disconnected in theory (right?). Could be misremembering but I think browsers will remove event listeners for elements that are no longer attached to the DOM too.

That's my naïve understanding anyway 🤷‍♂️

andrew_chou,
@andrew_chou@toot.cafe avatar

@DavidDarnes @scrwd @hawkticehurst rereading that post, it seems to focus on the case of adding event listeners to your own component, not attaching ones to child elements. Not sure if that's for brevity or if it's highlighting that it only applies in that case specifically 🤔

it also notes the exception to what it's describing: attaching listeners outside of your component's tree (e.g. the window) - which makes sense to me. wonder if the exception also applies to child elements though

rauschma, to random
@rauschma@fosstodon.org avatar

Firefox/Mac: Has anyone else seen this issue? With some OS-level shortcuts, Firefox first sends them to the OS, then handles them itself which causes glitches.

Example—showing the Character Viewer:
– Command-Control-Space: CV briefly appears, then immediately disappears.
– Globe-E: works but it also leads to an “E” being typed.

andrew_chou,
@andrew_chou@toot.cafe avatar

@rauschma oh wow wondering if this is the same issue I'm seeing. usually I do this to access emojis but yeah, a relatively recent Firefox (dev) version broke this and intercepts the binding

andrew_chou,
@andrew_chou@toot.cafe avatar

@rauschma @honk wondering if you know anything about this or if it's been reported at all? (idk where to look)

andrew_chou, to programming
@andrew_chou@toot.cafe avatar

been doing some casual reading of Refract and it's quite nice!

https://refract.js.org/

curious if anyone's used it recently - seems like it's one of those things that doesn't need to be actively maintained because of its scope.

andrew_chou,
@andrew_chou@toot.cafe avatar

I've been doing a whole functional reactive programming learning rerun, mostly focused on callbags (https://github.com/callbag/callbag) and branching out from there. has led me to rediscovering awesome projects like callbag-jsx (https://github.com/loreanvictor/callbag-jsx/) and Wonka (https://wonka.kitten.sh/).

It's only taken several tries, but callbags are starting to make practical sense to me 🥹

andrew_chou,
@andrew_chou@toot.cafe avatar

most of experience with FRP has been working on @manyver_se , which is a rather extensive CycleJS app. Took a while to get used to it (and I'm still quite puzzled in certain areas), but it's really widened my general knowledge around programming, especially in the context of user interfaces.

also helps to have Cycle and Manyverse's creator, @staltz, as my FRP mentor/troubleshooter 😁

hisham_hm, to random
@hisham_hm@mastodon.social avatar

Sad to hear that after 20 years, the mailing list has moved to Google Groups.

Just sad, not angry, because I can't host an email server for them and do anything about it, and the migration is already taking place.

I think this is the last mailing list I semi-regularly read. I guess newsletters are email's last stand, culturally speaking.

andrew_chou,
@andrew_chou@toot.cafe avatar

@hisham_hm I'm surprised that @fastmail doesn't provide a basic mailing list service given their standing in the ecosystem (or maybe they do but I'm not aware of it??)

andrew_chou, (edited ) to random
@andrew_chou@toot.cafe avatar

what's your tolerance for using things created by or worked on by shit people?

andrew_chou,
@andrew_chou@toot.cafe avatar

in my case, mostly relevant to tech stuff or software products. I often see rather awful takes by people who build popular projects and I typically just distance myself further each time, although it will occasionally vary

andrew_chou, to random
@andrew_chou@toot.cafe avatar

once in a while I remember that anything that's hosted and available on the wider internet has at least one point of failure that's outside of the control of the "owner".

internet provider, dns registry/provider, server/file hosting, saas company, third party application code, etc.

tradeoffs, I guess

andrew_chou, to random
@andrew_chou@toot.cafe avatar

finally giving https://www.pubpub.org/ a try and...it's wonderful!

can totally see myself using this to create a wiki + blog + whatever else

andrew_chou,
@andrew_chou@toot.cafe avatar

I've been putting off starting a simple blog for myself for ages. Might still do it and have ideas for what I want it to be able to do, but I also kinda just want to write stuff, publish it, and call it a day

mauve, to random
@mauve@mastodon.mauve.moe avatar

Made the mistake of trying to give QT another shot.

andrew_chou,
@andrew_chou@toot.cafe avatar

@mauve join me in the tk adventure 😅 (although not confident about the accessibility capabilities)

gabek, to random

Serious question: Why does anybody use Cookies? They have a negative connotation these days, and it’s a pretty lousy way to save state. I haven’t used cookies in years, I use local storage for anything that needs to be saved locally, and I send those values along in a header, payload, or parameter. Like you do everywhere else.

Every other development platform, other than the web, doesn’t natively support cookies (some have bad support as a 5th class citizen that are never used). Why does the web need them? Why use them?

andrew_chou,
@andrew_chou@toot.cafe avatar

@gabek aside from what's already been said, my guess is that cookies will work when JS isn't enabled and you're making requests using native form elements. Not sure how relevant that is nowadays but worth pointing out

andrew_chou, to tcl
@andrew_chou@toot.cafe avatar

seemingly out of nowhere I've somehow found myself delving deeper into technologies that could be classified as "permacomputing"-friendly or adjacent. I've recently been doing a lot of reading and exploration on things like around redbean, lua, tcl/tk, c, portability, longevity, and "old" tech and can't help but get excited or overly curious about them.

#c

andrew_chou,
@andrew_chou@toot.cafe avatar

it's funny because have seen lots of talk about permacomputing online and in some niche spaces but it's never really resonated with me for some reason. I generally found the term kind of vague but maybe that's the point, as its meaning to me is becoming clearer in the ways that I want it to be.

also, lots of this ties back to my job, where there's a lot of overlap in terms of the value this technological mindset(?) can provide for specific communities and use cases

andrew_chou,
@andrew_chou@toot.cafe avatar

also doesn't help that a good portion of my feed here is seeing uxn stuff from @neauoire and friends 😂

andrew_chou,
@andrew_chou@toot.cafe avatar

there's something wildly refreshing about "slow" tech, where I can peruse source code, blog posts, forums, social media posts, etc from years ago and they'll still be relevant! (especially useful in the context of programming languages)

andrew_chou,
@andrew_chou@toot.cafe avatar

@glaskows sorry I never got a chance to reply! some useful links include:

there are probably countless others that i've come across that made an impression, but would need to search for them more intently

andrew_chou, to tcl
@andrew_chou@toot.cafe avatar

I fell into a tcl/tk rabbithole today...

andrew_chou,
@andrew_chou@toot.cafe avatar

@CGM thought your name looked familiar and turns out it was because ReacTcl was part of this rabbithole 😄 very cool project although a little over my head on the Tcl side at the moment! (I'm familiar with reactive programming via ReactiveX and friends)

andrew_chou,
@andrew_chou@toot.cafe avatar

@kr1sp1n we don't know each other but I'm very glad to have discovered your feed online! getting a lot of good tcl-related content and links from you 😁

andrew_chou, to programming
@andrew_chou@toot.cafe avatar

📣 (Another) Jobs Announcement 📣

Digital Democracy is looking for a Senior Backend Developer! You'll be directly working on the technology that powers our offline-first and decentralized mapping applications!

job details: https://apply.workable.com/digidem/j/F243F84F41/

org website: https://digital-democracy.org

boosts (again) appreciated! 🙏

andrew_chou,
@andrew_chou@toot.cafe avatar

@geekodour yep applications are still open :)

andrew_chou, to hiring
@andrew_chou@toot.cafe avatar

📣 Jobs Announcement 📣

Digital Democracy is looking for React Native Developer to help us build apps for Android and iOS! Come work with me on decentralized applications with real-world impact 😊

job details: https://apply.workable.com/digidem/j/96343A29BE/

org website: https://digital-democracy.org

boosts appreciated! 🙏

andrew_chou,
@andrew_chou@toot.cafe avatar

we took this job posting down but we're very likely going to re-open it. would love some help getting some eyes on this!

if you're seeing this and interested, either reach out to me or use the email listed on our jobs page :)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • tester
  • kavyap
  • DreamBathrooms
  • modclub
  • GTA5RPClips
  • InstantRegret
  • magazineikmin
  • Youngstown
  • thenastyranch
  • rosin
  • slotface
  • mdbf
  • khanakhh
  • ngwrru68w68
  • JUstTest
  • anitta
  • normalnudes
  • Leos
  • cisconetworking
  • osvaldo12
  • everett
  • Durango
  • tacticalgear
  • provamag3
  • megavids
  • ethstaker
  • cubers
  • lostlight
  • All magazines