HNHacker News
TopNewBestAskShowJobs

goodoldneon

918 karma · joined July 23, 2018

submissionscomments
goodoldneon··on Sunsetting Atom
Sorry, “weird pattern” was a poor choice of words. I just meant that it’s an approach that isn’t common so it’s understandable that VS Code can’t handle it well.

VS Code is best when it’s just an IDE. I even have to drop into the terminal for some Git stuff

goodoldneon··on Sunsetting Atom
You're deploying via VS Code? If so, that's a weird pattern.

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

goodoldneon··on Tim Hortons app violated laws in collection of ‘vast amounts’ of location data
They'll put it in an "updated terms of service" dialog. People always just accept updated terms of service just like they always just accept the initial terms of service
goodoldneon··on Making pip installs a little less slow
Then you have to explicitly included all transitive dependencies for your dev dependencies, too. With Pipenv, only have to list your direct dev dependencies
goodoldneon··on Making pip installs a little less slow
Right. I was replying to a comment that asks if there was anything that improves upon pip, which both Pipenv and Poetry do
goodoldneon··on Making pip installs a little less slow
Pipenv or Poetry. Pip by itself is missing some key features, like separating dev dependencies (e.g. mypy)
goodoldneon··on The Collison Brothers Built Stripe into a $95B Unicorn
Right, but that not OP's point. OP said that insane valuations reached in private markets can't be reached in public markets. Public markets can be just as irrational as private markets
goodoldneon··on Today’s JavaScript, from an outsider’s perspective (2020)
Yea, TypeScript makes things easier. I think it's _also_ way better than plain JavaScript, but the simpler tooling is a huge value add on its own
goodoldneon··on The Collison Brothers Built Stripe into a $95B Unicorn
Uber peaked at ~$150 billion market cap. Peloton peaked ~$55 billion market cap.

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"

goodoldneon··on Show HN: Remult – a CRUD framework for full-stack TypeScript
Take a look at https://github.com/bcherny/json-schema-to-typescript, too. I used it successfully at a previous job. IIRC, I had to write some code to convert OpenAPI to JSON Schema but it wasn’t onerous
goodoldneon··on Show HN: Remult – a CRUD framework for full-stack TypeScript
What are you using to codegen the types?
goodoldneon··on Arm Open Source makes a seamless migration to GitLab
Well yea, you'll save money if you use a bunch of Microsoft products and they give you a bundle discount. But a lot of companies rarely use Microsoft products beyond GitHub
goodoldneon··on Arm Open Source makes a seamless migration to GitLab
Agreed! I like working on open source stuff on GitHub but GitLab CI is so nice
goodoldneon··on Arm Open Source makes a seamless migration to GitLab
GitLab's "premium" tier is the same price as GitHub's "enterprise" tier, and GitLab Premium looks to be enough for most companies
goodoldneon··on Safer Enums in Go
This type of thing has been surprising to me as I've learned Go. It seems like Go makes a great effort around safety in a lot of ways, but sometimes will avoid safety and say "just be careful" instead
goodoldneon··on Safer Enums in Go
Your example wouldn't work for function param types, right? The following code compiles even though I'm not passing a valid flag ID:

  type FlagID string
  
  var Constants = struct {
    FooBar   FlagID
    FizzBuzz FlagID
  }{
    "FooBar",
    "FizzBuzz",
  }
  
  func p(flag FlagID) {
    fmt.Println(flag)
  }
  
  func main() {
    p("hi")
  }
goodoldneon··on Apple Maps location scan spikes WiFi latency every 60 seconds
Location services in general seem to cause latency spikes for me. I just disabled the feature altogether
goodoldneon··on Twitter CEO fires two top executives, freezes hiring
I'd be shocked if these changes weren't Musk's
goodoldneon··on The ACLU Has Lost Its Way
An army, like a militia, would fall under "collective right". So I don't see how their stance is against standing armies.

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?"

[1] https://news.illinois.edu/view/6367/206732

goodoldneon··on The ACLU Has Lost Its Way
The 2nd Amendment isn’t as cut and dry “minimal gun restrictions” like some organizations want you to believe. I think the ACLU’s interpretation is defensible
goodoldneon··on Can a laptop from 2012 be a viable home server?
Yea, I've seen some spotty support from Plex clients. Also with browsers: IIRC Chrome and Firefox don't support x265 but Safari does
goodoldneon··on Can a laptop from 2012 be a viable home server?
What necessitates the transcoding? Is your TV unable to support some formats?
goodoldneon··on Managing Python Versions with Pyenv
Yea, the JS community's "moar dependencies!" culture is a big downside. But I do think that npm is great and pip should take a lot of cues from it
goodoldneon··on Managing Python Versions with Pyenv
How do you make sure that transitive dev dependencies end up in requirements-dev.txt? Do you manually say "dev dep X depends on transitive deps A and B, so I'll put X, A, and B in requirements-dev.txt"?
goodoldneon··on Managing Python Versions with Pyenv
I wouldn't say those tools are "redundant or not needed". Tools like pipenv add features on top of pip and venv. Stuff like separating development dependencies (e.g. mypy), since you don't need that stuff at runtime. Pipenv will also move transitive dependencies into a lockfile instead of cluttering your requirements.txt (or rather Pipfile in the pipenv world).
goodoldneon··on TRPC: End-to-end typesafe APIs made easy
If you're using OpenAPI, you could use this to generate TypeScript interfaces:

https://github.com/bcherny/json-schema-to-typescript

It works really well

goodoldneon··on How to build an absurdly backwards-compatible website
Don’t do this. What if something strips the header between the client and your server? Always upgrade to HTTPS. Not doing so isn’t worth supporting 25 year old browsers
goodoldneon··on JavaScript Containers
Backwards compatibility !== languishing

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`)

goodoldneon··on Ask HN: Have we screwed ourselves as software engineers?
Agree with everything except the monorepo comment. The polyrepos I've experienced were more complicated than the monorepos
goodoldneon··on Using TODO For Everything
++ to putting the issue number next to the TODO
← PreviousPage 6 of 10Next →