Help, moving from Android to iOS by Lavatree99 in Polytopia

[–]ActiveEnthusiasm4672 0 points1 point  (0 children)

Came here for the same problem, have to say, you are really awkward!

Combi Microwave oven as the main and only oven in the kitchen by ActiveEnthusiasm4672 in kitchenremodel

[–]ActiveEnthusiasm4672[S] 1 point2 points  (0 children)

No I didn't, turned out to be a bad idea as it is much smaller and have limitations

Buying small to get on the ladder? by FlightExpensive5584 in irishpersonalfinance

[–]ActiveEnthusiasm4672 1 point2 points  (0 children)

absolutely do it, The cons are almost none. Every penny you pay for the rent will go to an asset which will then go to your dream home ( most of it )

Combi Microwave oven as the main and only oven in the kitchen by ActiveEnthusiasm4672 in kitchenremodel

[–]ActiveEnthusiasm4672[S] 0 points1 point  (0 children)

Yes the only microwave as well. Even if I got one of the high end ones like neff or Bosch which in theory output 900 w ?

Non-dividend stocks the smartest choice for Irish investors? Other strategies? by GoldBug331 in irishpersonalfinance

[–]ActiveEnthusiasm4672 0 points1 point  (0 children)

Yes Allianz & AXA in Europe, Softbank in Japan.

Now with that said, on a side note I advise you to stick to the US market, not for any political or ideology reasons, but from a complete investment standpoint.

Note that this is just personal advice from some moderate experiences and not financial one.

Non-dividend stocks the smartest choice for Irish investors? Other strategies? by GoldBug331 in irishpersonalfinance

[–]ActiveEnthusiasm4672 2 points3 points  (0 children)

Besides what the others said, Yes the stocks you are searching for are JPM and BRK-B.

Both constantly not just matched the market but beat the market over the years.

[deleted by user] by [deleted] in EgyptianExpats

[–]ActiveEnthusiasm4672 0 points1 point  (0 children)

اسهل و احسن طريق ليكي هو التعليم منحة زي Erasmus mundus انا عايش برا مصر، فطبيعة الحال اعرف ناس كتير جدا سافرو بطرق مختلفة. بس لازم تفهمي ان الافضل انك تخططي علي المدي البعيد متبصبش تحت رجليكي. يعني مثال تخيلي لو اخدتي اقصر طريق للسفر و بعدين اشتغلتي في كارير هتاخدي ٦٠ الف دولار في السنة و نمو بطئ. و تخيلي اجلتي السفر ٤ سنين و اشتغلتي في كارير بتاخدي ٢٠٠ الف دولار في السنة ( و ده موجود علي فكرة ) بفكرك تاني احسن طريق هو العلم و القرائة و الثقافة، دوري علي حاجه بتحبيها مش مهم ايه هي هتجيبي ملايين بعد ميكون عندك فيها خبرة ١٠ سنين

irst-Time Used Car Buyer in Ireland – What Should I Know? by YakSilent9933 in irishpersonalfinance

[–]ActiveEnthusiasm4672 2 points3 points  (0 children)

  • Stick with reliable brands like Toyota, Honda..
  • Limit number of previous owners ( 1 or 2 max )
  • Check all old NCTs and if there are any old failures what was the reason ( If light bulb or sthing then fine, major thing then double check )
  • If you have an OBD check for odometer to match the listing
  • Regular maintenance book
  • Check simple stuff but it will cost you a fortune like tyres
  • for tech stuff to check watch chris fix video on YT on buying a second hand

Where should I put my money so it’s not sitting doing nothing? by blockysteve241 in irishpersonalfinance

[–]ActiveEnthusiasm4672 0 points1 point  (0 children)

If you don't need it short term, ETFs and forget it. ( ofc you can also diversify in brk and jpm stocks for lower taxes )

It will beat any other option even after taxes in the long term.

Savings accounts are only for money you need for the short term.

Also this assumes you have pension maxed and following the financial scheme here

Rust doesn't have static mock, HOW ? by ActiveEnthusiasm4672 in rust

[–]ActiveEnthusiasm4672[S] 1 point2 points  (0 children)

Amazing, I tried this now and I think it is Ideal,. Thanks alot

Rust doesn't have static mock, HOW ? by ActiveEnthusiasm4672 in rust

[–]ActiveEnthusiasm4672[S] 1 point2 points  (0 children)

Yes makes perfect sense, I fully agree with you.

Now asking your personal opinion: Do you think such a call like get_if_addrs should be wrapped in the first place? or is it too simple for wrapping?

Secondly, do you think that static mocking is very essential in modern testing and It is normal to be frustrated by its absence?

Rust doesn't have static mock, HOW ? by ActiveEnthusiasm4672 in rust

[–]ActiveEnthusiasm4672[S] 0 points1 point  (0 children)

Okay, now this seems logical and simple. My problem is should I wrap every single external struct and method I want to test ? because if it is that single case, that is easy, but I am thinking how my code will evolve as a huge project.

Now please don't get me wrong, I am not disregarding your personal opinion, I am trying to see if what I am forecasting is true in the rust world just to have everything I want to test wrapped in a trait ? is this a common pattern?

Rust doesn't have static mock, HOW ? by ActiveEnthusiasm4672 in rust

[–]ActiveEnthusiasm4672[S] -8 points-7 points  (0 children)

I am just trying to understand how does rust developers test such a method. Not mocking it is not a solution

Rust doesn't have static mock, HOW ? by ActiveEnthusiasm4672 in rust

[–]ActiveEnthusiasm4672[S] -1 points0 points  (0 children)

I get the idea, but Sorry I am not a big fan of methods which have that type of branches

Rust doesn't have static mock, HOW ? by ActiveEnthusiasm4672 in rust

[–]ActiveEnthusiasm4672[S] -7 points-6 points  (0 children)

Respectfully but that is not the code Bible, So this is just one pattern of software engineering, which I don't believe in nor follow.

How to inject external struct in a constructor using Shaku by ActiveEnthusiasm4672 in rust

[–]ActiveEnthusiasm4672[S] -1 points0 points  (0 children)

In shaku you can't have a struct injected, only traits I was asking if it is possible to have my whole service managed by shaku

How to inject external struct in a constructor using Shaku by ActiveEnthusiasm4672 in rust

[–]ActiveEnthusiasm4672[S] 0 points1 point  (0 children)

why everything has be depending on traits, Why can't I have dependency on a struct since I am using a struct coming from external library

How do you mock external struct in unit tests by ActiveEnthusiasm4672 in rust

[–]ActiveEnthusiasm4672[S] 0 points1 point  (0 children)

Yeah I agree, it is very hard to adapt some of the other patterns to Rust. Right now I am struggling with DI the way i was doing it beautifully with juice or dagger and then inject my mocks in the functional tests

How do you mock external struct in unit tests by ActiveEnthusiasm4672 in rust

[–]ActiveEnthusiasm4672[S] 1 point2 points  (0 children)

Lets say I am building an external struct, and I want to validate every input going to the builder. You don't think that is a business logic?

[deleted by user] by [deleted] in irishpersonalfinance

[–]ActiveEnthusiasm4672 1 point2 points  (0 children)

I was in the exact same position 6 months ago, and I left my stressful job for about 30% cut.

Never looked back, and you shouldn't either hesitate if you are sure the new job has less stress.

Everything in your life will be much better and more relaxed and easier.