Archive

Category Archives for "Developer Tutorials"

Test Clicks On Connected Components In Under 10 Lines of Code

Here’s a fairly benign component, that can give developers pause when its time to write unit tests for your components:  const ClickableButton = props => ( <button onClick={props.doSomething}>Click Me!</button> ) const mapDispatchToProps () => ({ doSomething: dispatch(someFancyAction()) }) export default connect( null, mapDispatchToProps, )(ClickableButton) There is only thing worth testing here: That when we click […]

Continue reading

How to Update Content Based on URL params; No Libraries Required

If you’re a frequent user of Netflix or Amazon, then you’re familiar with how they use what they know about you to tailor their platform to your tastes. Personalization is an effective marketing technique. It makes you a more engaged customer, and more likely to get out your wallet. But you don’t have a team of […]

Continue reading

A Workaround for CSV Upload Limits

Sometimes, applications have a limit on how many records you can import at once. Sometimes massive imports flag for a manual check, adding a roadblock to your work. Want to split one CSV into many quickly and avoid those pesky upload limits? Here’s a short bash script I use to split .csv files into multiple files while maintaining the header […]

Continue reading

How to Make an AJAX Request Without Using Frameworks or Libraries

There are a lot of JavaScript frameworks out there these days. It makes it harder to choose a front-end development workflow when starting a new project and write code that’s portable between different projects. Also, using a complex framework to solve a simple problem adds unneeded complexity and risk to a project, which makes getting that […]

Continue reading
1 2 3