HNHacker News
TopNewBestAskShowJobs

ptr

1,512 karma · joined July 17, 2011

pointer.hn@gmail.com
submissionscomments
ptr··on C++20: Building a Thread-Pool with Coroutines
Does anyone know when Coroutines are expected to show up in compilers without enabling experimental flags?
ptr··on Text editing hates you too (2019)
Slack does it, and I had it happen to me once. It was unexpected and added extra frustration when I was already stressed.
ptr··on Prank Windows XP simulator
My immersion was lost when the BSOD didn't hang the music
ptr··on How People Get Rich Now
Sweden's wealth Gini coefficient is the 4th highest in the world though. US is at 5. Asset distribution is very unequal in Sweden. https://en.wikipedia.org/wiki/List_of_countries_by_wealth_eq...
ptr··on New study detects lottery-like behavior in cryptocurrency markets
That the appreciation was 0% makes a lot of sense since the dollar pas pegged to the gold. Maybe it just means that having a currency that increases in value by 7% per year was untenable since it doesn’t incentivize people to invest in more productive ventures. It’s deflationary.
ptr··on In Stockholm there's currently an IT battle underway
OK, I'll bite. I'm thinking about those, but I don't see the corruption. Care to elaborate?
ptr··on China’s $4k electric cars tap huge market Tesla can’t reach
If you include driving lessons, the full package can easily go for 3-4000 EUR in Sweden.
ptr··on Internet Explorer is evil (1996)
But most of those screenshots are from Blood!
ptr··on Why northern Europe is so indebted
One difference is that the student loans in Sweden are controlled by the government and have a very low interest rate (it's 0.05% currently). It'd be foolish not taking that loan.
ptr··on Ask HN: Can I trust brokers with my stocks?
You can opt out/opt in of stock borrowing on Avanza, there’s a setting.
ptr··on The Virus Changed. Now We Must ‘Get to Zero’ or Face Catastrophe
Why single out Sweden? UK, who have/had more stringent lockdown rules than Sweden, are facing 1,540 deaths per million. Sweden is at 1,120 and roughly equal to France, Switzerland. Source: https://www.statista.com/statistics/1104709/coronavirus-deat...
ptr··on Why Working from Home Will Stick [pdf]
How about 10 average vs 1 great?
ptr··on Ask HN: How to increase SWE salaries in Europe?
54% is maximum and if you have your own company you can optimize that. 76% marginal tax is incorrect. 25% VAT isn’t added on everything. Freelancing in Sweden is definitely a path for becoming wealthy.
ptr··on REST Servers in Go: Part 1 – standard library
But you still need to send around the object that implements the interface, right? That’s “DI”.
ptr··on REST Servers in Go: Part 1 – standard library
It doesn’t make sense to say Rails etc are “Completely unacceptable” without giving a context. How can it be subjective? Memory is also rather arbitrary, why focus on that and not user friendliness? Or even GPU or cache efficiency? “Breaking changes” might not matter either if what you’re writing is a one-off.
ptr··on Toxic positivity does more harm than good
So you can never make mistakes in your commitments?
ptr··on Stop the “Hard Work” Obsession
Isn’t that the case in a lot of countries, though? Even if you can make more somewhere else, you’re still likely to spend your life in the same way — ie, working “halfway on the road to serfdom”.
ptr··on Happy New Year HN
Gott nytt år!
ptr··on Four-day week means 'I don't waste holidays on chores'
Wow, I can’t believe there’s such a harsh and early tax, I must surely be missing something? Why would anyone care about doing a good job? In Sweden you get to keep at least 450 of those 600.
ptr··on Four-day week means 'I don't waste holidays on chores'
70k is according to my anecdotes low for Stockholm, and not something that I’d expect a senior to accept. Senior front end developers go for about 90k. Becoming a contractor is the way to go if you want decent pay (175k+).
ptr··on DRY Is a Trade-Off
It's probably not worth continuing here, seeing that you're already pretty hostile. But I definitely try to minimize the amount of reading necessary to understand a concept. Ideally, the concept should be such that it's easy to describe in few words (note "words", not "letters". Also, using many words doesn't make you sound smarter, often it's the opposite). Things don't live in a vacuum, there's always a context, and that's important to consider when communicating...
ptr··on DRY Is a Trade-Off
While I do like me some good meta-reasoning, at least I have an argument for shorter function names: Short names are read in O(1) while longer are O(n) (unless the name can be simplified as “the function with the long name”)
ptr··on On Design Patterns in C++
This is the crux of the matter. Design patterns are just common structures that have been found useful at some point in some context. Some programming languages have adopted these patterns, adding "native" support for them. If your programming language didn't have parameters, then yes, I guess someone would add the "Parameter Pattern". It's all rather arbitrary what ends up in a book on "design patterns".

Regarding the strategy pattern, when does it start becoming the pattern and when is it just "passing a function as a parameter"?

   sortList(list, [](const item& i) {return i.name();});

   struct MySorter
   {
      bool operator ()(const item&) {...}
   };

   sortList(list, MySorter{});

   class MySorter : public ISorter
   {
   public:
      virtual bool execute(const item&) override {...}
   };

   sortList(list, MySorter{});
ptr··on On Design Patterns in C++
So you would rather have a “sortListByName(list)” where the sort algorithm is hard-coded to what field we should compare on rather than a factored approach using the Strategy pattern? “sortList(list, [](const item& i) {return i.name();})”? I would say the factored solution using “Design Patterns” is the simple one here.
ptr··on Can developer productivity be measured?
I did this once for a medium complexity task. The quality ended up the same because both developers had good taste. One developer took 2 hours for the job, the other took 2 weeks. And people don’t believe in 10x developers...
ptr··on Amazon hires 427,000 people in 10 months
That's a lot of orders. It seems like many people are buying a lot of things and I'm just gobsmacked that you can come up with so many things to buy! I mean, I order groceries once a week online, but what are the _things_ that people buy? I buy things maybe three times a year in total (excluding things that are necessary for the household, like glue and leather oil).
ptr··on What is your favorite C programming trick? (2009)
Curious, why don’t you like ‘.’ and ‘&’?
ptr··on U.S. Exits Paris Climate Accord
If every woman gives birth to less than ~2.1 children, we're shrinking. Is having <= 2 children painful and ugly?
ptr··on How to waste your career, one comfortable year at a time
Anecdote: in 6 months I can and have surpassed team members that have been with the team for 6 years. These are bespoke complex systems, but some people don’t advance much (“work to live”?) and I’m a quick learner, partly due to job hopping.
ptr··on Tokyo Stock Exchange Blackout: One Piece of Hardware Took Down a Market
These kinds of systems typically don’t use load balancing, they’re provisioned for the expected max capacity needed.
← PreviousPage 4 of 9Next →