HNHacker News
TopNewBestAskShowJobs

amptorn

700 karma · joined December 6, 2015

submissionscomments
amptorn··on It's probably time to stop recommending Clean Code (2020)
> "your code should read like well-written prose."

This is a good assertion but ironically it's not Bob Martin's line. He was quoting Grady Booch.

amptorn··on Coinbase outages
It's reasonable to evaluate the usefulness of a system by weighing the resources it consumes against the valuable output it produces. In Bitcoin's case the valuable output is around 10 financial transactions per second, and the resource it consumes is enough energy to power the Netherlands.
amptorn··on Show HN: Lovetris – Tetris which always gives you the best piece
I like how this is so low-effort that it still says "@ Things Of Interest" despite not being hosted there?
amptorn··on Hatetris – Tetris which always gives you the worst piece
No. It's right. If only S pieces are provided, you can make lines for ever. If S and Z pieces are provided, you can't.
amptorn··on Californians aren’t leaving the state en masse but are leaving San Francisco
> will probably always need to fix.

Quitter.

amptorn··on Lena
Henrietta Lacks and Lena Forsén are/were different people.
amptorn··on FTC Settlement with Fertility-Tracking App for Facebook/Google SDK Data Sharing
Why is that worth pointing out?
amptorn··on Coronavirus Could Push More Than 1B People to Extreme Poverty
You should be tipping triple right now, rich boy.
amptorn··on Base 65536
It's actually 65,792 code points total: 65,536 plus 256 for "padding" characters if the input has an odd number of octets.
amptorn··on We now consider Moment.js to be a legacy project in maintenance mode
What if you're working in a domain which does evolve? For example, every domain.
amptorn··on American Academy of Sleep Medicine calls for elimination of daylight saving time
Well, railroads still exist.
amptorn··on You advocate a ________ approach to calendar reform (2013)
> ( ) they tried that in France once and it didn't take
amptorn··on A new Go API for Protocol Buffers
> - Confusing: google.golang.org/protobuf@v1 doesn't exist, but v2 does.

This would not be confusing at all. The UUID package I use just skipped from major version 3 to major version 7 to avoid confusion with UUIDv4, UUIDv5 and a possibe UUIDv6. It was well-documented, and even if it wasn't, the upgrade was absolutely painless, as it would have been either way.

amptorn··on Programming trick questions
Other than sorting by birth date, what's your intended solution to this?
amptorn··on Programming trick questions
Realistically, this is for fun and games. Nobody should actually be asking you trick questions in a real scenario. It's okay not to be able to catch the trick.
amptorn··on Programming trick questions
Are you saying that he did not have an intended solution to the problem?
amptorn··on Programming trick questions
The even perfect numbers all have the formula

    2^(p - 1)(2^p - 1)
for some prime `p`. In code that's

    ((1 << p) - 1) << (p - 1)
for `p` = 2, 3, 5, 7 and 13, which is why you're seeing that interesting pattern of bits.

(There are no odd perfect numbers in the range under consideration.)

amptorn··on Larry Wall has approved renaming Perl 6 to Raku
It's a pretty good name I think!
amptorn··on What Happens to the Body on No Sleep
Productivity is just value you create for people who aren't you. Family, friends and travelling is value you create for yourself.
amptorn··on Questions to ask a company during a job interview
Yeah, the correct phrasing of that question is "Show me the place where I'll be working." They should be able to lead you down the corridor and show you potential future co-workers at work.
amptorn··on Is Perl 6 Being Renamed?
Wouldn't it have made more sense to hold off on the first announcement until there was consensus on a single new name, instead of having two or three inconsistent namesoperating simultaneously for a year? Neither of which might be the final one?
amptorn··on Is Perl 6 Being Renamed?
They renamed Perl 6 to "Raku" last year!! Am I losing my mind? This is a done deal! https://marketing.perl6.org/id/1541379592/pdf_digital
amptorn··on Despite High Hopes, Self-Driving Cars Are ‘Way in the Future’
The important things that self-driving cars can't do aren't freak occurrences. They're elementary things like responding correctly to hand signals from someone directing traffic, or reading and obeying street signs written in plain English.
amptorn··on Not So Fast: Analyzing the Performance of WebAssembly vs. Native Code
What privacy and security attributes does WebAssembly have over a plain old web page?
amptorn··on Myths about Perl 6
If Perl 6, by this essay's own admission, has no target demographic and no niche, then who is this essay even aimed at? Who are we attempting to convince?
amptorn··on ROT13: good version
> rot13 isn't defined outside of a certain set

Ah, so, when you said "øbol comes through as øoby" you were saying that this is the correct behaviour?

amptorn··on ROT13: good version
This is a classic entry-level security mistake. You have to pick a work factor k and then do 2^k iterations of ROT13.
amptorn··on ROT13: good version
Just out of curiosity, what would you expect ø to encode to?
amptorn··on Openpilot – open-source self-driving agent
Inventing manned flight without anybody dying would have been completely possible. Use more caution, pay more attention to safety. But that's not the right hypothetical. This is inventing manned flight without endangering or killing innocent bystanders.
amptorn··on Facebook has been paying people to install a “Research” VPN
That's like the dictionary definition of "exploitation".
← PreviousPage 2 of 7Next →