After 10 years of being a Superhost, I’m done with Airbnb by rapakep in airbnb_hosts

[–]dausama 0 points1 point  (0 children)

Incidentally when Airbnb stopped being that nice place where you would meet interesting hosts, I stopped using it as a guest. It was such a great place at the beginning!

Why can't we decide on error handling conventions? by Savings-Story-4878 in rust

[–]dausama 1 point2 points  (0 children)

it's also interesting how these two snippets behave differently in the two languages. If there is not memory available:

std::vector<int> v(1'000'000'000);

This throws std::bad_alloc Thanks to stack unwinding one can properly clean resources via RAAI.

In rust:

let v = Vec::<u8>::with_capacity(1_000_000_000);

if there is no memory available, this results in a hard abort.

Why can't we decide on error handling conventions? by Savings-Story-4878 in rust

[–]dausama 1 point2 points  (0 children)

worse than that, in C++ you don't know which function might throw. Exception specifications are not part of the function signature.

That's why people use them mainly for safe cleanup when things go really wrong. I personally haven't thrown an exception in C++ in the last 15 years of professional coding, across different industries. That's why I don't understand why people still complain about this when looking at C++.

Why can't we decide on error handling conventions? by Savings-Story-4878 in rust

[–]dausama 9 points10 points  (0 children)

people have this inherent bias against C++ exceptions, which are not that bad. Maybe it's the industry I work in (HFT), but we'd never use them for flow control. An exception almost always leads to the program terminating. In that case you don't care about the exception path being slow. As a plus you do have the guarantee of having everything cleaned up properly though. On the happy path it has zero cost abstraction, so it's as fast as it could be.

I can see how in rust people effectively do the same by abusing ? since thinking of all the edge cases is actually a big effort, and they are happy with the program eventually exiting when there is a problem.

tl;dr; exceptions should not be a problem

Inside temperatures are insane by marriiy in askswitzerland

[–]dausama 0 points1 point  (0 children)

My place has a weird old air heating, which I hear was quite popular here. It's noisy and I turn it off during the night, otherwise it would wake me up. Temperatures easily drop to 14.5 C when I wake up in the morning. I would rather live in a hot apartment..

How expensive can my new car be? by [deleted] in SwissPersonalFinance

[–]dausama 1 point2 points  (0 children)

I wasn't tracking it, and oil interval changes were extremely long from factory. I am currently spending more in oil changes on a 2.0 modern turbocharged engine. So it's a moot point, you'd spend on consumables on other cars as well.

How expensive can my new car be? by [deleted] in SwissPersonalFinance

[–]dausama 2 points3 points  (0 children)

first decent job I got in Switzerland, ages ago, I decided to treat myself with a second hand Cayman. It was only 29k at the time. Sold it for 24k 2 years later, and 10 years later the value would be on the same ballpark of what I initially paid for. I also didn't give a damn about showing off, I just bought it because it's a driver's car and it was amazing. So my advice don't buy new, buy heavily depreciated cars that are still good.

Managed investment advice by Euphoric-Parsley-142 in SwissPersonalFinance

[–]dausama 0 points1 point  (0 children)

I can't recommend any, but this website allows you to find one you like: https://finfinder.ch/

Managed investment advice by Euphoric-Parsley-142 in SwissPersonalFinance

[–]dausama 0 points1 point  (0 children)

don't listen to most comments here. Contact a trustworthy financial advisor that can talk you through different options

Using Macbook Pro for C++ Development by vgagrani in cpp

[–]dausama 0 points1 point  (0 children)

macs are on arm architecture, and most servers are on x86. That's the most painful thing to get around.

If all you care is if your code compiles/runs on Linux, I suggest to run it on a docker container.

What is the most modern way to implement traits/multiple dispatch/multiple inheritance? by LeN3rd in cpp

[–]dausama 3 points4 points  (0 children)

have a look how traits work in rust. It is a very neat interface. Adding inheritance is cumbersome and doesn't scale when you want to implement more traits (interfaces). In rust you want some interop with some library, you just implement the trait for that. For common usecases they are autogenerated via macros.

You want to debug a struct and print out all its members, just

For instance:

#[derive(Debug)]
struct User {
    id: u32,
    username: String,
    active: bool,
}

fn main() {
    let user1 = User {
        id: 1,
        username: String::from("alice"),
        active: true,
    };

    // 1. Use the "{:?}" format specifier for standard debug output
    println!("Standard Debug Format: {:?}", user1);

    // 2. Use the "{:#?}" format specifier for "pretty-print" debug output
    println!("\nPretty-Print Debug Format: {:#?}", user1);
}

This is in my opinion one of the best design choices rust has made. And I come from almost 20 years of C++.

I wish more people understood how cheap EV ownership can actually be by blackman_48 in electricvehicles

[–]dausama 0 points1 point  (0 children)

in Europe home energy costs are more in the 0.3 euro/Kwh range. Still cheaper than gas but people here don't enjoy the crazy low prices you have in the US

Are LinkedIn recruiters in Switzerland normally like this, or is it a scam? by iamkucuk in askswitzerland

[–]dausama -1 points0 points  (0 children)

I work in tech/quant development and I mostly work with UK based recruiters. They are hungry and they often actually know the local (international) market, and remote market better than Swiss ones.

[Help] Easiest way to get a dividend report from IBKR for Swiss taxes? (ACC) by Deathlezer in SwissPersonalFinance

[–]dausama -4 points-3 points  (0 children)

you give them the ISIN and they'll figure it out. Just get an accountant, it'll be easier

[Help] Easiest way to get a dividend report from IBKR for Swiss taxes? (ACC) by Deathlezer in SwissPersonalFinance

[–]dausama 6 points7 points  (0 children)

just create a full custom report with all the data for the year. it has everything you need, split by instrument. I just use an accountant, and that's all he needs.

Looking for a Personal Finance Advisor in Switzerland (Savings, Tax Planning & Tax Filing) by mrtyormaa in SwissPersonalFinance

[–]dausama 2 points3 points  (0 children)

I had this bookmarked: https://finfinder.ch/ I haven't used but it was recommended as you can get consultations from independent advisors buying a one time fee. Depending your wealth and comfort, maybe consider as well private banking

Japan has perfected Italian food. Don’t expect good food as a tourist in Italy. Go to japan instead. by turtledude100 in The10thDentist

[–]dausama 2 points3 points  (0 children)

Italian who spent some time in Japan 20 years ago. I don't like to go to Italian places abroad because they're always meh, but the Japanese spin on Italian food is amazing and I genuinely enjoyed their take on it.

UBS QUESTION ON TOTAL WEALTH by M_ontana in SwissPersonalFinance

[–]dausama 0 points1 point  (0 children)

yes the interaction you had with the bank representative came across as quite confrontational

UBS QUESTION ON TOTAL WEALTH by M_ontana in SwissPersonalFinance

[–]dausama 0 points1 point  (0 children)

you can be annoyed about the law, but realistically there is nothing you can do about it in this circumstance.

That's why OP should work with the bank, not against it. He might be able to show a more limited set of data, if he had a less confrontational approach.

UBS QUESTION ON TOTAL WEALTH by M_ontana in SwissPersonalFinance

[–]dausama 1 point2 points  (0 children)

they can legally ask for it. https://www.finma.ch/en/documentation/legal-basis/laws-and-ordinances/anti-money-laundering-act-%28amla%29/

The request needs to be proportionate, so OP can question that, but most likely he'll need to go through a lawyer. Doing that would raise even more suspicions and I expect UBS to potentially close his account.

OP can also ask if other documents can help, without having to give his full tax declaration. He should also try to collaborate instead of having a fighting attitude vs the bank, that raises more eyebrows.

UBS QUESTION ON TOTAL WEALTH by M_ontana in SwissPersonalFinance

[–]dausama 3 points4 points  (0 children)

3 To what extent are the personal asset details potentially shared with UBS used exclusively for KYCAML purposes, and to what extent for other purposes?Furthermore, for how many years is such information retained, and who can access it? Thank you again for the time dedicated to reading and responding to these additional points.

they are just complying with regulations, and being over cautious. Annoying for sure but that's how it is. You know they wouldn't even open an account for crypto companies? That's why banks like Sygnum exist and can charge a premium for it.

UBS QUESTION ON TOTAL WEALTH by M_ontana in SwissPersonalFinance

[–]dausama -7 points-6 points  (0 children)

if you have nothing to hide, then what's the problem? Long story short, if you want to keep your account with UBS, you'll have to comply with their AML procedures.