HNHacker News
TopNewBestAskShowJobs

goodoldneon

918 karma · joined July 23, 2018

submissionscomments
goodoldneon··on The Python Paradox (2004)
“Felt like they wanted C#” makes sense because Anders Hejlsberg was involved with TypeScript. Glad they stopped forcing C# into it and let it be its own thing. Not that C# is bad though!
goodoldneon··on The Python Paradox (2004)
TypeScript is fantastic —- such a flexible type system.

It was introduced 18 years after JavaScript but feels like a perfectly natural evolution of JavaScript. TypeScript _should_ feel like a wonky bolt on but it’s wonderful. A testament to the folks who built it

goodoldneon··on CamelCase vs. underscores revisited (2013)
That sounds good, but we might need a class attribute that disables filesystem corruption in case we need to access `___________super_ultra_private` somewhere
goodoldneon··on CamelCase vs. underscores revisited (2013)
I wish Python enforced private attributes. I once worked in a codebase where this was roughly true:

  _usually_private_but_ok_to_access_if_you_are_knowledgeable
  __private_unless_you_need_an_escape_hatch
  ___absolutely_private_except_for_a_few_times
goodoldneon··on Making sense of TypeScript using set theory
Importing with `require` is CommonJS, not part of JavaScript’s spec. CommonJS is a Node-only thing so supporting it isn’t required in a JS superset
goodoldneon··on You might not need an ORM
Plus some ORMs have nice schema migration tools. Engineers should still verify what the auto-generated migration is doing, but that's much better than writing the migration by hand
goodoldneon··on Making sense of TypeScript using set theory
That isn't what "TS is a superset of JavaScript" means. That phrase means "TS syntax is a superset of JavaScript syntax". Your example is syntactically valid in TS -- it just fails a type checking
goodoldneon··on Bitwarden design flaw: Server side iterations
The notebook is still less secure because of phishing
goodoldneon··on Things I want to see in JavaScript and Front end development in 2023
What does your eslint config look like? AirBnB’s config is the worst offender for nitpicks
goodoldneon··on Feature flags in a CI pipeline
Bespoke feature flag systems can become a quagmire. You might think “we only need a boolean value”, but then you need a number, and then you need a string, and then you need a UI to manage it, and then you have a 2nd service and DB and have to expose feature flags via an API endpoint, and then you realize that getting feature flag values via HTTP calls is causing latency and reliability issues, and then and then and then.

I worked at a company that went far down that slippery slope and now there’s and horribly convoluted bespoke feature flag system that no one enjoys using and no one wants to maintain.

I’ve used LaunchDarkly and it’s really nice. The only downsides I’ve experienced are:

- UI is complicated.

- They have the concept of end users but not end “organizations” (like “set this flag to X for an entire customer organization”). There are hacky ways to do this but they feel icky.

goodoldneon··on Feature flags in a CI pipeline
Would logging feature flag values be enough? Then you could look at stdout to see what the value was during each job
goodoldneon··on The Billionaire and Rising GOP Mega-Donor Gaming the Tax System (2022)
The company makes nearly all of its money on short-term trades, but short-term trades have a much higher tax rate than long-term gains. Since short- and long-term taxes are calculated in separate buckets, if you create losses in the short-term bucket then you can drastically reduce your tax burden. These aren't really losses though, since they're balanced by opposite long-term bets
goodoldneon··on Ask HN: Is TypeScript worth it?
They might’ve meant the type errors, rather than runtime errors. TypeScript’s type errors can get flat out unreadable when you’re dealing with moderately complicated types. Even errors with generics can get ugly.

That said, I still love TypeScript

goodoldneon··on Your tech stack is not the product
Good architecture leads to faster feature development and increased stability, which makes your users happy
goodoldneon··on The Yaml document from hell
I would quit within a month
goodoldneon··on Ruby 3.2.0 is from another dimension
Does Ruby still not allow type annotations in the same file as your code? Last time I checked, you had to put them in separate .rbs files. That’s a dealbreaker for me
goodoldneon··on Modules, not microservices
If the services need to be in separate data centers then how would a monolith be a solution? Monoliths can't span data centers
goodoldneon··on Pyright: Static Type Checker for Python
Sweet! I might have to work on upgrading us from 1.4 to 2.0
goodoldneon··on Pyright: Static Type Checker for Python
I appreciate that argument but some codebases are heavily reliant on “magic” libraries like SQLAlchemy. The SQLAlchemy mypy plugin helps a lot. Well, at least with SQLAlchemy 1.4; dunno if 2.0 needs the plugin
goodoldneon··on Rant: Year of Linux on the desktop
Maybe Windows fans holding onto one of its last remaining advantages? I have a Windows desktop solely for games. I’d be 100% done with Windows if all the games I play worked flawlessly on Linux
goodoldneon··on Too big to live, too loved to die: Big Tech's billion dollar curse of the free
The article says that Gmail is reported as part of Google Cloud and Gmail is supposedly a massive money loser
goodoldneon··on Turn your best programmers into managers
> a necessary qualification, but not a sufficient one

I like that phrase

goodoldneon··on A Yubico FAQ about passkeys
I don’t use 2 factor for most sites. Do I really care if my HN account is compromised? So for sites that I do care about (e.g. GitHub), yes I register both. It isn’t as inconvenient as you’d think because I don’t sign up for many sites.

Since I use my Yubikey for SSH, I’m frequently adding both Yubikeys as authorized keys on machines. But I keep an authorized_keys file with both public keys so I don’t need to physically grab my backup

goodoldneon··on A Yubico FAQ about passkeys
You’re totally right. I never recommend Yubikeys to non-technical people
goodoldneon··on A Yubico FAQ about passkeys
I use a password manager too. The yubikey is usually my second factor
goodoldneon··on A Yubico FAQ about passkeys
That’s what I do. I keep my backup in a fireproof, airtight container
goodoldneon··on A Yubico FAQ about passkeys
I have 2 yubikeys and always register them both. So if one is lost or broken then I still have another to log into sites.

As for theft, if you’re using your yubikey as a 2nd factor then they still can’t log in because they don’t know your password. If you’re using your yubikey as both factors then it either has a PIN or biometrics, so the thief can’t log in.

My main use for my yubikey is for SSH. I have PIN-protected SSH with a private key that can’t be exfiltrated

goodoldneon··on Fast CI with MicroVMs
The benefit of Kaniko (relative to Docker-in-Docker) is that you don't need to run in privileged mode.

We test our containers in our Dev environment after deploying

goodoldneon··on Fast CI with MicroVMs
> poor security model for running containers or building them within a job

You mean Docker-in-Docker? If so, we used Kaniko to build images without Docker-in-Docker

goodoldneon··on Crypto exchange AAX suspends withdrawals
You still have people with their own wallet. But the vast majority of people don't want to deal with the complexity of decentralization so they prefer centralization
← PreviousPage 4 of 10Next →