@dragon https://social.pixie.town/@starless/108162394497787218
it's a little python script that prints out a pseudo-random tarot card (no fancy seeds or anything) and a little interpreted meaning on a receipt printer. I just updated it to work on a bluetooth cat printer off ali express ($20 if you've got cash to burn).
@dragon lol no worries. I was just like "Wow, they must be talking about my little cat tarot printer project. Okay, okay, this is weird, but maybe not that surprising for mastodon."
Silly me. :P
@dragon I think decreasing variable re-use is why most style guides I've used prefer local definitions over defs at the top of the function.
I think most compilers optimize lines like
for(int x = 0; x<3; x++)
{
int i = x +i
print(i)
}
such that i isn't actually re-allocated each time, but like, yeah, most places I've seen would have you define int i right before the loop, but not at the top of the function, and ideally, if i isn't used elsewhere, to wrap the whole thing in something for scope management. That loop does look a bit wasteful.
The little overview of what's to come is neat, though, I totally agree there.
@dragon Not to, like make this a paragraph, but I think I prefer the opposite.
The main benefit of defining your variables later is that they're closer to the context in which they're used/relevant.
It's a bit of a balance between "is my code interesting/hard to understand because of the logic it's driving, or is my code interesting because of the computer things it's accomplishing?"
If it's the latter, I could see having the memory all allocated at the same time as being real helpful, but if it's the former, it can help with local readability. I prefer to work on things that are logically interesting, but computationally boring, so my preferences might make some sense here.
To each is their own, tho. :)
@dragon I feel like I'm getting a code review via toot! :P
I mostly tend to focus on the end goal so much that I find I get bored with even the most minor complexity introductions until the whole thing 'works' end-to-end... But I might just be, like, some kind of barbarian dev here.
ph -
@socketwench <3 Anything local internet strangers can do to help?
Reasonable Colors is an open-source colour system for making accessible colour palettes.
It uses an intuitive system of shades to help you select colours which meet the appropriate WCAG contrast rating, even if you're mixing and matching base colours:
https://reasonable.work/colors/
#opensource #design #ui #uidesign #color #colour #accessibility
Hi uh, catarot is up and working, I guess. If you're into wireless receipt printers that look like cats printing out tarot readings.
https://git.cyberia.club/starless/catarot
I haven't done much doc work for it, and likely won't. The original branch is https://github.com/rbaron/catprinter.
A common piece of advice about visual descriptions is to do them like you're describing for a friend on the phone with you. Well, by the time you've gone through the color of someone's hair, sweater, pants, and counted the number of their eyelashes, your poor friend has gone to sleep or hung up! Come on, is that what REALLY gives you the feels about someone you're looking at? How about the fact that they're wearing a torn shirt that reads "fuck the cops, and not in a fun way?" That they smell like the ocean and flowers? That they LOOK like they'd smell like the ocean and flowers, and fuck if you know what you mean by that but it's true in that moment so live with it? You'll make your friend laugh at your ridiculousness and love you all that more for the goof you are (or block your number, idk), isn't that so much more fun than blue sweaters and green pants?
Friday, 15th April, 2022
Here are four talented artists you may want to follow.
@_crystal_dreams
https://mastodon.social/@_crystal_dreams/108086071184227455
@Larn_draws
https://mastodon.art/@Larn_draws/108081532408422320
@Redundantz
https://mastodon.art/@Redundantz/108082531689596842
@polterink
https://mastodon.art/@polterink/108062204546025948
Life update, work, mildly stressful things but fine
New job and partner things are taking up a lot of brain space, so I haven't been on as much.
New job is going well. I just had the healthiest, most lively pr the other day and it really underscored how unhelpful the feedback I got at my last place was.
Partner is moving out from an unhealthy living situation this week and has a pretty major surgery next week. I'm helping out.
I'm stressed but okay. Things should settle a bit soon.
@lyncia if it's helpful, you might consider making a 'comfy only' ghost account instead where you follow favorite artists, cute animal pictures, etc, and can go to that when you just want to scroll until you get enough dopamine to move on with your life.
I think the most important thing I can say is:
If there are kids/teens close in your life that might be Having Gender Feelings, or have expressed that they're trans -- acceptance is good but not remotely enough. Don't just be 'cool' about it. You need to be actively loving and supportive. Because they are trying so so hard, and being met with casual acceptance may be less than they need even if they don't know it. They are dealing with grief, and fear, and confusion, and new joy, and so, so vulnerable. Talk about that with them.
The Unicorn Express is a (U.S-based) community-supported effort established in response to the widespread banning of books that are written by LGBTQ+ authors, feature LGBTQ+ storylines, and/or discuss gender and sexuality. The Unicorn Express sends free LGBTQ+ titles by mail to LGBTQ+ youth living in states and/or districts where bans have been put in place.
Use the links below to request books or support our efforts.
xo, the unicorns
https://docs.google.com/document/d/1scQKIx7w8pgSEdLPqJYwlhcQh-r9lHtK0__hHs1yuJE/edit
Food, gifts, children/babies, weird
For the holidays a friend of mine was given a bag of tiny plastic babies. This bag of babies has now drifted amongst the bachelors for the last few months.
Today, they're discussing making pastries together and it took me a little while to realize that they're optimizing baked good recipes for hiding plastic babies in.
I love my friends.
i like kind machines. pro-people-not-dying. anti-nazi. anti-colonizer. pagan, but lazy about it.
I am #HardOfHearing, #nonbinary, polyamourous, into ttrpgs and #tech. Hobbyist #leatherworker, hobbyist scifi author, community builder, and artist.
I like to build #whimsical things that help people to #dream better and form meaningful connections. If you wanna hang out with friendly computer weirdos in Minneapolis, lemme know.
Profile image description: a watercolor painting of a person with pale skin and brown and blue hair laughing. They have a side cut and an audio processor is visible behind their ear. The art style is loose and the eyes are squinched into little crescents.