Skip to content

Toy problems and drills in JS and Node, for DevMountain students (and anyone else).

Notifications You must be signed in to change notification settings

CameronEldonGale/pineapple-curry

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pineapple Curry

Toy problems and drills!

There's a reason for this repo's name.

JS and CSS

  • The master branch is a bunch of files with problems in them.
  • The solutions branch has all the same files, but with solutions (some of them with mulitple solutions).

Node and Express

  • In each directory, you'll find an index.js with instructions.
  • There will be things in here that are completely unfamiliar. I strongly suggest keeping this open at first.
  • There's a directory of bare Node (no Express/Koa/Hapi/whatever framework) problems.
  • There's a handful of Express drills.
  • The Mongo directory contains some reading material and problems for MongoDB and Mongoose.
  • You'll touch on ES2015 going through these. It's time to exercies your Googling skillz!
    • Read up on let, const, and arrow functions.
    • You may need to upgrade Node. I highly recommend using n for this.
      • npm i -g n ; n latest ; npm i -g npm
  • Remember that programming in Node should almost always be done asynchronously.
    • requires are synchronous; almost everything else should be using callbacks.

Here's an example of a very simple Node program, using modern ECMAScript.

'use strict'

const
  net    = require('net')
, port   = 5678
, server = net.createServer(connection => {
  // do stuff
})
server.listen(port)
console.log(`server listening on ${port}`)

This is a lot of new material all at once. Do what you're comfortable doing. If you're looking for something to do over interim week, maybe do some research and try to finish the rest. If you power through them all, I'd definitely recommend trying this project.

Have fun!

Mongo

  • Still working on this.

React

  • For the moment, just imagine there's an index.html with a div you can target, and your build system is already taken care of for you.

Updated semi-regularly.

PRs, bug repots, and suggestions welcome.

About

Toy problems and drills in JS and Node, for DevMountain students (and anyone else).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 78.4%
  • HTML 21.5%
  • CSS 0.1%