Files
learngo/interfaces/log-parser/refactor-notes/refactor-03-deprecated/changes.md

14 lines
343 B
Markdown
Raw Normal View History

2019-08-17 15:55:25 +03:00
### PROBLEM
+ `parser.go/parse()` also does updating. back to square one.
+ we need to extract the reusable behavior: scanning.
+ inflexible:
+ adding a filter is hard. needs to change the `scan()` code.
+ adding a grouper is also hard. domain grouping is hardcoded.
## SOLUTION
+
## IDEAS:
+ make domain filter accept variadic args