Better HN
topnewbestaskshowjobs
Log inSign up

hocuspocus

3,034 karma · joined Jan 27, 2014 (12y ago) · 1,459 submissions

Scala dev in Switzerland.
Submissions

comment 8y ago · link · parent

> The creator of the MutableFoo instance can make all sorts of changes to the instance but then pass it around as a Foo that can't be modified.

Until you cast the object...

You should use truly immutable data types unless you specifically need otherwise, most modern languages and libraries encourage you to do so.

comment 8y ago · link · parent

How does having FooService and FooServiceImpl help with code organization at all? It brings nothing but unnecessary noise.

comment 8y ago · link · parent

With a $2000+ laptop you should really get an extended warranty, and all serious manufacturers send a technician to you.

Having to go to a physical Apple store implies that there's one nearby.

comment 8y ago · link · parent

I'm not even sure they have to do anything. At my current workplace, the IT department got so many complaints that they started offering linux laptops.

comment 8y ago · link · parent

> If an EU country is owed tax by people resident within its borders, then perhaps the country's tax authorities should arrange for it to be collected, rather than relying on some foreign entity (e.g. Chinese company) to collect it.

That's the case, no? When I order stuff from AliExpress, the seller's only responsibility is to declare the item value honestly, it's then up to the carrier and local customs to charge VAT, import duties and fees.

comment 8y ago · link · parent

1. Disallow infix notation abuse through code review. Scalafmt can automate that for you.

2. I mentored a couple novice developers working on a Play codebase, the rough guideline was to use libraries that depend on Scalaz, Cats, Shapeless ... but never import any of them in our codebase. No HKT in our code either. (Nowadays I work with all that on a daily basis, you can keep things reasonable).

3. I think you're mixing up a few unrelated things. Scala's OO model is cleaner than Java's. Implicits abuse is avoidable with frameworks like Play.

comment 8y ago · link · parent

> This is an epidemic that needs strong legislation. The use of sugar, salt, and fat in food needs to be regulated otherwise it's an arms race for brands that just keep adding all 3 to their products.

Lobbying from the food industry is extremely powerful and pervasive. They're using the same playbook as the tobacco industry a few decades ago. For instance the traffic light nutrition labels (that I believe originated from the UK) were shot down at the EU level, under the pretense of not stigmatizing the important gastronomic heritage in several European countries.

comment 8y ago · link · parent

> It also shows that you have no problem with learning a new code base and delivering code according to that project's quality standards.

If you can tell your employer you'll spend the next sprint or two fixing a bug upstream, good for you!

From my experience working with complex libraries, when you hit a bug or a corner case, it is probably not going to be an easy fix. There's a reason many open source projects are triaging low-hanging fruits for first-time contributors.

comment 8y ago · link · parent

The kind of xenophobia you'll be facing is pretty tame compared to most other parts of the world though. Especially if you're a skilled worker from a developed country.

Japanese are indifferent and non-confrontational. If you don't care about what people think and don't try to integrate too hard, life isn't bad.

comment 8y ago · link · parent

And online banks like N26 complain in turn that Germany has the most expensive ATM fees in Europe. It sounds like a bullshit argument given that operational costs for an ATM are mostly fixed.

comment 8y ago · link · parent

Check out Revolut, Monzo, Starling or Transferwise.

comment 8y ago · link · parent

Having a domestic payment scheme isn't an issue regarding card adoption. I'd even argue that offering a cheap domestic payment scheme is fundamental to adoption on the merchant side. See the situation in France for instance.

All EC cards issued by German banks are co-branded, it used to be only Maestro, nowadays mostly V-pay. They do work fine abroad. (V-pay a bit less so than Maestro, but that's not a bug, that's a feature, skimming is a big issue in big German cities, that's why a lot of banks switched to V-pay)

comment 8y ago · link · parent

Toronto is in Amazon's shortlist for HQ2, they do look beyond US borders, at least a little :)

I think the concept of a second HQ is by definition a bit weird, size is probably not the main concern here.

comment 8y ago · link · parent

Get a referral or wait for a promotional offer, the big players (Boursorama, Fortuneo, ...) regularly offer 130~150€ sign-up bonuses, which is a decent compensation for the time you'll invest switching banks.

comment 8y ago · link · parent

There is. The banking portability law is even called after your president :)

Most banks offer it, or at least claim to. However there's still no penalty for banks that don't do their job properly. But it shouldn't stop you, transferring all your SEPA direct payments isn't that hard even if you do it yourself.

comment 8y ago · link · parent

I never lived in the UK but I've heard good things about Monzo and Starling.

If you look into the fintech space, there's a stark difference between Europe and the North American market. We have several players entering retail banking every year in Europe, and that's partly thanks to regulations.

comment 8y ago · link · parent

I put mine in this: https://www.ikea.com/gb/en/products/desks/table-tops-legs/al...

And it's doing fine. Its cooling is slightly over-sized since I want to keep fans spinning at very low speed, but I haven't seen much difference compared to when it was outside.

comment 8y ago · link · parent

> But you're not comparing like for like.

I'm trying to. The standardized annual power consumption that is advertised on the energy rating is only accurate if you use the default settings for 40 and 60°C cotton cycles. And that is effectively 4 hours at 40°C for a partial load. I saw the advertised "turbowash" cycle, however while it's supposed to be energy efficient, you have to take LG's word for it.

In the US, while models differ in size, if you look at a similar price range and load capacity, you'll see that numbers used for the energy rating are pretty similar (around 100 kWh or less). But, to my knowledge, the default cycles are fairly short. Sadly neither Samsung nor LG seem to publish cycle length in their manuals.

comment 8y ago · link · parent

I'm specifically talking about top-of-the-line LG and Samsung eco-friendly washers. Check out their specs if you don't believe me, I had one of these. 4 hours at 40C and nearly 5 hours at 60C. It never bothered me though.

Edit: here's an example: http://www.lg.com/uk/washing-machines/lg-FH4A8TDN2#

- 60°C full load 297 minutes

- 60°C partial load 244 minutes

- 40°C partial load 239 minutes

comment 8y ago · link · parent

Compared to Korea, I'd think that tumble drying is the main culprit behind wearing clothes out. Anecdotally when I first moved to Korea I had a huge top-loading Samsung washer that made insane amounts of lint.

Front-loaders are vastly different between the North American market and Europe or Korea. I remember my friend's brand new LG in California would run an eco-friendly cycle in 40 minutes. A similar model in Europe takes 4h30!

comment 8y ago · link · parent

Firstly, IDEA's default JVM settings are a bit conservative. The default 750MB maximum heap size is too low for any non-trivial Scala project. Here's someone who attempts to explain all settings: https://github.com/FoxxMD/intellij-jvm-options-explained

Secondly, IDEA's SBT plugin works pretty well, use it if that's not the case yet, and put a reasonable .jvmopts file in your project. SBT can still be slow and there no magic cure for that (even though it's constantly improving). Some of my coworkers use bloop instead: https://scalacenter.github.io/bloop/

That said, Scala is indeed jumping on the LSP bandwagon, and it's already supported by Dotty out of the box.

comment 8y ago · link · parent

You can drive safely and still get in a traffic accident, and while you might not be at fault, you weren't supposed to be on the road on a vehicle that has the legal status of a toy, insured or not.

comment 8y ago · link · parent

It's not an issue until it is, especially regarding insurances. I don't know about the UK but here I'd be worried about my personal liability and any potential incapacity leave/benefits.

comment 8y ago · link · parent

I used O365 and Skype for Business at my previous job, and we regularly fell back on consumer Skype with some of our remote developers (not that remote mind you, within Europe). Teams seemed to work better but was still very bare at the time.

Then we got new C-level executives from Cisco, and the first thing they did was to initiate a migration to Cisco solutions. Their offering is super confusing to end users like me (WebEx, Spark, Jabber, ?) but it works reliably, in my experience.

comment 8y ago · link · parent

There's an entire industry built around F-1/OPT abuse, since it's the only way to have a decent shot at getting an H-1B. Cf. the Silicon Valley University and the like.

Other visas are also abused (J-1, L-1, even O-1). It wouldn't be that hard to have a saner immigration path for skilled workers, like Canada, Australia and many European countries.

comment 8y ago · link · parent

With a Nexus or Pixel, all you'd have to do is contact the customer service and wait for your replacement device.

I never really understood the love for booking appointments and going in person to crowded Apple stores.

comment 8y ago · link · parent

Note, research and scientific staff is equally underpaid, if not more, in the US.

Since fundamental physics and bioinformatics have been mentioned several times in this thread, if you're curious, look into salaries at places like the National Laboratories, or even independent labs like the Allen Institute.

The market distortion in the field of AI/ML isn't as simple as poor wages in academic research. There are many strong European industries that could benefit from more AI/ML and that can definitely afford attractive salaries. Those jobs already exist around the German car makers for instance. Unfortunately, there's always more money to be made selling ads.

comment 8y ago · link · parent

As long as money creation and handling is delegated to private banks, how can you avoid this?

Dealing with cash isn't free to merchants either. And that cost is passed on to the customer.

Sure, governments that are pushing for a cashless society have ulterior motives. But you can't blame them for capping fees that used to be just spread onto everybody, regardless of the payment method. Now at least they're supposed to be comparable.

comment 8y ago · link · parent

Non-smart TVs from the major brands are reserved to their enterprise line-up, that's why they're more expensive.

I worked at Samsung and given how much they poured into Tizen and the various in-house services for SmartHub, I guarantee they aren't making any significant money from them. They have zero leverage with apps for services that people consider a given (like Netflix). And a lot of smaller partnerships don't end well (see Peel for instance).

I'm not sure about brands that went with Android TV, but Google is pretty smart in such partnerships and fully takes advantage of the fact that OEMs like Sony don't have the internal resources to come up even with a half-decent OS.

Questionable updates that push things like samba.tv are probably a (poor) afterthought.

comment 8y ago · link · parent

Well, the business strategy for a bank isn't really rocket science. Right now they focus on grabbing market share, which isn't too hard in countries like Germany. They've also introduced a few products (savings, investment, insurance) as a broker, which allows them to gauge the demand among their customer base and develop popular products in-house in the future.

While I don't expect them to sell mortgages anytime soon, they have many other ways to make profits. And if they manage to keep their footprint low compared to the way big traditional banks are moving online, I'm sure they'll be fine.

Or they could end up being acquired. (I hope they're big enough not to, but consolidation is a real issue in retail banking).

1
383940
49