Midwest Dev Chat

MidwestDevChat.com

  • The newest 15 messages in the super-cool #javascript channel.

  • 12/15 15:52:10 Alda: yeah
  • 12/15 15:52:11 Alda: heh
  • 12/15 15:52:29 Alda: to pile on, inside of each of those methods, there are several method calls to globally-instantiated objects
  • 12/15 15:52:32 Natashia: don't `const redis = require('./global-redis-instance')`, `module.exports = redis => yourCodeHere`
  • 12/15 15:52:38 Alda: the whole app presumes a ton of state exists confused
  • 12/15 15:52:38 Natashia: shakes his fist at the world
  • 12/15 15:52:43 Alda: LOLOL
  • 12/15 15:52:57 Natashia: yeah, most people write that code unless they write a test first
  • 12/15 15:53:05 John: The whole world presumes a ton of state exists.
  • 12/15 15:53:14 Natashia: That's why the world is hard to test
  • 12/15 15:53:23 Gina: then _pass in the world_ earth_africa
  • 12/15 15:53:31 Natashia: That doesn't fix anything :-P
  • 12/15 15:53:49 Gina: sure it does! It's the principle behind haskell's io monad stuck_out_tongue
  • 12/15 15:57:43 Natashia: >_<
  • *Usernames have been changed to protect the innocent.
We're currently 1003 members strong. Join us!
Request Invite

Check out all the cool channels!

Join the conversation!