
Educator/full stack developer/big nerd. he/they.
Glebe, Sydney
Joined September 2018
- Tweets172
- Following55
- Followers98
- Likes101
Alex Baulderstone retweeted
🔢 Quick tip: if you're sorting an array in JS and keep forgetting how to write the compare functions (like I do), here's a mnemonic device:
(a, z) => a - z // ascending, like "a to z"
(a, z) => z - a // descending, like "z to a"
Hope this helps someone!
Alex Baulderstone retweeted
ECMAScript excitement 😉
These proposals achieved stage advancement during this week's 90th TC39 meeting 🎉
4️⃣ findLast/findLastIndex
3️⃣ Symbols as WeakMap keys
3️⃣ JSON.parse source text access
3️⃣ RegExp modifiers
2️⃣ String.dedent
1️⃣ Import Reflection
1️⃣ RegExp Atomic Operators
Alex Baulderstone retweeted
Accessibility tip: Use aria-current to style active links.
Benefits:
1. Screen reader users will get a friendly notification that the link is active.
2. Clarifies and simplifies testing (Can assert the aria-current attribute exists on active links)
Alex Baulderstone retweeted
With #Hacktoberfest coming up, I wanted to put out a quick thread to hopefully save someone the trouble of having to look up several things in order to successfully contribute to opensource for the first time!
The following thread will give you everything you need to start!
👇
Alex Baulderstone retweeted
It's amazing how often the difference between "I'll never understand how to do this" and "I'm pretty comfortable doing this" is literally just trying it once.
Alex Baulderstone retweeted
⚡️ Optional chaining is landing in Chrome 80!
I don't care what they say, JavaScript is beautiful.
Alex Baulderstone retweeted
See my latest article on how useEffect(fn, []) is not the same as componentDidMount.
reacttraining.com/blog/useEf…
Alex Baulderstone retweeted
4 layouts for the price of 1, thanks flex 👍
css`
form {
display: flex;
flex-wrap: wrap;
& > input {
flex: 1 1 10ch;
margin: .5rem;
&[type="email"] {
flex: 3 1 30ch;
}
}
}
`
view source on Codepen 👇
codepen.io/argyleink/pen/LYE…
Alex Baulderstone retweeted
I like regex because I get the opportunity to re-learn how to write it every single time the opportunity presents itself.
Because I never remember how regex works.
Ever.
Alex Baulderstone retweeted
Ever wanted to create a GitHub repo without leaving the terminal? Probably not, but here's how: curl -u 'githubusername' api.github.com/user/repos -d '{"name":"myprojectname","description":"This project is a test"}'
Alex Baulderstone retweeted
The awesomeness of @sallybrowner76 never stops!
As part of the Women #Techmakers event, @googledownunder's 'Rise Up, Reach Back' panel on 22nd March will feature Sally + other incredible women currently creating space for females in #tech.
Learn more 👉 hubs.ly/H0h0-5Q0

![let nums = [8, 6, 7, 5, 3, 0, 9, 2, 4, 1]; // Ascending, like "a to z" nums.sort((a, z) => a - z); // Descending, like "z to a" nums.sort((a, z) => z - a); // ℹ️ Remember: array.sort() mutates the array!](https://pbs.twimg.com/media/Ee7yqz5X0AEHxiW.png?name=small&format=webp)
















