HNHacker News
TopNewBestAskShowJobs

ptr

1,512 karma · joined July 17, 2011

pointer.hn@gmail.com
submissionscomments
ptr··on PHP the Wrong Way
Exactly, CGI (https://en.wikipedia.org/wiki/Common_Gateway_Interface) was a thing once.
ptr··on Sweden: higher Covid-19 death rate while failing to collect on economic gains
The picture you’re painting doesn’t represent reality — there were definitely lock downs (mostly related to elderly care, but also to varying degrees for the general public). People have worked from home since February.
ptr··on A look at the Gemini protocol: a brutally simple alternative to the web
The author is probably thinking about HTTP partial/range requests ("resumable downloads"); they can recover even if the TCP connection is closed.
ptr··on Speeding up function calls with lru_cache in Python
Why would fib(35) be more optimal with a differently sized cache? And how come _5_ is optimal? Wouldn’t 2 be all you need? What am I missing?
ptr··on macOS Big Sur Preview
I thought the third party tool was a kext and was made non-functional. Is there a new way?
ptr··on 11 Foot 8 – The Can-opener Bridge
The gas tank on top of a bus in Stockholm exploded when the bus was about to enter a tunnel protected by a metal bar: https://youtu.be/4pVStENP_Y4
ptr··on Hiring and the Market for Lemons (2016)
A hypothesis could be that these great developers became what they are due to an extreme internal drive at a young age; they already have tons of experience and the right attitudes/thinking patterns when joining the work force. If they continue learning (and why shouldn’t they, given their internal drive), how can anyone compete with them?

This intrinsic motivation implies that companies really can’t “grow” great developers, nor “pick them before they’ve blossomed”; what they can do is step aside and not create obstacles.

ptr··on In Defense of Bad Ideas
Generally a “long call” would mean that you bought a call option. If you sell/write the contract, you’re short. Your position is in the derivative instrument itself, it's not cascaded onto the underlying.

I also know multi-layered derivatives such as options on options and options on futures exist (as I’ve written code for them), but I’m curious what they’re used for.

ptr··on Apple Mail randomly becomes the frontmost application in macOS
This issue has been a real nuisance for at least 5 years and I could never retrain myself. One solution that worked for me was to make it full screen with its own Space.
ptr··on Our Long Bets and Predictions about 02020
But aren't they running the risk of computers treating these as octal numbers instead?
ptr··on Stockholm to reach herd immunity in May?
An interesting point regarding the "ministerial rule" is that the other Scandinavian countries don't have the same restriction on politicians, at least not in law/constitution.
ptr··on No lockdown, please, we’re Swedish
Most people that I know have been WFH for some time, myself for 4 weeks. It's not like people are out and about like they used to -- the social distancing is self-imposed.
ptr··on No lockdown, please, we’re Swedish
The case with Sweden is that the central government ("regeringen") cannot order people around; it's explicitly forbidden in the Swedish constitution ("ministerstyre"). This is different from many other countries, like Norway and Denmark, and might explain why there's no big leader that has felt the pressure to make people stay home.
ptr··on No lockdown, please, we’re Swedish
Not shaking hands has been the norm for some weeks now in Sweden. I thought this was the case everywhere?
ptr··on In the Coronavirus Fight in Scandinavia, Sweden Stands Apart
The government gets a lot of flak for this (tame? naïve?) approach, but the underlying principles are interesting in a general leadership perspective -- setting a goal without explicitly forcing people:

“Therefore, you don’t need to micromanage or control behavior at a detailed level through prohibitions or threat of sanctions or fines or imprisonment,” Mr. Tragardh said in a phone interview. “That is how Sweden stands apart, even from Denmark and Norway.”

Let's see how it goes.

ptr··on New Grad vs. Senior Dev
The senior probably had both Knowledge and Understanding, and decided (correctly) in a split second which solution was good enough in all applicable dimensions, including the temporal (is it easy to change this if we have to?)
ptr··on The Troublesome Active Record Pattern
An article dedicated to why Rail's Active Record library isn't actually using the Active Record pattern would be interesting!
ptr··on The Troublesome Active Record Pattern
It's a very interesting topic but it gets weird when large words ("completely unworkable", "causes huge problems in even small projects", "retrieving whole rows is hugely wasteful", "unfortunately Active Record access patterns break down almost immediately") are used to describe something that doesn't match one's experience at all. I wish we could focus on the Active Record concept itself rather than implementation details or specifics of projects where the pattern has been applied.

The article talks about projection, joins and aggregations, but many projects in Rails that I've seen just don't need those: it's often solved in the application. Yes, it's SUPER SLOW, it loads data just to throw it away again and can break ACID properties, but it generally works -- these applications aren't handling transaction on a stock exchange or controlling a pacemaker. And in the case of Rails' ORM, it's been very easy to do real joins, projections and aggregations when needed, meaning that the Active Record pattern itself hasn't excluded that possibility.

The paragraph about transactions is also a bit weird as it has nothing to do about the Active Record pattern afaics.

ptr··on Swedes rebelling against a cashless society (2018)
Unfortunately a lot of things tend to break down anyway when the power is gone: doors won't open, PoS machines won't work, etc. What might work is actually cell phone payments due to the towers having power backup.
ptr··on My Ordinary Life: Improvements Since the 1990s
Two other things he missed (or maybe that's the "too much to list" under smartphones) that have been a true revolution for me:

* Buying groceries in an app and getting them delivered directly to my door (without being super expensive nor low quality) same or next day. No more wasting time driving to a store just to run around in there trying to find everything. No standing in lines.

* Throwing away large pieces of garbage (boxes, furniture, recycling) without having to rent a car, you just take a photo with an app and someone shows up at your door within 30 minutes, ready to take it away for just $10-$20.

These things + living within biking distance of work makes it very easy to manage without a car.

ptr··on I Want Off Mr. Golang's Wild Ride
Erlang is mainly used in the control plane at Ericsson -- you'd never write a DSP in it for example. Most code is sadly not Erlang.
ptr··on The boss who put everyone on 70K
Market rate for .NET contractors here in Stockholm is ~£570 a day (~£71/h). I wonder why market rates are higher here, despite standing still for many years.
ptr··on The oldest company in almost every country (that is still in business)
Stora Enso is actually a merger of two companies; Swedish Stora and Finnish Enso. It’s Stora that was founded in 1288 with the copper mine in Falun (https://en.m.wikipedia.org/wiki/Falun_Mine), which produced 2/3 of Europe’s copper needs at one point in time. It was also the world’s first stock company apparently, and it’s still in business.
ptr··on Sweden gives employees unpaid time off to be entrepreneurs (2019)
I'm quite aware of the taxes involved -- as I said, I've been working as a consultant for some time now. What you might be forgetting is that, with a company, you can plan your taxes better. Take out a minimal salary and put everything in an ISK and you don't have to pay any capital gains tax, for example.

You're also going to pay taxes being self-employed in the UK, and whether you prefer London over Stockholm is subjective; what you need to consider is the cost of real estate mainly vs statistical incomes, rather than anecdotes.

Regarding how "massively fucked" the Krona is, check this chart: https://www.xe.com/currencycharts/?from=GBP&to=SEK&view=5Y

ptr··on Sweden gives employees unpaid time off to be entrepreneurs (2019)
Assignments that are accessible by "anyone" at the consultant brokers are often listed around 750-950 SEK/hour, which means ~470 to ~600 GBP/day if you work 8 hours per day -- clients usually don't mind you working more though. Tax isn't that different last time I checked, but CoL is of course much higher in London.
ptr··on Sweden gives employees unpaid time off to be entrepreneurs (2019)
I don't understand your anger, but it's interesting that you've got such a completely different experience of the situation. FWIW, I've also studied in the US, and I've hired developers in Stockholm. There are of course both good and bad developers, but if you pay more, you tend to get better ones.

The article might or might not be bullshit, but there's a lot of highly valued tech companies per capita in Sweden, and I know for sure the consultant prices aren't bullshit as I've worked for quite a long time as just that. I'm usually not the kind of person that "talks out of my ass".

ptr··on Sweden gives employees unpaid time off to be entrepreneurs (2019)
Is Sweden's tech industry an utter joke, though? Stockholm and Sweden rank very high, both when it comes to old-style tech companies (Ericsson, etc) and startups. https://www.theatlantic.com/business/archive/2017/09/sweden-... "Stockholm produces the second-highest number of billion-dollar tech companies per capita, after Silicon Valley"

Also, tech salaries are quite high -- as a consultant, you make more than in London at least.

ptr··on ‘Capitalism generates a lot of wealth depending on the situation’
Isn't the main benefit of Capitalism what striving towards that dream causes? Ie, there are incitements for improving for other people.
ptr··on The dystopian world of software engineering interviews
Me too, I thought a “column oriented” file was a file where the data for column #1 comes before #2; ie, structure of arrays rather than array of structures. “cut” doesn’t work with that afaik. I’m not sure I’d ask for clarification here (as to me, this is what “column oriented” means), and probably fail the interview.
ptr··on U.S. immigration policy has been a boon for the tech industry in Canada
Same in Sweden, good developers definitely make more than doctors, especially if we consider total compensation.
← PreviousPage 5 of 9Next →