EntranceJew
EntranceJew
TTCTheo's Typesafe Cult
Created by Froxx on 7/24/2024 in #questions
Handling ADHD while programming
Some days you can just do "ok". Some days you will do a whole month's worth of work in a flash if nothing gets in your way. It feels like the air in a lightning storm, the charged particles make your hair stand on end and you glide between tasks seamlessly as everything you had learned quickly and violently snaps into place. You cannot force every day to feel like that, and if you found a way to do so it would probably kill you.
10 replies
TTCTheo's Typesafe Cult
Created by Froxx on 7/24/2024 in #questions
Handling ADHD while programming
I am as old as your friend and even with medication it, in my experience, is normal. Rituals / routines / habits are good for bringing up your baseline and you should strive to alter as much about your structure and environment as possible to earn as many wins and mitigate as much friction as possible; however, I don't think there is anything in the world that can make every day of yours great, guaranteed.
10 replies
TTCTheo's Typesafe Cult
Created by Iceorcus on 6/30/2024 in #questions
Is it a good idea to wrap a website in an Electron app window?
i found electron's IPC for talking between different layers of the app to be very restrictive and a little confusing to develop for. maybe if you have experience developing web-extensions then the messaging API is familiar and it won't throw you off that much. coincidentally I also implemented Discord.js within electron, and due to it being a bot context, had it even further removed from the thread it was spawned from due to the way the bot processs siolos off a single file of code (IPC also made this much more difficult to design for) I don't think you need to resort to IPC to authenticate with Discord, and access to their IPC API is severely limited and basically people can't even apply for it anymore so if it requires users getting it from discord directly then they can't. I think a typical OAuth flow should be all you need to auth with discord? https://discordjs.guide/oauth2/#authorization-code-grant-flow Apologies if I misunderstood anything.
4 replies
TTCTheo's Typesafe Cult
Created by skyrbunny on 7/2/2024 in #questions
Custom font makes text “sink down” a bit
The issue is the baseline of the font itself is shifted, but you only have the means to set its size, line-height, vertical-align, or the margin/padding-bottom to address it: https://www.smashingmagazine.com/2012/12/css-baseline-the-good-the-bad-and-the-ugly/ https://css-tricks.com/how-to-tame-line-height-in-css/ there are probably better tricks (i hope) to wrangle it but for lack of anything else there's these
3 replies