Coder Social home page Coder Social logo

advent-of-code's Introduction

advent-of-code's People

Contributors

mattdsteele avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

advent-of-code's Issues

Day setup boilerplate

  • ✔️ Download and parse input
  • 🕐 Make test file (from template)
  • 🕐 Make prod file (from template)

Get feedback from Nick on TypeScript environment

Hey @nicknisi!

Just gonna open an issue here as I try figuring this stuff out, slightly higher fidelity than Twitter!

So! I've got a basic setup up & running in this repo.

I'm gonna write tests & production code in TypeScript.

My tools:

  • Typescript 1.7.3
  • tsc via tsconfig.json, typings through tsd.json; a postinstall hook runs tsd install
  • Source code in src/, test in test/, JS compiiled into built/[src|test]
  • Using neovim with typescript-vim plugin (no customizations)
  • Mocha for tests
  • npm scripts to actually run things; might add Grunt/Gulp later

My workflow right now is to run npm test, it has a hook to run tsc followed by mocha.

A few questions I've got about a TS env:

  • Any useful way to speed things up? Right now npm test takes three seconds to do basically nothing; I feel like it could be faster.
  • Are you compiling/getting feedback directly in vim? The typescript-vim plugin's docs say I can run :make, but I get this error:
    image
  • If you are getting feedback in neovim, any secrets to making it async?
  • Is there a better way to handle the typings pragma? It's kind of a pain to have to type the /// <reference stuff
  • Any other pain points I should be aware of, or stuff you wish was handled better?

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.