Better HN
topnewbestaskshowjobs
Log inSign up

ptr

1,512 karma · joined Jul 17, 2011 (15y ago) · 406 submissions

pointer.hn@gmail.com
Submissions

comment 5y ago · link · parent

If you include driving lessons, the full package can easily go for 3-4000 EUR in Sweden.

comment 5y ago · link · parent

But most of those screenshots are from Blood!

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

You can opt out/opt in of stock borrowing on Avanza, there’s a setting.

125.

Russian opposition activist Alexei Navalny sentenced to 3½ years in jail(ft.com ↗)

2 points · by ptr · 5y ago · discuss

comment 5y ago · link · parent

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...

comment 5y ago · link · parent

How about 10 average vs 1 great?

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

But you still need to send around the object that implements the interface, right? That’s “DI”.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

So you can never make mistakes in your commitments?

comment 5y ago · link · parent

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”.

comment 5y ago · link · parent

Gott nytt år!

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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+).

136.

What Makes a Good Programmer?(henrikwarne.com ↗)

3 points · by ptr · 5y ago · discuss

137.

MacTCP Cookbook: Constructing Network-Aware Applications(preserve.mactech.com ↗)

2 points · by ptr · 5y ago · discuss

138.

Updated concept of "The Surgical Team"(codeproject.com ↗)

3 points · by ptr · 5y ago · discuss

comment 5y ago · link · parent

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...

comment 5y ago · link · parent

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”)

comment 5y ago · link · parent

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{});

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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...

comment 6y ago · link · parent

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).

comment 6y ago · link · parent

Curious, why don’t you like ‘.’ and ‘&’?

comment 6y ago · link · parent

If every woman gives birth to less than ~2.1 children, we're shrinking. Is having <= 2 children painful and ugly?

147.

The Psychology Behind Donald Trump's Unwavering Support(psychologytoday.com ↗)

12 points · by ptr · 6y ago · 3 comments

148.

Dutch judge rules that EA should be fined €500k every week(videogameschronicle.com ↗)

2 points · by ptr · 6y ago · discuss

149.

September 2020 least deadly month ever in Sweden(cornucopia.cornubot.se ↗)

130 points · by ptr · 6y ago · 134 comments

1
456
14