Details
-
AboutSinger, calligrapher, reasonable cat lady
-
SkillsJavaScript, C, Python, React, Redux, Django, GraphQL, Mongo, SQL
-
LocationSeattle
-
Website
-
Github
Joined devRant on 9/9/2018
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
I wrote a base converter in AssemblyScript that could take a numeric or string radix of 2-36. String options being binary, ternary, etc.
Then I couldn’t figure out how to color scheme it, so went about it the lazy way.
I present to you: Choose your own damned background and text colors.
https://baseconverterwebassembly.netlify.app/...2 -
I definitely made a channel in the dev Slack I'm in for algo practice with the description bigOHNOtation.3
-
If you were to write a regular expression to match phone numbers in the format of either:
(123) 456-7890 or
123-456-7890
Would you prefer a regular expression that looked like:
A) /^(?:\(\d{3}\) |\d{3}-)\d{3}-\d{4}$/g
B) ^\(\d{3}\) \d{3}-\d{4}$|^\d{3}-\d{3}-\d{4}$/g
C) Other
D) I hate regex
Reasoning? Alternative? Discuss.
(I'm curious about preferences surrounding the readability of regular expressions)16 -
Realized there was a bug in my npm package that made it hard to update the state of the input field conditionally (rather than explicitly through user action) and fixed it, wrote tests to ensure it was working the way I thought it was, updated the dist, updated the package version, merged, cut a GitHub release...
Then uninstalled and reinstalled it in the project I’m using it in and it didn’t work. What the eff, I think. Take a couple hours furiously trying to figure out why the hell the behavior doesn’t seem to match the behavior of the new version.
Then it dawns on me. I check the package.json.
“react-autosuggestions”: “^2.1.0”
.... I forgot to do the “npm publish” step.
*head desk* -
Today I learned that for boolean HTML attributes, they are considered true if they're present on the element at all, regardless of their value. And that as a rule, you should specify the empty string("") in value.
This wounds me on a logic level since everywhere else in JS, "" is false.
What.
The.
Fuck.
Seriously. Why?14 -
I released a new npm package!
I’m actually kind of proud of this one.
https://npmjs.com/package/...1 -
I wanted to build a website to search for aircraft accidents, so scraped the NTSB and FAA websites and built a database out of it.
Then I went to write search fields for Make and Model. I wanted it to be easy to know if there were results for a given Make before someone tried to query by it. And then fell into the rabbithole of how to make something like that accessible.
One thing led to another and: https://github.com/amyshackles/...
Still need to add testing and better documentation and clean it up a bunch, but it’s starting to look like something, maybe. -
That feeling when you’re scraping a website to build an API and your script downloads 4049/6170 pages before failing and you have to rewrite it so that puppeteer hits the next button 4049 times before executing the script. 😅
This database is so frustrating.
I hate this website (the one I’m scraping).
It’s going to be so satisfying when this is finished.6 -
Can someone please read this article and sanity check me that it makes sense outside of my head and I’m not actively putting garbage out into the world?
https://amyshackles.codes/why-is-em...
I would greatly appreciate it.15 -
There are no stupid or dumb questions. A lot of headache has been and could have been saved by one person asking what seemed like a stupid question.
I would now expand on this to say that if the question is procedural in the sense that it’s asking “what” or “how”, you should make every attempt to come to an answer yourself and then ask for clarification. If the question revolves around “why”, there are no stupid questions. A lot can be overlooked in a cascade of moving pieces.2 -
Oh look, the code points each script_extension matches when using Unicode property escapes in JavaScript regular expressions.
https://gist.github.com/AmyShackles...
Annnnnd apropos of nothing, I’m trying to learn Hungarian on the side for fun because I made a Hungarian friend. Forgot how hard language learning was!1 -
Current work in progress: https://whimsical.com/regular-expre...
Though I’ll warn you, if you’re on mobile, it’s going to look suspiciously like a blank page. It’s not. Just.... requires a lot of scrolling. 😅4 -
Started reading The Art of Computer Programming. Really liking it so far. Trying to get over my brain’s natural reaction to math of entirely shutting off and finding an excuse to do literally anything else is hard.4
-
In case y'all ever need a list of available timezones for the JavaScript Internationalization API:
https://gist.github.com/AmyShackles...3 -
Just thought I'd share what I've been working on lately.
Heap: https://repl.it/@AmyShackles/Heap/...
Array: https://repl.it/@AmyShackles/...
Binary Tree: https://repl.it/@AmyShackles/...
(I'm so freaking tired.)7 -
“The great questions of the day will not be settled by means of speeches and majority decisions... but by iron and blood.” - Otto von Bismarck3
-
I was today years old when I discovered the CSS property column-count.
Do you have any fucking idea how many times I’ve used CSS grid or flex box or BOTH when all I wanted was to make a layout with a set number of columns?
Why the fuck didn’t I know about this thing?
Did you know about this thing?17 -
That one time I was working on the Mattis quote but wrote “everyone” instead of “everybody” by mistake so started over. Awkward place to stop, I feel. Thought I’d share.5
-
I had the nerve to ask “Do you have any reservations about hiring me?” during an interview today. No regrets. Recommend.21
-
Can’t believe I forgot to post this one:
“Science does not say you shouldn’t pee on high voltage lines, it says urine is an excellent conductor.” - Sabine Hossenfelder8 -
Yesterday I learned there was a chat feature in StackOverflow. I learned this because I finally for once in my life have StackOverflow reputation.
Discussing my excitement:
“Guess what topic it was.”
“Was it regex?”
“It WAS regex!”4 -
“Much like power drills, cats can both be the problem _and_ the solution.”
Inside joke between mates.1 -
Converting one of my older projects to use functional components and hooks instead of class components and prop drilling. It's nice.
Though now I have this useState:
const [ disembodiedHead, setDisembodiedHead ] = React.useState("");
Promise it's not as creepy as it sounds.5 -
“The theory of quantum electrodynamics describes Nature as absurd from the point of view of common sense.” ~ Richard Feynman6