项目作者: jforatier

项目描述 :
My 'chocolate-free' Advent Calendar
高级语言: TypeScript
项目地址: git://github.com/jforatier/advent-of-code.git
创建时间: 2020-12-01T08:23:45Z
项目社区:https://github.com/jforatier/advent-of-code

开源协议:MIT License

下载


🎄 Advent of Code - Typescript

My ‘chocolate-free’ Advent Calendar for TypeScript

2020 Progress
2019 Progress

CI
codecov


⚙️ Installation

Required: Node 14 or higher (download)

  1. npm i

▶️ Running all solutions

  1. npm start

Running specific day in dev mode

  1. npm start day<N>

Example:

  1. npm start day01

🧪 Test

  1. npm test

🎓 Lesson Learned - with expression throwed in the house

General

  • You will do shit … Deal with-it (don’t panic you’ll clean-it) - “Why i write the same code twice ? Why this function of 30 lines is not used.”
  • You will dont’t get it all on first read … Baby-steps - “A plane in a tree ? Why ?”
  • Take care of your inputs (and edit-it) - “$#% my code was good it’s the f### input parser (i write)”
  • Be verbouse (but not too much) - “const allTheRulesSortedByNameWithValueChecked”
  • Test Test & Test (whatever how) - “Ok, so that function was not doing what expecting she should does. Waht the test are telling ? Ah … no test here …”
  • Be different, You have 1 way of coding recpect-it, follow-it each have pro and cons - “Why the f### in Python it take 2 lines, Ok but my code is more readable …”
  • Share and Read others but avoid ctrl-c/ctrl-v - “Hey, that’s a great idea … 5 minutes later ‘This f### method is revreted …”
  • Don’t forget default case - “I don’t understand, i’m logging thing here … Ah didn’t see that case”

Technical

  • BitManipulation - @parkerjmed/practical-bit-manipulation-in-javascript-bfd9ef6d6c30">Read

🛠️ Tools discovered

I want to … Selected Seen Skill
… run test mocha jest Know-It
… write readable test chai Know-It
… know coverage NYC Know-It
… parse file with ease

🔬 Solutions to experiment

I want to … Selected Challenger Done
… share my code Github BitBucket
  • [x]
… quick-share and run some parts of my code Codesandbox
  • [ ]
… take care of my commits CommitLint
  • [ ]
… add some fun and relax on my repo GitMoji
  • [ ]
… know my coverage Codecov
  • [x]
… know how much time it take sentry
  • [ ]
… know if i can do better in my way of coding codacy sonarcloud.io
  • [ ]
… monitor quality with a lifecycle codeclimate
  • [ ]
… know vulnerabilities snyk
  • [ ]
… watch dependencies issues Dependabot
  • [x]
… auto-update my dependencies Dependabot Greenkeeper, Renovate
  • [x]
… check/format my code prettier
  • [ ]
… check my doc issues markdownlint
  • [ ]
… check my code issues eslint
  • [ ]
… monitor run sentry
  • [ ]
… make releasable solution release-it
  • [ ]

🙏 Thanks