by metadat · 3y ago · 0 comments
interfacer - Automatically Suggest Interface Types in Go
https://github.com/mvdan/interfacer
https://news.ycombinator.com/item?id=11397905 (9 comments)
shmfmt - A shell parser, formatter, and interpreter with BASH support
(Submitted often but not yet discussed)
---
/me whispers: Hint: You could be that guy [1] (or gal, they, it, etc):
/submit shmfmt
Feel free to leave a link to your submission here for other inquisitive parties to stumble upon.
[1] https://youtube.com/watch?v=HQXTxG8JBAw&t=105s
Transparency: Clip is mildly offensive
1) Is "deprecated" and literally the first sentence states its use is discouraged because often such suggestions are misleading and bad advise.
2) From the readme it appears it just suggest to changes of parameter types in functions to existing interfaces. I was hoping to see something that suggests interface definitions from existing types based on whether share methods with same names.
About 2) I guess it is indeed kind of unnecessary as such suggestions are kind of trivial. On the ither hand I recently started to learn how to use interfaces and I have kind of a difficult time to wrap my head around how to make idiomatic use of that concept. So even such trivial help would actually be of some use to me, simply because it removes some cognitive load and I be able to see many examples (even potentially bad, but compiling ones) in front of my eyes.
https://news.ycombinator.com/item?id=34754116
It’s nice, and it probably deserves to be more widely known...
Shfmt – format shell programs (like gofmt, rustfmt)
https://news.ycombinator.com/item?id=34754116
@typical182 - thanks for doing the thing!