Coder Social home page Coder Social logo

shared_modules's People

Contributors

ajbraus avatar awhit012 avatar ben-manning avatar benhulan avatar bgveenstra avatar cameronjacoby avatar cofauver avatar eerwitt avatar heystenson avatar ilias-t avatar janephilipps avatar jlopker avatar justincastilla avatar mnfmnfm avatar mtvillwock avatar nathanallen avatar nick-brennan avatar stanleyyork avatar tgaff avatar zoejf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

shared_modules's Issues

27-28-w02-d02-dawn-js-array-iterators

Would like comments on:

I’m working on the iterators stuff right now. I’m considering converting everything from:

var numbers = [1, 4, 9];
var doubles = numbers.map(function(num) {
  return num * 2;
});

to

var numbers = [1, 4, 9];
function doubler(num) {
  return num * 2;
}

var doubles = numbers.map(doubler);

At least initially because I don't think they're really comfortable with those anonymous functions yet. Although I think maybe @bgveenstra may have used them briefly (wed).

thoughts?

SQL intro (v27)

  • should be own repo if providing starter code
  • specify name of database to create to match code from readme

add how-to/plagerize.md

  • Original vs. derived work
    • Citing stack-overflow/blog copy-pasta with a comment
    • Mentioning collaborators with @github shoutouts
  • etc

express w/ or without controllers

We previously looked at 26's code and thought it was better organized. They have controllers for each route and use express.Router. We also considered that this might be overly complicated especially on the first day.

Please discuss, should we:

  1. Stick with our traditional approach of all the routes in server.js. See also this lab solution
  2. Move immediately to putting each route in controllers and using express.Router
    see an example of that here. ⚠️ Note that this requires re-writing pretty much all of our Node stuff.
  3. Delay this and start with the traditional approach, later (maybe the next day with Todo Lab, or the next week with Tunely) switch to Router and controllers.
  4. Something even better that you'll explain to us here. ❔
  5. Juliana suggested what I'm calling a namespace-less mountable app (no router) She also suggested calling the files resources instead of controllers:
module.exports = function(app) {app.get('/api/admin/unconfirmed-users', auth.ensureAuthenticated, auth.ensureAdmin, function (req, res) {
    User.find({ confirmedAt: null }, '+email').exec(function (err, users) {
      res.send(users)
    })
  })
}

Please note that this issue is time-sensitive. Next week's lessons are already due and last-minute changes are bad news bears. 🐻

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.