VS Code is best when it’s just an IDE. I even have to drop into the terminal for some Git stuff
918 karma · joined July 23, 2018
VS Code is best when it’s just an IDE. I even have to drop into the terminal for some Git stuff
I've been using VS Code for years to write JavaScript/TypeScript, Python, Go, Terraform, and CSS. My settings file is 60 lines, 42 of which are "for file extension X use autoformatter Y" configs.
When I first switched to VS Code I was frustrated trying to make it conform to random expectations I had. Eventually I learned that it's easier to embrace VS Code's defaults for 99% of things. I just want an IDE that works well (nearly) out-of-the-box and VS Code gives me that
They were absolutely overvalued at those market caps, but it's wrong to say that "HN/VCs said those companies were worth X but they didn't reach X in public markets"
type FlagID string
var Constants = struct {
FooBar FlagID
FizzBuzz FlagID
}{
"FooBar",
"FizzBuzz",
}
func p(flag FlagID) {
fmt.Println(flag)
}
func main() {
p("hi")
}Re: redraft, I go back and forth. I think if we want to be textualists then we need a redraft because the founders couldn't possibly have envisioned the modern world. The idea of redrafting isn't that radical -- Thomas Jefferson wanted it [1].
But pragmatically, I don't think we'll ever redraft it. Both liberals and conservatives would have to agree to a redraft (they won't) and then agree on what the new draft would be (they won't). The only way to modernize the Constitution and Bill of Rights is to interpret it using a modern lens. "What would this document mean if it was written with today's world in mind?"
https://github.com/bcherny/json-schema-to-typescript
It works really well
JS has added a ton of nice features while continuing support the skeletons in its closet. But you're free to ignore the vast majority of skeletons. You can block the old cruft using linters (e.g. preventing usage of `var`)