Chiedo Labs Web Development Harrisonburg VA & Charlottesville VA web design
Picture of Chiedo

Using Asynchronous Cryptography in your NodeJS App


The Node Crypto library is incredible and pretty darn functional but most encryption functions block the event loop which blocks a lot of the advantages of Node. While trying to figure out a way to better utilize my web servers, I came across the crypto-async library. Going from Synchronous to Asynchronous Figuring out how to […]

Read more

Picture of Chiedo

How to Move Your Blog from WordPress to GatsbyJS

Last week, I moved our entire website from WordPress to GatsbyJS. For those curious as to my thought process, it was this. We run a web development shop and although we were using WordPress to power our website, we weren’t using WordPress to do much at all. We were writing all our blog posts using […]

Read more

Picture of Eric

How to Use Test Doubles in RSpec


Introduction I was first introduced to Rspec a few years ago when I went through a rails tutorial and I was enamored by it, especially TDD (test-driven development).  Rspec is a testing framework for Rails that allow you to test your models, controllers, and run integrations tests to make sure all the parts work together smoothly. […]

Read more

Picture of Chiedo

How to Use Google Code Prettify With ReactJS


This one will be a short and sweet post. If there is a better way to do this, please let me know. I’m all ears. Simply add the following to the component that you want Code prettify to run for and you’re golden. componentDidMount() { this.runCodePrettify(); } runCodePrettify() { let script = document.createElement(‘script’); script.type = […]

Read more

Picture of Ricardo

1-Minute Guide To “bind” and “this” in React Components


Last night I had a huge ‘connect the dots’ moment. You know, that moment when you realize you were being a ‘doofus’. I thought I understood the concepts of ‘bind’ and ‘this’ in the context of JavaScript; at least a pretty basic understanding. I knew OOP was done differently in JavaScript than in Java or Python so I […]

Read more

Picture of Chiedo

Using CryptoJS For Browser Encryption With Cryptographically Secure Pseudorandom Keys and IVs


Cryptography in the browser is a controversial topic undoubtedly. But that’s not what this post is about. Going down that rabbit hole would take a post of it’s own. I’m going to assume that you’ve gone down that rabbit hole and have decided that browser cryptography is helpful for the problem you’re trying to solve. […]

Read more

Picture of Don

How to Create a Save-All Button with React and Redux


When in the course of developing React/Redux apps, one may verily find him/herself wracking their brain for how to update many separate components in one simple, simultaneous function call. This was the case when one of our clients wanted a CONFIRM ALL button placed on their app. This gave rise to two questions of existential […]

Read more

Picture of Don

Why You Should Define Components Outside of The React Render Method


I just discovered a very annoying bug that took me half an hour to figure out. Here’s what I discovered: NEVER define React components (even dumb stateless components) inside of the React render() method. I had an input field that would lose focus as soon as its value changed. So the userĀ could only enter one […]

Read more