HNHacker News
TopNewBestAskShowJobs

3pt14159

17,869 karma · joined October 21, 2008

zachaysan@gmail.com

https://twitter.com/zachaysan

www.zachaysan.com

submissionscomments
3pt14159··on The case for energy optimism
There is also the down side of up.

At some point, maybe ten or twenty years from now, we're going to have a lot of bankrupt companies around the hydrocarbon economy. Everything from gas stations to oil rigs is going to have non-trivial costs to decommission. The sooner we understand this and plan for it with specialized funds[0] that can handle it the better. Right now we're in the established candle makers versus upstart electric bulb manufacturers part of the story. The difference for us is the sheer scale of this transition. We already have petrol stations in Canada that are run at a yearly loss because the estimated costs of disposing of the surrounding soil are high enough that it's cheaper in net value accounting terms to lose money year by year.

[0] I imagine something like an escrow style fund where payments into the fund are paid back with interest after a predefined period of time if there is no cleanup from the entity or its subsidiaries, including subsidiaries that have been sold off to new owners. That way it aligns incentives and rewards good actors that take preventative steps to ensure less costly decommission.

3pt14159··on Ask HN: Have you ever heard of users demonstrating against software?
Honestly, as a former government contractor at a couple different places, this is pretty good bang for the buck. The planning meetings alone were probably $12m.
3pt14159··on How to build software like an SRE
What you're missing is that most people in web dev use a full featured framework like Django or Rails and do not need unit tests nearly as much as integration tests because very, very, very often most of the architectural decisions have been made for them and the framework linking it all together is where mismatches between expectations seep in.

"Wups, I pluralized this thing that should have been singular in the routes / urls file"

Also, when developing APIs for the front end it's pretty unlikely that I need to test Rabbit.permanent_url on its own and much more likely I need to test things like listing all the rabbits for a given rabbit farm that are candidates for sale in the local meat market.

Where exactly should this test go? The framework handles all the magic SQL generation and the frontend folks really only care about input -> output.

If you're building everything from the ground up, then of course there will be way more unit tests, but with an established framework you don't have to test everything. You trust the framework to get some things right for you.

3pt14159··on Ask HN: Have you ever heard of users demonstrating against software?
Also, ArriveCan was frequently mentioned by many in the protests around covid.

From my end: I dislike near-mandatory apps by governments, but I felt like Covid was an exceptional time and at least it is non-mandatory now at the boarder.

3pt14159··on PAGNIs: Probably Are Gonna Need Its (2021)
Premature class isolation: Usually bad.

Some notable exceptions are things like addresses where many times users have multiple, but usually people splitting up the user table and the "user profile" table are just causing headaches. A wide user table is fine.

Premature method or function isolation: Usually good.

Even if there isn't reuse, the code is usually more readable.

    def let_in_bar?
        return self.is_of_age_in_region? and self.is_sober?
Is a perfectly fine isolation with very little downside.
3pt14159··on Low Earth Orbit Visualization
> but there's only a handful of these.

Huge if true.

3pt14159··on We are stuck with egrep and fgrep (unless you like beating people)
I switched to just grep, but it's still part of the same line of thinking. I really, really, really dislike it when something that used to be reliable changes or is removed. I understand and accept that things change, but when it's as simple as a symlink or what have you I really do not see the cost-benefit tradeoff for sunsetting something.
3pt14159··on We are stuck with egrep and fgrep (unless you like beating people)
The problem is that we don't just live on our own machines. We hop around to different boxes and just being able to type what you are used to matters. My dotfiles and other tools don't go or even work everywhere.

We shouldn't change the oldest parts of our OSes without a really good reason.

3pt14159··on Wikipedia is not short on cash
Disclaimer: Wikipedia writer for a while and I think they're in my will? (Really should double check that thing.)

For me, there are two completely separate arguments here:

1. Is Wikipedia currently run by people that I think have the right strategic direction and priorities?

2. Does Wikipedia greatly contribute to the world and could they contribute more?

On the first point I'm, um, politely, a little skeptical. Trying experiments is great, but mission bloat means that a lot of money is wasted on things that aren't at least presently making the world better.

On the second point I do not know how anyone could come to more of a resounding YES to. English Wikipedia is awesome, the Wikitionary project has helped me in multiple languages ranging from Russian, Greek, Chinese, and of course English. Would I personally prefer if they put more effort into getting Wikipedia English translated into other languages more thoroughly, especially the languages of poorer countries? Yes. Of course.

But the thing is, even if the ninety cents of a donation to Wikimedia is spent on what I personally consider to be less effective projects, the dime that is spent on things that I really agree with still buys WAY, WAY, WAY more impact than even a $20 donation anywhere else on education. So if you're going to donate $20 to your alma mater then I recommend either writing for Wikipedia or donating to it, because the impact is real.

3pt14159··on Ask HN: How to build a website that will last 30 years?
I will actually answer the question.

Design the website. Really be sure you've got it right. It's going to be very painful to get it wrong.

Burn the website into an ASIC. The ASIC should have multiple, redundant communications channels (starlink, cat5, etc). Sign a contract with a 30 year period with an existing, well regarded, US-based registar. Make sure it is fully lawyered.

Power the thing with the geomatic waves of the earth like they do in Alert, Canada. May require some effort to bring the power close enough to the coms.

Build a large anti-ICBM and anti-Asteroid system to ward off planetary threats.

Edit: Or burn it as a QR code into the moon with lasers. When you're done that, you're doing pretty good. But watch out for sharknados.

3pt14159··on We should measure well-being instead of failing to measure economic productivity
The problem I have with economists is that they pour their effort into what is trackable after waving away the softer stuff.

What does it rhyme with?

- Companies that pour their effort into fine tuning their websites and adverts based off of what their analytics tells them. Years later their product dies and nobody really says why. [Narrator: All the best designers and developers left as the product and company slowly turned soulless.]

- City planners that make deals with builders for suburban housing which increases the tax base. Decades later they're stuck dealing with the outsized infrastructure maintenance costs for things like sewer lines without the proper density to afford them.

- Prisons, schools, and hospitals get mandates from the state to include a fruit with every breakfast. Individually packaged jam fits the poorly written bill, so that's what we all get.

And on and on.

The point is, there are things we need to do and problems we need to address that are frustratingly hard to define and agree upon, but the answer is not to wave them away. The answer is the opposite. To head right into them and try to really make a difference without getting lazy.

I could, easily, in an afternoon mention dozens of quantifiable proxies for different aspects of a good life. I'm very sure that countries with the technical prowess of Apple and Tesla are capable of achieving better instruments of our collective wellbeing.

What we need are economists with courage and resolve. There is obviously something horrible going on across the world right now even if GDP keeps growing.

3pt14159··on Tell HN: Missing service – StackOverflow, but with monetary rewards
> Days? I know I must have wasted weeks, in total.

I meant for a single bad interface!

In total I shudder to think about all the wasted time.

3pt14159··on Tell HN: Missing service – StackOverflow, but with monetary rewards
I've had the same idea. Operationally, what's needed is speed.

I do not care to learn some obscure, poorly documented API by trial and error. If I could write a failing test or three in a playground then post it in an appropriate chat window and have two or three people claim it at once, with the winner earning 50% of the prize, I would utilize this with some frequency.

The problem with an SO-style solution is that I don't get confirmation that anyone is working on it. So if my project is under a stiff deadline then I have to keep trying myself.

That said, yes, someone please build this. There is a market for people like me that have wasted days on ffmpeg just to get X to do a Y without a Z.

3pt14159··on A Ruby program that generates itself through a 128-language quine loop
You're teasing, but I understand the question so I'll answer.

I've had a good deal of joyous fun exploring quirky ideas with mathematics and software. It's old hat now, but back in 2011 I repurposed an algorithm primarily used for document classification by creating my own tokenization of features and stuffing it in there then running it through a ton of photographs, but forcing it to only 200 dimensions of freedom.

Since the algorithm didn't have room to fully separate dimensions, it had to start grouping photos together along dimensions that had to account for multiple topics. I'll never forget bursting out laughing as I explored one particular dimension that was "motorcycles...... and photos of women taken from street level aimed at their scantily clad behinds."

Collaborative filtering proved to me that some stereotypes really do have grounding in reality.

As for the quine stuff? I actually had more fun repurposing[0] some of the ideas for a letter to my MP about the dangers of electronic voting back in 2011 when it seemed possible that Canada was going to allow it at the federal level. I chuckled more at literally sending self-eating code to a presumable less technical politician than I did at getting something to repeat itself.

[0] https://github.com/zachaysan/darth_vader_wins_election

3pt14159··on How Americans edit sex out of my writing
I'm trying to read through this piece but its difficult because I don't really buy the underlying premise that this is indicative of North American editors generally and even specifically I find it hard to imagine that it is this extraneous at all as often to comment about.

I tend to believe writers and their point of view on the editing process. I've been published in a small number of publications and I know the process. My biggest gripe is the cultural norm of not being able to pick or have veto power over the title, not editors that are completely inflexible and stacked with their own moral code which crushes over the prose.

At the end of the day this seems like there was no meeting of the minds between the editor and writer before they started working together, but I do not believe it is at all this prevalent anyway.

Yes, I'm a Christian too, like the derided editor, but I know the difference between literature and trashy erotica. While I appreciate the former and avoid the latter, I would never brow beat a writer as an editor over the choice of having parents smoke cigarettes in front of their kids and I simply wouldn't take up the task of editing work that was outside my moral boundaries. I like fiction that rings true. Reality includes all sorts of bad parenting.

There is a type of writing that is in vogue lately where preconceived biases get validated through a juicy narrative that is obviously unjust and thereby justifying the reader's pre-held notions. I hate it.

It's my one concern with the Substack / filter bubble way of doing things. A thousand avid fans can prop up work that is mostly meritless and divisive. Or they can prop up valuable work that the public generally ignores.

If only it didn't cut both ways.

3pt14159··on A Ruby program that generates itself through a 128-language quine loop
It's easier in some languages than others.

There is a delight in doing it, but don't overdo the anticipation. I've found greater delights in programming.

3pt14159··on Free Markets Don’t Buy Peace
It's not just the economic factors, though of course those are very important, it's the other stuff that comes with trade like stronger familial and social ties, joint cultural appreciation, and so on, that bind together countries more closely. Absent boarder disputes or mass immigration countries with trade and joint problem solving (e.g., climate change) tend to get closer over time.
3pt14159··on Free Markets Don’t Buy Peace
They could also just default on just the portion of the debt that China holds. I never really understood this fear. If you go to war with a country and burn it's debt holdings sure you get a knock on your trustworthiness a touch, but it is literally war. Bond holders in, I don't know, Brazil aren't going to bat an eye.
3pt14159··on Pessimism is a barrier to progress
Yes. There is a but we must try anyway and try as hard as we can type of pessimist that refuses to give into nihilism. I used to be this type of pessimist about the future of technologic warfare before I found reasons for hope.
3pt14159··on US Job Outlook for Software Developers, Quality Assurance Analysts, and Testers
Thanks for pulling this up.

The total number of software developers has gone up so much that I fear that its going to start dragging up the salaries of peer-occupations like Civil Engineering, which are fairly easily retooled as junior software developers, as the demand starts to outstrip relative supply.

3pt14159··on How fateful?
I didn't say nothing to worry about I said that, on balance, location tracking probably helps law abiding citizens more than it hurts them. It's an economic choice.

I am far less likely to initiate a serious crime in Canada than I am to be falsely accused of a serious crime. It is hard to fake exhaust data and saying "I saw him near the John St Starbucks at 9am with a gun" is fakeable just by following someone around. You don't need my Google data to prove it. It's on the CCTV cameras, it's on the cellphone towers my phone is pinging, etc.

I understand this makes people nervous, and I agree that there is something to be nervous about, but when I talk about the practical choice of recording your location data to a provider like Google I don't see much practical downside at the present time.

3pt14159··on Junior Designers vs. Senior Designers
I actually liked the list. I see past the literal meaning of each sentence into situations I've seen managing designers in the past.

On deadlines: Sometimes there is pressure from the top that is completely unrealistic. I think it is ok to ask for a deadline, but I think it's better to propose a timeline as a way of getting to the stakeholder's real deadline in a manner that gets them amenable to reduce scope. It's an exercise in educating the stakeholder about the sheer weight of the ask. Time, money, output. Pick the one you care about the least.

On multiple designs: Of course for this one it depends. A simple button or form on a secondary page does not need several rounds of polish and iteration. Star feature on an upcoming flagship product, though, does.

On explaining decisions: This is mostly about getting buy-in from multiple stakeholders. I may be CTO and love the new design, but there are three other chairs in the room looking at the work and its more efficient if you prime the meeting with the constraints you were dealing with. A strong secondary benefit is that it makes you easier to recommend to others, since a big part of a strong referral is trusting that the referred party can properly portray themselves and their work to others.

On waiting for directions: If you've never managed juniors this may come as a shock, but a large number of juniors will sit and wait until they're told what to do. It is partially explained by cultural background at times, but its present everywhere I've worked. If one thing juniors took away from the article was this, then I would count that as a major win.

I could go on, but my overall point here is that many commenters are looking at this as designers that are focussed on specific skills of the craft, instead of seeing it as a stakeholders point-of-view on junior versus senior designers.

There is one thing I would add to the list that transcends the junior-senior distinction: Nothing beats an honest, enthusiastic designer.

3pt14159··on How fateful?
I disagree.

Certain systems are more efficient if they operate with high trust. The TTC is one of the places where we go with the more efficient option that allows defectors to gain at the cost of others. I actually know someone that is a communist and refuses to pay TTC fare on the basis that he thinks it should be completely socialized. He estimated that the one time he got a ticket paid for only 1/3rd or 1/5th of his total usage.

In other words, defectors are still net-ahead. The system is under-policed.

But the small amount of policing that exists exerts enough social pressure to stop widespread flouting of the rules. I was happy to provide proof that my very-soon-to-be-expiring transfer was from a valid trip.

I'm sorry that you've had a poor interaction with an officer, but I think it's partially a matter of how one treats officers. Even when I've been in the wrong, I did my best to treat them with respect and I quite honestly have been treated well by every police I've dealt with, save one exception when I was pulled over in America. I accept that this happens, and a curt reply and a stiff ticket is not the end of the world and I am happy to have largely lived and traveled in places where the police were civil.

3pt14159··on How fateful?
I took the pragmatic approach and said to myself "look, if Google really wants to know where I am the only way to avoid it is to go into the woods without my phone, so why not?"

Then one day the Toronto Transit Commission police thought I was re-using someone elses streetcar fare because of how old it was. I just prefer the streetcar to subways, so I took a longer route. As soon as I pulled out my phone with my location tracking they believed me. I didn't even have to resort to mentioning that I used to work for the TTC as a coop student.

I'm not saying I absolutely love all this surveillance-lite stuff, but in an honest breakdown of the tradeoffs for law abiding people living in real democracies or other trustworthy states I fail to see a huge downside at the present time.

3pt14159··on Bitcoin Is Digital Scarcity
Linear doesn't make sense in the very long term.

Anyway, this is all besides the point. Now that governments have figured out they can colour coins these types of projects are doomed. Once you have a poisonable ledger and powerful entities see it in their interests to poison some of the branches of the tree then there is no actual advantage of using it. Not in the long term, I mean.

Personally, I'm pleased. I do not want global, decentralized, electronic currencies.

3pt14159··on A study of lights at night suggests dictators lie about economic growth
It is news to me that the numbers could be this cooked.

I, perhaps naively, thought that trade numbers would betray any meaningful difference in GDP versus the reported figure. I am in the top 1% of news consumption. This is real news if the numbers are truly this different.

My main question on the graph relates to China. How much could pollution influence the makeup of this data?

3pt14159··on Companies are paying huge sums to show their ads to bots
What blows my mind is how bots even care about this stuff.

Back in 2009 I started my first tech startup with a friend. We crawled the net and stored the locations of and contents of online ads. Aside from the mistake that this actually costs a lot of money and we were too young to effectively raise money, we also made another mistake: Ads were about to get very dynamic. Not just ads rotating on a site, but search retargetting and hypertargetting were about to take off.

So I did what any reasonable founder would do after learning that the business just wouldn't work. I turned down a just offered $200k (huge at that time) and closed up the business.

Years later I'm learning that bots are still interested, and I suppose there is some signal here, but its minuscule compared to what was available back then. Plus, there are fewer and fewer out-of-app websites people spend there time on these days.

I dunno. I'm happy that startup never went anywhere. It would have sucked to be swept into the ad tech industry over the past decade.

3pt14159··on Montreal is what North America could be
I like Montreal and Toronto. I live in Toronto because I like the diversity, but I'm sure I would happily live in Montreal too.

That said, it isn't fair to compare housing costs between Quebec cities and Ontario ones. Land tax is much, much higher in Quebec to the point where even just across the river from Ottawa you'll see 2x housing differentials. Add in language laws of Quebec which, I'm actually in favour of, and you'll end up with parents preferring Ontario even when they have a choice of where to live for work.

Lastly, the scale on those maps matter. Montreal is much smaller than Toronto. My home city has a bunch of condo buildings, yes, but they aren't all surrounded directly by suburban homes. There are a decent number of midrises and row houses, though not as much as I would hope for. But when looking at maps, it's important to keep in mind the absolute SCALE of Toronto. Toronto is HUGE. Only two American cities beat it out in size, New York and LA. Montreal has more midrises around its core in large part because its core is so small and that is the natural function of the mathematics of things. In Toronto we build our core up, up, up. Over twenty-five buildings are over 200 meters tall, compared to Montreal's measly two.

We can learn from some of the things Montreal does right, and I agree their midrises are generally speaking better than ours, but it's more complicated than this article makes it out to be, even if there are real lessons to glean from its good faith take.

3pt14159··on Former NSA Employee Arrested on Espionage-Related Charges
Would you have accepted a python solution? I typically don't do this type of stuff using raw openssl on the rare occasion I need it.
3pt14159··on I argue that studying the history of philosophy is philosophically unhelpful
Ahhh, I can read it that way now that you point out the other way of looking at it. Thanks for the followup and insights.
← PreviousPage 7 of 34Next →