HNHacker News
TopNewBestAskShowJobs

goodoldneon

918 karma · joined July 23, 2018

submissionscomments
goodoldneon··on AdGuard Home: Network-wide ads and trackers blocking DNS server
I could be wrong but I don’t think pihole supports DNS over TLS out of the box. But AdGuard does
goodoldneon··on Meta Quest Pro
If it solves the “only one conversation at a time” problem with online meetings then yes. I’d rather be in a virtual room with proximal volume than a Zoom meeting with people yelling over each other
goodoldneon··on So you're using a weird language
You could use ncc to compile a binary:

https://github.com/vercel/ncc

goodoldneon··on Rockstar Games confirms they were hacked by an outside party
Zero trust doesn’t mean 0 network segmentation. Zero trust is supposed to be the opposite of walled gardens
goodoldneon··on Phorge: Going Public
Good stuff! I miss Phab’s task trees and stacked diffs
goodoldneon··on Bouncer – Private SMS Blocker
This is probably a dumb question, but is it possible that a malicious update to Bouncer could allow a bad actor to intercept my texts and ship them to a remote server?
goodoldneon··on OCaml at First Glance
Yea that’s the most common gotcha
goodoldneon··on OCaml at First Glance
The "comma makes a tuple" behavior is a big gotcha I've experienced in Python. I wish that behavior didn't exist
goodoldneon··on Using Mypy in Production
It absolutely is a code correctness tool. If I have a function that should only accept a string then static analysis will error in all the places that pass anything else. As long as you validate your inputs (i.e. request validation) then the type annotations are representative of the runtime types
goodoldneon··on Using Mypy in Production
> If you enforce them then you can't do duck typing, this means adding lots of boilerplate code to your code base, increasing the amount of bugs, since bugs are proportional to the total number of lines of code in the project.

You can still do duck typing. Python's Protocol and TypedDict do that for objects and dicts, respectively. Python also has sum types. I've added type annotations to thousands of lines of legacy code and rarely have I had to change any logic to accommodate.

> Typing related bugs that aren't caught in unit testing are very rare.

Not true at all. Unless you're writing unit tests that cover every possible code path, your unit tests will miss stuff. And I'd argue that 100% test coverage is a Herculean effort to write and maintain, and isn't worth it. Static analysis gives you tons of checking for free. The biggest benefit is forcing you to properly handle function arguments that could be None. Are you always checking that values aren't None before using them?

goodoldneon··on Using Mypy in Production
This is a terrible take. Using type annotations doesn’t mean Python is no longer a dynamically typed language
goodoldneon··on Using Mypy in Production
Personally, I like type hints at any program size. I do understand the benefit isn’t as obvious in small programs. But the value skyrockets when you have a large codebase that you can’t keep in your head.

All that said, Mypy is far worse than TypeScript. I think Mypy would be so much better if it improved support around dict inference. It shouldn’t just say “I dunno, it’s a dict of strings?” but rather infer an anonymous TypedDict

goodoldneon··on Milwaukee Tool Raises the Bar with New USA Factory
I worked in steel plants for 7 years before becoming a software engineer. Making the switch was the best professional decision I've made. Steel is cyclical so it was so stressful when times were bad -- I survived 4 mass layoffs. There's also the constant penny pinching in every possible way, even to the point of removing the free coffee from break rooms.

Now my salary is significantly higher and I deal with significantly less BS

goodoldneon··on “Who Should Write the Terraform?”
That isn't a good comparison since testing can still be part of your 9-5. There are good engineers who adamantly never want to work outside 9-5
goodoldneon··on Microdosing with psilocybin mushrooms: a double-blind placebo-controlled study
What's your dose and what are some of the benefits you get?
goodoldneon··on Use one big server
OP mentioned joining, so they were definitely talking about a single database
goodoldneon··on You Don't Need Microservices
Yea. IMO, microservices are usually more of an organizational solution than a technical solution
goodoldneon··on CircleCI Announces Support for Gitlab
Ah, I see what you're saying. I've had to do some debugging in GitLab instead of local and it wasn't ideal. To prevent mucking with important stuff, I have a scratch project that's dedicated to testing things. It isn't perfect, but I've been able to replicate nearly every problem in the scratch project
goodoldneon··on CircleCI Announces Support for Gitlab
We provision our self-hosted runners via Terraform and GitLab's Helm chart. It's a relatively painless setup, but obviously not a few button clicks and commands
goodoldneon··on I regret my website redesign
I'm a sucker for thin, salty fries. I know they're low quality but my mouth enjoys them
goodoldneon··on I regret my website redesign
McDonalds’ fries are actually good. But point taken
goodoldneon··on Vite 3.0
I agree that frontend stuff moves too fast in general, but Vite specifically is a good change. Frontend build systems are a mess (and often slow) so I welcome tools that improve the situation
goodoldneon··on Bell-Curve Opinions on Engineering
Depends on the criticality of your product. I used to work for Duo and testing in production would be a nightmare there. Deploy a bug and doctors are unable to authenticate. That said, the vast majority of products aren't that critical
goodoldneon··on What's New in Python 3.11?
I'd heavily argue against "stuff just works". Without type annotations it's this wild west where stuff fails in prod because you don't have tests that cover every possible code path. With static type analysis, you're able get automatic test coverage for a huge swath of your codebase.

I can't count the number of times I've seen None-related errors in prod because some function deep in the business logic can't handle a None parameter.

Another huge benefit of type annotations is that it adds friction for clever code. As I've retroactively added type annotations to old code, I've discovered wild polymorphism. Some functions required upwards of 10 type signature overloads to account for all the polymorphism -- engineers have to remember all that polymorphism! Engineers won't write extremely polymorphic functions if they also have to write the convoluted overloads.

goodoldneon··on What's New in Python 3.11?
> The new type system goes pretty much against the idea of duck typing

How so? Python’s Protocol and TypedDict have their limitations but are structurally typed.

> `a: int = "foo"` goes through the python interpreter without even a warning

As long as you’re validating inputs then you don’t need type validation at runtime. Input validation ensures that static types are representative of runtime types

goodoldneon··on AI Sentience Is (Obviously) Not the Real Issue
What is "alive"? And if you define "alive" biologically, why is being alive a prerequisite to sentience?
goodoldneon··on The Grug Brained Developer
It's a balance. As an engineer, I'm constantly dealing with the consequences of a "the feature worked so we shipped" mindset. Churning out features without thinking about architecture creates increasing amounts of code "tangle" that gradually slows down feature dev. On the flip side, thinking too much about architecture slows down feature dev
goodoldneon··on Meta VR prototypes aim to make VR 'indistinguishable from reality'
I think VR/AR will see huge adoption a lot sooner. I see a few prerequisites: - Hi-res screens (no more screen door effect). - No external hardware needed: no desktop, no base stations, and no controllers. - Capable of 100% VR, 100% pass-through, and everything in between. In other words, VR and AR no longer refer to different hardware but rather different modes. - Under $500.

Some units have some of those qualities but none have all of them. I can see units having all of those qualities within the next 10 years.

goodoldneon··on Construction is life
Depends on the purpose of the software. If it's a focused library then the perceived stagnation might actually be feature completion
goodoldneon··on Gitlab Now the Main Development Platform for Wine
GitLab CI is better than GitHub Actions
← PreviousPage 5 of 10Next →