digits-2023-10-15/todo.yaml

353 lines
13 KiB
YAML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

todo:
- review readme tail to finish // answer 3 questions, gofmt
- todo: go test
subtasks:
- my `go mod tidy` actually cleared `go.mod` file, probably weird localhost backwards
compatilble stuff
- todo: TestFormatUSD
subtasks:
- TestFormatUSD/zero
- TestFormatUSD/positive
- TestFormatUSD/negative
- TestFormatUSD/large
- no implementation
- naive `-$xx,yyy.zz`
- todo: comment emphasizes localization, which is minimum `-<always $>xx.yyy,zz`
details: |
BUT no indicator of what is "local". Could use system timezone/location stuff but that's weird.
https://phrase.com/blog/posts/number-localization/
english => xxx,yyy.zz
french => xxx yyy.zz
arabic => non-digits
azerbaijan => xxx.yyy,zz
hindi => ww,xx,yyy.zz
https://dev.to/theodesp/a-step-by-step-guide-to-go-internationalization-i18n--localization-l10n-4ig2
solved problem?
* golang.org/x/text
p := message.NewPrinter(language.BritishEnglish)
p.Printf("There are %v flowers in our garden.", 1500)
language.Greek, language.BrazilianPortuguese
language.Make("el"), language.Parse("en-UK")
ja, _ := language.ParseBase("ja")
jp, _ := language.ParseRegion("JP")
jpLngTag, _ := language.Compose(ja, jp)
fmt.Println(jpLngTag) // prints ja-JP
* reminds me of language of like C_LANG env variable I've seen...
* neato all under golang.org/x/text
p := message.NewPrinter(language.English)
p.Printf("%d", currency.Symbol(currency.USD.Amount(0.1)))
fmt.Println()
p.Printf("%d", currency.NarrowSymbol(currency.JPY.Amount(1.6)))
fmt.Println()
p.Printf("%d", currency.ISO.Kind(currency.Cash)(currency.EUR.Amount(12.255)))
fmt.Println()
* $ env | grep =en
LANG=en_US.UTF-8
so I can try $LANG.split(.)[0].split(_) or fallback to english because gotta have some default
- TestTransaction_String
- TestTransaction_String/MCCOLLOMS_INC
- TestTransaction_String/QUANTUM_ELECTRIC_INC
- TestTransaction_String/MARRIOTT_33716_NEW_ORLEAN
- TestAnalyzer_TransctionsSum
- TestAnalyzer_LargestTransaction
- TestAnalyzer_DuplicatesExcluded
- TestAnalyzer_GroupByCategory
- TestAnalyzer_BigSpendersReport
- TestAnalyzer_TransactionsFromURLs
- TestAnalyzer_TransactionsFromURLsConcurrent
- amount.go:Rounded probably does NOT handle float precision well... it is float64
tho...
scheduled: []
done:
- todo: hello world
ts: Sun Oct 15 10:41:52 MDT 2023
- todo: start
ts: Sun Oct 15 10:41:54 MDT 2023
- todo: review readme tail to finish
ts: Sun Oct 15 10:45:25 MDT 2023
- todo: read readme
ts: Sun Oct 15 10:45:25 MDT 2023
- todo: review readme tail to finish // answer 3 questions
ts: Sun Oct 15 10:45:52 MDT 2023
- todo: read readme
subtasks:
- quality > quantity as designed to not be finsihed
- internet ok
- pls `gofmt` // vimrc handles for me
- todo: setting up
subtasks:
- go 1.13 // i have 1.21
- more in analyzer_test.go
ts: Sun Oct 15 10:45:52 MDT 2023
- todo: start 3h timer
ts: Sun Oct 15 10:46:19 MDT 2023
- todo: go 1.13 // i have 1.21
ts: Sun Oct 15 10:46:19 MDT 2023
- todo: more in analyzer_test.go
ts: Sun Oct 15 10:47:33 MDT 2023
- todo: go test
subtasks:
- my `go mod tidy` actually cleared `go.mod` file, probably weird localhost backwards
compatilble stuff
ts: Sun Oct 15 10:49:10 MDT 2023
- todo: go test
subtasks:
- my `go mod tidy` actually cleared `go.mod` file, probably weird localhost backwards
compatilble stuff
- TestFormatUSD
- TestFormatUSD/zero
- TestFormatUSD/positive
- TestFormatUSD/negative
- TestFormatUSD/large
- TestTransaction_String
- TestTransaction_String/MCCOLLOMS_INC
- TestTransaction_String/QUANTUM_ELECTRIC_INC
- TestTransaction_String/MARRIOTT_33716_NEW_ORLEAN
- TestAnalyzer_TransctionsSum
- TestAnalyzer_LargestTransaction
- TestAnalyzer_DuplicatesExcluded
- TestAnalyzer_GroupByCategory
- TestAnalyzer_BigSpendersReport
- TestAnalyzer_TransactionsFromURLs
- TestAnalyzer_TransactionsFromURLsConcurrent
ts: Sun Oct 15 10:50:37 MDT 2023
- todo: go test
subtasks:
- my `go mod tidy` actually cleared `go.mod` file, probably weird localhost backwards
compatilble stuff
- todo: TestFormatUSD
subtasks:
- TestFormatUSD/zero
- TestFormatUSD/positive
- TestFormatUSD/negative
- TestFormatUSD/large
- no implementation
- naive `-$xx,yyy.zz`
- comment emphasizes localization, which is minimum `-<euro>xx.yyy,zz`
- TestTransaction_String
- TestTransaction_String/MCCOLLOMS_INC
- TestTransaction_String/QUANTUM_ELECTRIC_INC
- TestTransaction_String/MARRIOTT_33716_NEW_ORLEAN
- TestAnalyzer_TransctionsSum
- TestAnalyzer_LargestTransaction
- TestAnalyzer_DuplicatesExcluded
- TestAnalyzer_GroupByCategory
- TestAnalyzer_BigSpendersReport
- TestAnalyzer_TransactionsFromURLs
- TestAnalyzer_TransactionsFromURLsConcurrent
ts: Sun Oct 15 10:50:51 MDT 2023
- todo: go test
subtasks:
- my `go mod tidy` actually cleared `go.mod` file, probably weird localhost backwards
compatilble stuff
- todo: TestFormatUSD
subtasks:
- TestFormatUSD/zero
- TestFormatUSD/positive
- TestFormatUSD/negative
- TestFormatUSD/large
- no implementation
- naive `-$xx,yyy.zz`
- comment emphasizes localization, which is minimum `-<always $>xx.yyy,zz`
- TestTransaction_String
- TestTransaction_String/MCCOLLOMS_INC
- TestTransaction_String/QUANTUM_ELECTRIC_INC
- TestTransaction_String/MARRIOTT_33716_NEW_ORLEAN
- TestAnalyzer_TransctionsSum
- TestAnalyzer_LargestTransaction
- TestAnalyzer_DuplicatesExcluded
- TestAnalyzer_GroupByCategory
- TestAnalyzer_BigSpendersReport
- TestAnalyzer_TransactionsFromURLs
- TestAnalyzer_TransactionsFromURLsConcurrent
ts: Sun Oct 15 10:54:21 MDT 2023
- todo: go test
subtasks:
- my `go mod tidy` actually cleared `go.mod` file, probably weird localhost backwards
compatilble stuff
- todo: TestFormatUSD
subtasks:
- TestFormatUSD/zero
- TestFormatUSD/positive
- TestFormatUSD/negative
- TestFormatUSD/large
- no implementation
- naive `-$xx,yyy.zz`
- todo: comment emphasizes localization, which is minimum `-<always $>xx.yyy,zz`
details: |
BUT no indicator of what is "local". Could use system timezone/location stuff but that's weird.
https://phrase.com/blog/posts/number-localization/
english => xxx,yyy.zz
arabic => non-digits
azerbaijan => xxx.yyy,zz
hindi => ww,xx,yyy.zz
- TestTransaction_String
- TestTransaction_String/MCCOLLOMS_INC
- TestTransaction_String/QUANTUM_ELECTRIC_INC
- TestTransaction_String/MARRIOTT_33716_NEW_ORLEAN
- TestAnalyzer_TransctionsSum
- TestAnalyzer_LargestTransaction
- TestAnalyzer_DuplicatesExcluded
- TestAnalyzer_GroupByCategory
- TestAnalyzer_BigSpendersReport
- TestAnalyzer_TransactionsFromURLs
- TestAnalyzer_TransactionsFromURLsConcurrent
ts: Sun Oct 15 10:54:35 MDT 2023
- todo: go test
subtasks:
- my `go mod tidy` actually cleared `go.mod` file, probably weird localhost backwards
compatilble stuff
- todo: TestFormatUSD
subtasks:
- TestFormatUSD/zero
- TestFormatUSD/positive
- TestFormatUSD/negative
- TestFormatUSD/large
- no implementation
- naive `-$xx,yyy.zz`
- todo: comment emphasizes localization, which is minimum `-<always $>xx.yyy,zz`
details: |
BUT no indicator of what is "local". Could use system timezone/location stuff but that's weird.
https://phrase.com/blog/posts/number-localization/
english => xxx,yyy.zz
french => xxx yyy.zz
arabic => non-digits
azerbaijan => xxx.yyy,zz
hindi => ww,xx,yyy.zz
- TestTransaction_String
- TestTransaction_String/MCCOLLOMS_INC
- TestTransaction_String/QUANTUM_ELECTRIC_INC
- TestTransaction_String/MARRIOTT_33716_NEW_ORLEAN
- TestAnalyzer_TransctionsSum
- TestAnalyzer_LargestTransaction
- TestAnalyzer_DuplicatesExcluded
- TestAnalyzer_GroupByCategory
- TestAnalyzer_BigSpendersReport
- TestAnalyzer_TransactionsFromURLs
- TestAnalyzer_TransactionsFromURLsConcurrent
ts: Sun Oct 15 10:57:33 MDT 2023
- todo: go test
subtasks:
- my `go mod tidy` actually cleared `go.mod` file, probably weird localhost backwards
compatilble stuff
- todo: TestFormatUSD
subtasks:
- TestFormatUSD/zero
- TestFormatUSD/positive
- TestFormatUSD/negative
- TestFormatUSD/large
- no implementation
- naive `-$xx,yyy.zz`
- todo: comment emphasizes localization, which is minimum `-<always $>xx.yyy,zz`
details: |
BUT no indicator of what is "local". Could use system timezone/location stuff but that's weird.
https://phrase.com/blog/posts/number-localization/
english => xxx,yyy.zz
french => xxx yyy.zz
arabic => non-digits
azerbaijan => xxx.yyy,zz
hindi => ww,xx,yyy.zz
https://dev.to/theodesp/a-step-by-step-guide-to-go-internationalization-i18n--localization-l10n-4ig2
solved problem?
* golang.org/x/text
p := message.NewPrinter(language.BritishEnglish)
p.Printf("There are %v flowers in our garden.", 1500)
language.Greek, language.BrazilianPortuguese
language.Make("el"), language.Parse("en-UK")
ja, _ := language.ParseBase("ja")
jp, _ := language.ParseRegion("JP")
jpLngTag, _ := language.Compose(ja, jp)
fmt.Println(jpLngTag) // prints ja-JP
* reminds me of language of like C_LANG env variable I've seen...
* neato all under golang.org/x/text
p := message.NewPrinter(language.English)
p.Printf("%d", currency.Symbol(currency.USD.Amount(0.1)))
fmt.Println()
p.Printf("%d", currency.NarrowSymbol(currency.JPY.Amount(1.6)))
fmt.Println()
p.Printf("%d", currency.ISO.Kind(currency.Cash)(currency.EUR.Amount(12.255)))
fmt.Println()
- TestTransaction_String
- TestTransaction_String/MCCOLLOMS_INC
- TestTransaction_String/QUANTUM_ELECTRIC_INC
- TestTransaction_String/MARRIOTT_33716_NEW_ORLEAN
- TestAnalyzer_TransctionsSum
- TestAnalyzer_LargestTransaction
- TestAnalyzer_DuplicatesExcluded
- TestAnalyzer_GroupByCategory
- TestAnalyzer_BigSpendersReport
- TestAnalyzer_TransactionsFromURLs
- TestAnalyzer_TransactionsFromURLsConcurrent
ts: Sun Oct 15 10:59:12 MDT 2023
- todo: go test
subtasks:
- my `go mod tidy` actually cleared `go.mod` file, probably weird localhost backwards
compatilble stuff
- todo: TestFormatUSD
subtasks:
- TestFormatUSD/zero
- TestFormatUSD/positive
- TestFormatUSD/negative
- TestFormatUSD/large
- no implementation
- naive `-$xx,yyy.zz`
- todo: comment emphasizes localization, which is minimum `-<always $>xx.yyy,zz`
details: |
BUT no indicator of what is "local". Could use system timezone/location stuff but that's weird.
https://phrase.com/blog/posts/number-localization/
english => xxx,yyy.zz
french => xxx yyy.zz
arabic => non-digits
azerbaijan => xxx.yyy,zz
hindi => ww,xx,yyy.zz
https://dev.to/theodesp/a-step-by-step-guide-to-go-internationalization-i18n--localization-l10n-4ig2
solved problem?
* golang.org/x/text
p := message.NewPrinter(language.BritishEnglish)
p.Printf("There are %v flowers in our garden.", 1500)
language.Greek, language.BrazilianPortuguese
language.Make("el"), language.Parse("en-UK")
ja, _ := language.ParseBase("ja")
jp, _ := language.ParseRegion("JP")
jpLngTag, _ := language.Compose(ja, jp)
fmt.Println(jpLngTag) // prints ja-JP
* reminds me of language of like C_LANG env variable I've seen...
* neato all under golang.org/x/text
p := message.NewPrinter(language.English)
p.Printf("%d", currency.Symbol(currency.USD.Amount(0.1)))
fmt.Println()
p.Printf("%d", currency.NarrowSymbol(currency.JPY.Amount(1.6)))
fmt.Println()
p.Printf("%d", currency.ISO.Kind(currency.Cash)(currency.EUR.Amount(12.255)))
fmt.Println()
* $ env | grep =en
LANG=en_US.UTF-8
so I can try $LANG.split(.)[0].split(_) or fallback to english because gotta have some default
- TestTransaction_String
- TestTransaction_String/MCCOLLOMS_INC
- TestTransaction_String/QUANTUM_ELECTRIC_INC
- TestTransaction_String/MARRIOTT_33716_NEW_ORLEAN
- TestAnalyzer_TransctionsSum
- TestAnalyzer_LargestTransaction
- TestAnalyzer_DuplicatesExcluded
- TestAnalyzer_GroupByCategory
- TestAnalyzer_BigSpendersReport
- TestAnalyzer_TransactionsFromURLs
- TestAnalyzer_TransactionsFromURLsConcurrent
ts: Sun Oct 15 11:10:53 MDT 2023
- todo: analyzer_test.go
subtasks:
- tdd because cicd because no qa or ops
- fix failing `go test`
- fix tests in order pro tip
- analyzer_test.go is OK
ts: Sun Oct 15 11:10:57 MDT 2023