HNHacker News
TopNewBestAskShowJobs

quacker

803 karma · joined January 13, 2011

submissionscomments
quacker··on In defense of coding interviews
One thing to realize is that interviews are a two-way street. Do you think you want to work with the interviewers? Do you like the interview process? If the interview process is poor, what other kind of hiring decisions is the company making? Are you going to want to work with the people they end up hiring?

You learn a bit about the company during the interview, and if that bit is bad, then move on. If they ask shitty leetcode questions and the interviewers are hostile or hung up on unimportant details - move on to another company.

quacker··on My students cheated... a lot
My only critique of the teacher here is not having a enough empathy for these students and spending far more energy trying to catch cheaters than address the fact that these students have gotten a raw deal.

I agree, except that this teacher did have tons of empathy for the students. That's pretty clear from the lengths they went to individualize the repercussions, offer second chances, and so on.

I suspect this teacher has perhaps a bit of fun catching cheaters? I'm not sure. They've written code to detect plagiarism in the past. They use a quiz/exam structure that's ripe for cheating: multiple chances for quiz retakes, long windows for exams, and question re-use between quizzes and exams. They wrote code to archive the chat log daily, identify students, and determine instances of cheating. They gave second chances, creating a new syllabus, after which cheating still occurred. Then they wrote this article.

So I agree - the teacher spent a disproportionate amount of time on the cheaters, which is unfair to the honest students.

Why not use cheat-resistant course material? They were able to restructure the second midterm exam this way - one question at a time, no backtracking, randomized order, and no question re-use. I suppose this is also time sink to combat cheating, but it seems more efficient than spending additional time filing reports and writing chat analysis code and so on.

quacker··on Managing Python Versions with Pyenv
> It doesn't though. The default format for requirements doesn't specify which requirements are top-level and which are not. Updating dependencies on a project that doesn't have this distinction is complete pain. It also doesn't work when "production" might mean different environments with different Python versions.

This is why (imo) you should include immediate dependencies in setup.py install_requires, and use requirements.txt for the "lock file" that contains all dependencies.

quacker··on Managing Python Versions with Pyenv
Pyenv has nothing to do with pipenv.

Pyenv is mainly for installing versions of Python. It's useful if you work on multiple packages that each needs a different version of Python, or if you have one package that you test with multiple versions of Python. (Alternative to apt/yum/brew or manually downloading Python from python.org)

pipenv is for installing Python packages for your project. (Alternative to pip, poetry, etc)

quacker··on My upgrade to 25 Gbit/s Fiber To The Home
I'm wondering: is my storage fast enough to write at 25 Gb/s?

SATA drives max at 6 Gb/s, and probably a bit worse than that in practice.

M.2 NVMe SSDs can reach 25+ Gb/s on sequential writes. Maybe I could overclock these to squeeze a bit more out too. Although, an 8TB M.2 drive will cost over $1k for now.

I suppose there's also RAID. Although, I'm not sure what other limits/gotchas I'd run into there.

quacker··on We lost 54k GitHub stars
> It's easy to be an armchair engineer and say "well, obviously, don't make this mistake in the future".

It's sort of equally easy to say Github should do X or Y to improve the UX in this (rare?) case without actually knowing the effort or opportunity cost.

Like maybe I'd rather Github figure out how to not have outages so frequently and how to not accidentally give people million+ dollar bills and such.

quacker··on AirPods don't “just work”
>Sorry to break it to you but Bluetooth also operates on the 2.4GHz ISM band.

Right, but "2.4 GHz wireless audio" is what to search to find information and non-BT products.

It is interesting to see your comments about Bluetooth. I appreciate the standard. It's useful. But as a user I like things that just work, and Bluetooth audio has been subpar in my experience.

Sample size of one, but my experience with non-BT wireless headsets is superior to Bluetooth headsets in pretty much every way: no pairing issues and no BT profile switching madness with varying audio quality when I want to use a mic. I get low latency, high quality (even lossless) audio. On my particular headset, replacement dongles can be purchased and you pair it with the headset once (I've not had to do this myself yet though).

I would love to only use Bluetooth everywhere, but it is not without its shortcomings.

quacker··on Ask HN: What are well-paying alternative jobs to being a software developer?
Seems downvoted, but test roles are a legitimate alternative. It is not more/less work, but is a change of pace from dev/eng roles.

Test positions vary. QA might mean tedious manual testing, or it might not. What you'd probably want is a software developer in test (SDT) position.

This is maybe a rare good experience, but I was a software developer in test (SDT) early in my career, and enjoyed it. The salary bands were the same as dev positions at that particular company. I wrote test strategies and automated everything: end-to-end tests, CI pipelines, performance tests, etc. I gave a few internal talks, switched teams/projects frequently (once per year), and met whole bunch of people.

A big difference for me between QA/SDT and Dev/Eng is I could be more passive. I didn't run meetings and had less responsibility for the project. I never talked to a customer once, although you need a sense of what they want. If my tests weren't 100% finished/passing, the thing is still put in front of users anyway. When you find bugs, the fixes are prioritized against everything else (i.e. non urgent). Usually I wasn't finding major issues anyway, but working on regression tests to ensure most things are basically working from release to release.

YMMV. It's still a lot of work, but different. If you're a competent dev, you'll stand out easily as an SDT.

quacker··on AirPods don't “just work”
Another option is 2.4 GHz wireless, which is common in gaming headsets, at least, for low-latency / high-quality audio. The downside is it requires a dongle.
quacker··on A pair of dice which never roll 7 (2004)
My simple solution was:

- Use a normal d5 and d6.

- On a roll, if the sum on the dice face is >= 7, add 1 to the sum.

If I roll 2+3, the result is 5. If I roll 3+4, the sum is 7, so add 1 to get the result of 8.

The gives you this distribution, and is simple in practice.

      1  2  3  4  5
    1 2  3  4  5  6
    2 3  4  5  6  8
    3 4  5  6  8  9
    4 5  6  8  9  10
    5 6  8  9  10 11
    6 8  9  10 11 12
quacker··on Gunicorn
Completely agree on Gevent. The UX was outstanding.

In general, I personally don't love the direction Python 3 has taken with asyncio, type hints, and more and more syntactic sugar. Meanwhile, no real improvements to packaging or to performance of pure Python code. But I'm just a bystander and Python is a big ship to steer, so I get it.

Languages like JavaScript that have been async from the start work well

This is one of several reasons I've enjoyed gradually switching over to Go from Python. Concurrency is more or less a pleasure in Go. It equals the great UX of Gevent (i.e. Goroutines) but baked into the language and multiplexed onto many real threads (versus only one thread in Gevent).

quacker··on Rust Moderation Team Resigns
There's a community of external contributors that deserve (or would appreciate) some notification about it though.
quacker··on OSHA to require employers with 100 employees vaccinate or test workforce
> Why must I be vaccinated if the vaccine doesn't prevent spread?

"Why must I go the speed limit if it doesn't prevent an accident? Why wear a seat belt if it doesn't prevent injury? Why have airbags if they don't prevent death?"

There are no guarantees in life (death and taxes, notwithstanding). The bottom line is that vaccines significantly reduce spread.

> I am comfortable catching the disease and even comfortable dying from it (the numbers are vastly on my side)

The argument being that you have a slim chance of having a severe reaction to COVID?

You have an even slimmer chance of a severe reaction to a vaccine. Why not get vaccinated?

quacker··on China has forbidden under-18s from playing games for more than three hours/week
I guess I'm curious: What are you expecting minors who currently enjoy video games to do instead in their free time?

If they pick up reading and decide they like those endless fantasy series, is that better than playing a video game for the same amount of time? Why?

If they decide to watch TV or movies instead of video games, is that better? Why?

Should they spend that all that free time studying and doing homework instead? Why?

quacker··on Ask HN: Have you found a good desk chair?
I've been using a Haworth Zody for 7 years, and I like it pretty well.

Nothing wrong with the Aeron, but I find the Zody is (1) a better price ($200 used for mine, or $650 new[1]), (2) more attractive, and (3) the adjustment mechanisms are smoother (armrests in particular).

The Zody has pretty much all the same kind of ergonomic options as the Aeron. Although, the backstop and forward tilt option is not standard on all Zody chairs for all time (mine has neither)

1: https://store.haworth.com/products/zody-office-chair

quacker··on White House eyes subsidies for nuclear plants to help meet climate targets
Interesting. I know nuclear power is far safer than it's general reputation.

Is nuclear really safer than solar?

This[1] has some data and estimations for death rates measured based on deaths from accidents and air pollution per terawatt-hour (TWh), which suggests nuclear has 0.07 deaths per TWh, which is marginally higher than wind (0.04), hydro (0.02), and solar (0.02).

So, it's very close!

1. https://ourworldindata.org/safest-sources-of-energy

quacker··on All C++20 core language features with examples
> The problem is more or less solved - see Nix.

Sorry, but I'm really not sure what you mean by "solved".

Nix is yet another (language agnostic) package manager with certain tradeoffs. But, if there is not an available Nix package for a specific version of a library I need to use - I'm out of luck.

Nix is not a build tool designed to work with arbitrary or latest development versions of libraries, for example. And, it will never solve that problem even _if_ it is technically capable of doing so - because there is no force in the world that would get all projects in all languages to use it.

quacker··on All C++20 core language features with examples
> I actually extremely dislike language specific package managers. I'm on Linux, the packages should be in my package manager. I don't want to maintain multiple package managers. nmp is actually the worst here.

As a user of software that doesn't care how it's built, sure. But system package managers are not a solution for general development with C++, or any other language.

If I want to use C or C++ to create software, how do I use libraries that aren't available in a system package manager? What if I need a version of a library that's not available in my system package manager? There are answers here but they aren't good answers (build from source, using whichever of N build tools the project happens to use, or hope there are prebuilt libs hosted somewhere)

Relying on system package managers to contain dependent libraries makes cross-platform development a complete PITA (more that it already is). Now you need the specific versions of all your libraries in package managers on all platforms, which is a complete non-solution for real development.

quacker··on DigitalOcean S-1
It worried me that they’re only at a couple hundred MM in a self-proclaimed 116B+ opportunity after 10 years.

Yes. How do they grow further? DO will be compared to AWS and Azure in the market, and there's a good chance their stock will be punished as a result. Plus, if DO actually makes in-roads in market share, AWS is a beast that, if it wants, can crush them on pricing and features for long enough to kill them.

quacker··on Why I Built Litestream
That only solves a narrow range of disasters. Your disk could die or the file system becomes corrupted or your ec2 instance is accidentally destroyed or etc.
quacker··on New Intel CEO rehiring retired CPU architects
Can you elaborate? I'm an outsider. I see that both have proven track records. What makes Hinton the significantly better choice?
quacker··on Intel Problems
Agreed. I’m not super knowledgeable but AMD just caught up after years of Intel stumbling to get to 10nm. Intel’s 14nm chips are still very competitive with AMD, so it seems that Intel on 5nm should beat AMD on 5nm, for example.

Intel will either solve its process issues in its own factories or, worst case, they outsource production to TSMC - either of which eliminates any process/manufacturing advantage held by AMD and Apple.

On a 5-10 year timeline, I don’t see a reason for Intel to continue stumbling on 5nm and 3nm processes though.

quacker··on Parler’s de-platforming shows the exceptional power of cloud providers
> But we've now done the experiment in a big way and the results seem overwhelmingly negative to me, to the point where they present a credible existential threat to civilization, on a par with climate change.

Free speech is certainly a double-edged sword. For example, would you be comfortable running a large site on which users spread misinformation about climate change? Would you continue allowing that misinformation?

It’s a pretty hard question for me personally.

(Practically speaking, you might seek to redirect profits from that misinformation toward donations that help combat climate change, or something similar to offset the impact of that misinformation.)

quacker··on Facebook Says It Is Removing All Content Mentioning 'Stop the Steal'
You are underestimating the power of misinformation.
quacker··on Facebook Says It Is Removing All Content Mentioning 'Stop the Steal'
> Even here on HN any attempt at putting forth the wrong opinion on the election will result in a ban.

Politics are off-topic on HN.

Off-Topic: Most stories about politics, or crime, or sports, unless they're evidence of some interesting new phenomenon. Videos of pratfalls or disasters, or cute animal pictures. If they'd cover it on TV news, it's probably off-topic.

1. https://news.ycombinator.com/newsguidelines.html

quacker··on Locust – Open-source Load Testing Tool
> This sounds really interesting and like good engineering (tm), would you mind sharing which company this was for? Maintaining good blackbox e2e tests and the infrastructure is one thing, finding time (and space in the roadmap) to do that and load test on top of that is a great engineering indicator IMO.

You’re really hearing about a unique case. The engineering org there had basically no consistency across teams/projects. Every product team was independent and responsible for their own services. So different teams deployed their services to different infrastructure with different programming languages, different frameworks, different databases, different monitoring and logging solutions, and so on.

I was in the QA org and was embedded as an SDET on a particularly well-functioning product team and had a lot of independence to solve problems as I saw fit with support from great forward-thinking devs. I got their e2e/integration tests to a point where it was super easy for devs to add at least some new tests themselves, which freed up some of my time to slowly build out a performance test.

But, very few other teams were getting to the point of doing any non-trivial load testing. I tried evangelizing Locust a little bit, but there wasn’t enough demand for it without a turnkey solution - something a bit hard to make without much consistency across teams. Not to mention the culture and processes weren’t there to consolidate on a single solution anyhow.

So, grass is always greener. That company’s engineering org has since been decimated by layoffs and outsourcing unfortunately.

quacker··on I almost quit caffeine in one year
I actually just started drinking coffee this year or so.

I never drank coffee because I hated the taste and always prioritized a good night’s sleep and regular exercise so just never felt I needed the boost.

With a job change pre-COVID, and then the switch to exclusive work from home in 2020, I’ve found my motivation levels are a bit down and it’s quite easy to lose focus. I exercise less and am a bit more restless when I sleep. I’m less energetic overall.

I have a very small cup of coffee, which is half milk. So never more than 4oz total, usually less than that, and not more than one a day. I try to only have it when I find I can’t get myself to focus. It’s such a small amount that I’m hoping the effect is more due to placebo than caffeine, but it does give me that bit of extra energy and helps me focus.

Ultimately, I see caffeine as a crutch, and that I really need to regroup and exercise a bit more, which should help me sleep soundly at night and help restore my focus and energy levels.

quacker··on Locust – Open-source Load Testing Tool
Yep, I like Locust but been a while since I’ve needed it again.

It’s main advantage over simpler tools like ab or httperf is being able to simulate most any kind of user interaction. Whereas other tools tend to just spam static predefined HTTP requests at a server (which is great when that’s all you need), Locust is great at simulating complex user behavior, such as users clicking through different pages of your site, or clients that make common sequences of API requests, perhaps to a variety of servers at different urls.

In my case, I was load testing a RESTful DNS management api over http and, as part of the same performance test, simulating DNS traffic to nameservers managed by that API. Locust is horizontally scalable and incredibly flexible since you can write arbitrary Python code to make it do whatever you want.

quacker··on Write code. Not too much. Mostly functions.
Yes. For example, a distributed system composed of various microservices, where the microservices can use different code styles, different programming languages, be maintained by different teams, etc.
quacker··on Show HN: After 10 years my side project has hit $8k/mo in revenue
Weird phrasing, restating: For individuals that want it, it's likely much greater than $1/mo in value and they'd likely pay more for that tier.

The question is how far past $12/yr are they willing to pay for email, considering free email addresses are ubiquitous?

← PreviousPage 4 of 11Next →