Category: coding


fix it – webpack dynamic import

Spent about an hour trying to figure out why webpack was giving me an error when I was trying to dynamically import(). I even copied a webpack/babel config from a project that dynamic imports worked on, and changed the @babel/plugin-syntax-dynamic-import plugin to be the same version. I was close: https://github.com/webpack/webpack/issues/8656#issuecomment-455919625 in the odd case that […]

Continue Reading

update on ninja forms with conditions

In my last post, I speculated whether writing JS to make Ninja form conditions was better/faster than doing it using the build-in editor. I no longer wonder. We needed to make a change, from “Grade” to “Grade entering in the fall.” For all 6 students. And since I changed the text, the conditional logic broke. […]

Continue Reading

side project – ninja forms w/conditions

I was working on a student re-enrollment page and with Ninja forms and wanted the parent to be able to specify how many children they were re-enrolling. This allows Ninja forms to show the exact number of fields required, which I think looks more professional, and also allows all of those fields to be set […]

Continue Reading

lessons from a side project: score scraping

Yesterday I started (and kind of finished) a score scraping project from a local league. About an hour in I almost quit, feeling both “this is impossible” and “this is useless.” But it turns out it wasn’t impossible. And it may not yet be useless. So what did I learn? I’m not sure how to […]

Continue Reading

redux-promise v redux-promise-middleware

redux-promise works (ie has been working for me in my current projects), but redux-promise-middleware returns ACTION_PENDING, ACTION_FULFILLED, and ACTION_REJECTED, plus what I was really looking for: If you need to send extra information not included in the payload property, you can use the meta property. const foo = () => ({ type: ‘FOO’, payload: new Promise(), meta: { … […]

Continue Reading

Testing with Cypress

I finally, finally, finally set up testing for my slideshow project. It’s certainly not finished (I’m only a few tests in) but I had to make a few changes to my API and then figure out how to check them using Cypress and I’m so excited. I really wish the courses I had taken had […]

Continue Reading

When it isn’t working

I was working with hammer js today to add a “swipe to delete” option for my weather project. The swipe to delete was pretty easy, but no matter what I tried, I couldn’t then disable the swipe action based on user preferences. I’m pretty sure it was user error / lack of understanding on my […]

Continue Reading

Facebook – Incorrect Error Message (with Meteor)

I guess this isn’t Meteor specific, but I’ve been staring sadly at the following error message for the past hour, toggling every check box and setting I could find, and typing in every domain I could think of: It turns out, the problem wasn’t my App Domains. What I actually needed was to specify the […]

Continue Reading