Practical Interpretation of Code Formatting
summary
Claims that the Reason formatter actually rewrites code by modifying the parser and printer and operates on the AST rather than raw text, demonstrates a webpack plugin that formats hashtag API callbacks and aligns callbacks visually and chains, and shows conversion of old Reason syntax to the new JavaScript‑like syntax so migration works. It preserves some manual spacing so developers can preserve grouping intent, and the result is readable output that removes formatting debates and speeds reviews.
AI-written summary · about
chapters (9)
- 0:00Intro
- 0:44Code formatting is hot
- 1:02Code formatter?
- 2:45What if it's just hype?
- 3:53Programming 101
- 5:30What is the desired effect?
- 6:28Distraction free writing
- 7:01Painless reading
- 8:55Boring maintenance
related talks
20mThey see me refactorin'. They hatin'
43mMachine Powered Refactoring: Leverage AST's to Push Your Legacy Code (& the Web) Forward
29mMy Little Parser: Tooling is Magic
40mRefactoring large JavaScript codebases
08mA Prettier Printer
40mHow To (Semi-)Automate JavaScript Refactoring
31mMake your own code formatter in Swift
25mWriting Code to Update our Code
