Opens profile photo
Follow
Kyle Shevlin
@kyleshevlin
Software engineer, toxic positivity disruptor & anti-grifter. Enjoys #JavaScript, #React & more. ADHD AF. He/him. For golf content:
Portland, ORkyleshevlin.comJoined October 2009

Kyle Shevlin’s Tweets

Honestly, learning that my father is emotionally immature has moved my anger/hatred of him to indifference. I still don’t care to have anything to do with him, but the reason is totally different now.
10
Show this thread
Was hoping it would be a solution for getting plywood home from the store that didn’t involve shipping or renting a truck. It’s holding me back from doing a long list of projects.
1
1
Show this thread
I ain't gonna lie day 22 pt 2 just feels like a lot of work, so I decided to skip it for now after doing some of it. Then I went to day 23 pt 1, and honestly same. Totally doable. Lots of work. I'm just gonna break from this for now. If I come back, I come back.
1
Show this thread
I forgot to mention, pt1 got me when I learned that node 16 doesn't have `findLastIndex` yet (it's in v18). I was confused why my test passed but the code failed, only to realize the test never went down a branch where it used findLastIndex, ha.
1
1
Show this thread
I don't think I'll even bother with trying to figure out how to programmatically map the cube's faces. I think I'll just do it by hand and tell it which faces connect with which.
1
Show this thread
Just got day 22's part 1, which was quite a bit of code, but fairly straight forward. But fuck me, part 2. I gotta fold this thing into a cube! Are you kidding me?! I mean, I _think_ I can figure this out, but fuck... still.
1
1
Show this thread
My original approach was to try and do it like you would algebra. I inverted the whole tree's equations to solve for `humn`, but wasn't quite getting it right. Disappointed it didn't work because I thought it was clever.
1
1
Show this thread
If you’re not feeling it this year, I just want you to know you’re not alone. Holidays are really hard for some of us. That’s alright. Just try to have the best one you can manage. That’s more than good enough.
3
67
Pt 2 will be a different story. I don't think I can brute force it, passing in values til it passes. My guess is it's an astronomical number. Gonna have to find a way to reverse engineer the solution.
1
Show this thread
Solved day 21 pt1 easily. Didn't bother making a dependency tree, instead I did it dirty. Literally. Used a while loop with a dirty bit, solving what I could until the dirty bit came back clean. It's a neat pattern to have in your back pocket.
2
1
Show this thread
One neat thing about having a cyclical list was knowing any search through it could be infinite, so how do we only go through the list once? do..while let node = zeroNode do { if (predicate(node)) return node node = node.​next } while (node !== zeroNode)
1
1
Show this thread
I sang this out loud. It was fun 😂
Quote Tweet
🎶 On the 12th day of Christmas, ADHD gave to me: 12 emails avoided 11 bills unopened 10 hobbies started 9 piles of laundry 8 cups of coffee 7 hidden late fees 6 interruptions 5 LOST KEYS 4 hours of sleep 3 missed texts 2 restless legs & a lifetime of low self-esteem!
Show this thread
3
Ok, I really enjoyed Wednesday (the show), but in ep. 1, her use of a nail file on the window to escape the therapist is completely gratuitous. Literally, just turn the lock. It’s not meant to keep you in. It’s meant to keep people out. 🤦🏼‍♂️
1
10
I've tried several ways, but the one I've landed on is a very elegant, doubly linked cyclical list (I call it an ouroboros). I'm honestly impressed I remembered how to write it. Of course, all tests pass, but my answer ain't right. I need a more rigorous test to expose the bug.
1
Show this thread
Love spending a fuck ton of money on a new heat pump only to have the Energy Trust of Oregon require we have it setup so that it can’t draw heat if it’s below 35F (it can be set to handle much lower temps) It is 59F in my home right now and there’s nothing we can do.
10
13
Most of the people I feel close to don’t live in Portland ☹️
Quote Tweet
pretty fucked up that by the time you reach 40 there are basically only like five people on the planet who really understand you and they probably live in a different city
6
Also, #AdventOfCode has made me significantly better at regexes. I do a lot of the input parsing with split()s and replace()s, but sometimes a regex is much more elegant. Just used positive lookbehinds and named groups to parse the input of day 19 succinctly.
2
3
Show this thread
Wanna add this to the thread
Quote Tweet
An #AdventOfCode puzzle helped me realize something about generator functions I hadn't realized before. Because you're yielding a value 1 at a time, you can iterate through very large collections without having to allocate space for every item up front.
Show this thread
1
Show this thread
I don’t know why I’ve never thought of this before, but I changed the difficulty of HFW to Story while doing some grinding upgrades. Effortless. Literal game changer.
2
7
What is the point of having the view count on the tweet? “Oh Twitter showed me this after showing it to N people. This doesn’t change my desire to engage with the tweet at all. If anything, it just shows me how shit the algorithm is, but now for every tweet” Wtf?
2
22
There's definitely more for me to think about, research and learn here, but it was just a neat realization. I've been meaning to learn transducers for a few years now, and from what I understand, these two ideas are related. Maybe I should get on that.
2
3
Show this thread
The use case I had that made me realize this was: Given a set of size N items, give me every unique subset of items of size N / 2. For a large N, this is a BIG list, but by using a generator, I could get the next subset without having to store ALL subsets at once.
1
1
Show this thread
An #AdventOfCode puzzle helped me realize something about generator functions I hadn't realized before. Because you're yielding a value 1 at a time, you can iterate through very large collections without having to allocate space for every item up front.
7
23
Show this thread
There be times I'm dropping doubly, even triply, nested parentheses on y'all. It's honestly why I made that `Footnote` component for my blog. Add that context in a less disruptive way.
Quote Tweet
i love when ADHD people use parentheses because it’s like oooooh bonus context
7