It's even worse than it appears.
Friday March 12, 2021; 11:07 AM EST
  • I'm juggling too many balls in my development work. I just lost about 24 hours tracking down a problem. I had some code outside of my davetwitter module that really belonged in there, so after a half-day of working on something else, I decided to quickly move the code from where it was to where I wanted it. However since I was actively developing the davetwitter module, I included it using a require call to include a copy of the file, without going through NPM; and here's the key thing, in one place, and in another I used NPM. I couldn't understand why a properly initialized config object at startup would all of a sudden be completely uninitialized when I used it later. The answer was there were two davetwitters, one initialized the other not. A sloppy mistake I would never have made in a bootstrap. This kind of thing only happens when factoring. I guess the moral of the story is I should only attempt these integrations at the beginning of the day, when no other project is loaded into my brain, and I'd be more likely to spot these kinds of mismatches. In the end it cost me a lot of time to try to do it quickly. That's a lesson I've had to learn many times, and still am learning. I even have a slogan for it -- "Slow down to hurry up." #

© copyright 1994-2021 Dave Winer.

Last update: Friday March 12, 2021; 11:38 AM EST.

You know those obnoxious sites that pop up dialogs when they think you're about to leave, asking you to subscribe to their email newsletter? Well that won't do for Scripting News readers who are a discerning lot, very loyal, but that wouldn't last long if I did rude stuff like that. So here I am at the bottom of the page quietly encouraging you to sign up for the nightly email. It's got everything from the previous day on Scripting, plus the contents of the linkblog and who knows what else we'll get in there. People really love it. I wish I had done it sooner. And every email has an unsub link so if you want to get out, you can, easily -- no questions asked, and no follow-ups. Go ahead and do it, you won't be sorry! :-)