#AmCoding, oder wie man es auch nennen könnte: Computer anschreien mit Stil.
Scripting for the next update of SBYGEI is done. More coding and what not for the scenes is needed, along with some other planning and tweaking for future releases. But the game is currently at 4471 lines of code, up from 2250 in the last release.
This is going to be a massive undertaking lol.
#lgbt #visualnovel #amcoding #amwriting
I also want to point out that this has become an unintentional passion project for me. I have other book work to do. I'm still an editor. I still have my own book to prep for/market/etc. So this game takes a back seat while I work on those. But this is a fun project and I care a lot about the story I'm trying to tell here. #amwriting #amcoding
Yesterday I finally tracked down a bug it took me the better part of a week to find. Here's the code I originally wrote:
```typescript
/**
* Like `.filter()`, but it keeps track of the indexes for you.
*/
export const findItemsAndIndexes = <T>(
items: T[],
predicate: Predicate<T>
): ({ item: T; index: number })[] =>
items.filter(predicate).map((item, index) => ({
item,
index,
}));
```
Can you spot the bug?
🧵 1/n #AmCoding
Stumbled across 'pretty-quick' for prettier, now polishing up my code like its Cinderella!!!!!
https://www.npmjs.com/package/pretty-quick
👌💄✨👗💖😍 😭
I did my coding practice today and noticed I’m now moving from “whatever, this is very simple, I can hold this in my brain without writing it down” to “nrrrgh, I remember learning this but I don’t remember how to actually write it.”
Which is a nice, crunchy place to be at, but does mean once I finish one of the ~40 line practice projects, I need to be done for a bit.
It also means I’m learning how to read error messages, which is crucial.
Today, it's a day of writing scripts, to try to characterise these volumes in terms of geographic and institutional diversity. #AmCoding #ProbablyShouldBeWriting
#amcoding #probablyshouldbewriting
Going to print this one out and give it to all my students (and pin it to the wall next to my computer)...
#Debuggibg #AmCoding
https://mastodon.social/@b0rk/109480119191481544
Okay, finally worked out the annoying #CSS problems in my #coding project enough that I could have an equivalent of a "beta reader" look at it. I'd still like to tweak those checkboxes a teeny bit, but it's okay, they no longer look like total ass. And I revised the algorithm that was making "the cool data" cluster awkwardly among the other things. (Yeah, being cagey about the details on purpose.) #AmCoding
For the love of R and Paul Boersma, all that remains to be done is to define the output line. It's the last thing in the script! It's literally gluing variables together with +","+ and running it!
Just finish it!
(But gathering up and printing out variables into output csv files is so boring and I am le tired.)
(Zen TAKE A NAP! Then print out ze variables.)
Earlier tonight: got things in my #coding project scraped together well enough to push it so I could check it in mobile. Things look *fine* in desktop, and in the emulator, but on my actual phone? Dammit, the checkboxes look gross. Gotta fix this before I can ask for any feedback or advice. But I #AmCoding!
...Or, *was* coding. Now, trying to write a few descriptive passages for the #writing #WIP. And they're all coming out flat and amateurish. It's just not my night, huh? #AmWriting
#coding #amcoding #writing #wip #amwriting
This morning, I'm writing a little script to count up all my edited collection chapters according to the university in which the author was based, by year.
Intro: I am a programmer and writer. Formerly Trello at Atlassian. Author of “Hello! iOS Development”. Currently independent. Will be posting about what I #amWriting and #amCoding mostly
I'm banging my head against this #CSS, and now I'm starting to wonder: is it just plain impossible to get rounded focus indicators on radio buttons in Chrome? I mean, that can't be right. Can it?
I've tried outline. I've tried box-shadow. I've tried wrapping a div around the radio button and putting the border-radius on *that*, as per this obscure post from years ago. Nothing seems to work. The focus indicator looks great in Firefox, but rectangular in Chrome. #WebDevelopment #AmCoding
#css #webdevelopment #amcoding
At this point, the main thing I want to do is just change the damn color on these widgets to match the rest of the page. You'd think #CSS "accent-color" would do that, except nope, it only works on ones that are checked.
Why in the world does that only apply to checked ones, and not unchecked? What's the logic there? #WebDevelopment #coding #AmCoding
#css #webdevelopment #coding #amcoding