A month with no #JS Monthly!? No way it cant be, its a monthly JS thing! So 22nd of August our #meetup with @ovetto84 and @popmotionjs on stage sponsored by @BeameryHQ
My new article where I try to make dragging animations in UI look more natural is live on Medium.
Check it out here medium.com/@nashvail/how-to-…
RTs are appreciated :)
Had a great time at @codebar tonight. Very forgiving audience 😬 and interesting speakers. It was mostly just fucking awesome to meet a bunch of people full of energy and excitement about being a developer.
Inspired me to spend more time with my head out of the screaming pillow.
If you've opened a GitHub issue over the last two months, you'd be forgiven for imagining you're being ignored. But don't worry. It's not your imagination! You absolutely are. Been absolutely slammed for time recently.
I will be blitzing the list soon though, worry not.
Fellow package authors: "It's built for Node" is not a valid excuse for publishing your modules only as ES6. It's lazy.
At the very least please leave a clear notice in your readme so people (mainly me) don't dig through their Webpack config questioning their sanity.
Is there an i18n @reactjs library in existence that offers CSS-in-JS style component-bound translations?
One that allows us to split our code both by route/functionality and again by locale? (ie `checkout.en.js` etc)?
Monolithic translation files are a Never Again.
Best/worst idea I ever had:
Temp fix for node servers crapping out at the same time from a memory leak, by dividing them into cicada-inspired prime number lifespans and rebooting them at that interval
Just because a JavaScript function is pure, doesn't mean it's fully declarative. Think about it: which of these implementations are easier to generate tests for?
ALT // Naïve pure function
export function trafficLightReducer(state, event) {
if (event !== 'TIMER') return;
switch (state) {
case 'green':
return 'yellow';
case 'yellow':
return 'red';
case 'red':
return 'green';
default:
return state;
}
}
ALT // Pure function with configuration
export const timerBehavior = {
green: 'yellow',
yellow: 'red',
red: 'green'
};
export function trafficLightReducer(state, event) {
if (event !== 'TIMER') return;
return timerBehavior[state] || state;
}