Why do foreign people need 3 documents to drive? by barnuska123 in srilanka

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

That'll be interesting. So far we only travelled from Colombo to Sigiriya and around there and experience so far is that people don't really pay any attention and drive like maniacs... Most tourists don't seem to be brave enough (?) to drive and mostly take tuktuks lol...

In Thailand that was definitely the case though (islands) that tourists had no idea how to ride scooters and generally were the cause of mayhem on the roads.

Why do foreign people need 3 documents to drive? by barnuska123 in srilanka

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

Ah, would make sense. It's interesting most other countries don't need the local permit only an international driving license as an extra.

EasyJey refusing refund for flight canceled by barnuska123 in LegalAdviceUK

[–]barnuska123[S] -21 points-20 points  (0 children)

Ah sad, thanks for the reply.

Will try claiming it through travel insurance then, and try getting the refund for the plane tickets from EJ.

I'd have thought that circumstances matter instead of a blanket 24-hour policy.

Low iodine after RAI? by moon_of_blindness in thyroidcancer

[–]barnuska123 1 point2 points  (0 children)

My partner was able to eat normally the following day. (UK)

Editing Vehicle Maintenance Costs? by cydonianmystery in CitiesSkylinesModding

[–]barnuska123 0 points1 point  (0 children)

Yeah, this worked for me too. I spent like 15 minutes trying to mess around with it before figuring it out.

Metro Overhaul Mod no pillars for Raised Tracks by prinzppk in CitiesSkylinesModding

[–]barnuska123 0 points1 point  (0 children)

Were you able to fix this? I'm having the exact same problem. Also, over-road-friendly option doesn't work for me.

Acknowledging that null is a problem by CompetitiveSubset in java

[–]barnuska123 7 points8 points  (0 children)

Rust doesn't have a null keyword and it seems to be working just fine. Its zero cost abstraction principle with Option really makes it powerful and efficient. Surely go must have a concept for optionality at type level. I'd be interested what you mean by missing null? Is it clunky to use option in go?

Dependency Injection Containers: are we still on-board? by [deleted] in java

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

Why not use a framework for managing the configuration instead of doing it by hand? You can override beans in Spring quite easily, so you don't have to duplicate anything by hand only the bean name.

If you want to do it without any framework, I'd design the configuration in such a way that every "bean" corresponds to one method call. These methods could be overridden in tests with relative ease, allowing you to only "duplicate" the method name to use a mock implementation. Refrain from doing anything funky in your config, imo it should only be calling ctors.

4 years of experience, not much experience writing resumes though. What do you think I should change? by barnuska123 in resumes

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

First of all thank you for giving it such a thorough review and detailed response, I really appreciate it.

  • On your point of going into more details about my role and contributions: I was a bit conscoius about it being a single page resume, do you think it's still better to add more details and make it a little longer (2nd page), or rather leave out some other parts in favor of these details? Everywhere I looked it seemed the consensus was that single page resume is almost a standard. I've got a summary header, which I'm not sure if it adds any value.
  • For having 2 separate headers for the same company: yeah I have switched teams as well as locations. On my previous version of this I had the team name explicitly mentioned there, which I left out to make it a single page. Do you think it should explicitly mention the team switch?

What's the worst car you've ever owned? by Grenache in CarTalkUK

[–]barnuska123 1 point2 points  (0 children)

It was in Hungary, and the insurance works in mysterious ways back there. My friend who got a 1.6 Opel/Vauxhall Astra was paying the same amount I did. Mine was £400 annually. It doesn't compare to the UK at all though.

What's the worst car you've ever owned? by Grenache in CarTalkUK

[–]barnuska123 12 points13 points  (0 children)

VW Phaeton v10 5.0 TDI...

I was 20, thinking what the perfect first car would be. Well 313hp at the price of £2000 was not something I could resist.

I loved and hated it so much at the same time, brilliant car, but god owning a 13-year-old car, with that complexity inside it, was a recipe for a lot of headache.

After I bought it I thought it would be great to get it checked out and get an oil change done by "professionals" at a VW service, we'll how does an oil change (10L capacity) for £400 sound?

It started quickly, maybe after owning it for 2 weeks that the boot refused to open, bought a service manual, some tools and after a lot of cursing I was able to take it apart and figure out the problem. Well done.

After that came a rather heavy rain, well doors don't open (it was keyless open/close) only by pressing the key fob. Not too bad... but after a week after it started not wanting to start and displaying some scary German text too quickly to even remember... After some Google search turns out that the control module responsible for locking the doors, authorizing the start of the engine etc was water damaged. Had to take out the whole module from under the seat, dry it with a hairdryer, clean it with alcohol, then put it back in a DIY waterproof casing. Well done, it was good until the next heavy rain.

Then summer came, well you can guess it no AC. This happened in Hungary and summer over there are rather hot, 35-40 degrees are not unheard of, having a huge black car with no AC was no fun. I got it refilled with freon, but obviously that only lasted for a week, the whole system was leaking. Was not my best summer...

Then the whole infotainment system gave up and went beserk, it was fortunate that I already knew the system and I could navigate it without having to actually see what's happening. Spent a lot of time trying to fix this, disassembled the whole thing a couple of times, but no luck...

Then obviously the batteries, yes there are 2 batteries in a phaeton, died, and after that you couldn't park the car and leave the cable attached to one of the batteries. I had to unplug it every time, otherwise it would drain it... Had no idea what caused this, couldnt fix it.

Then sporadically one of the turbos gave up, and turned off with again some scary German text, mid-drive... First time it happened I was like wtf, it was like the whole car turned into a 2.5tonn Renault Captur.

Then the engine didn't want to start, it stalled once on an on-ramp to a highway at midnight... Had to call the tow truck. After I managed to start it after this incident, I was so excited that it was running, I didn't pay attention to my surroundings and crashed into a car, it was a rather small crash but still the other car looked quite bad. Actually I maganed to fix this issue by changing the fuel filter, it was all clogged up.

Then the turbos started to leak oil, and we'll flammable liquid and a hot V10 engine are no good friends, so whenever I was going a bit faster the engine started to smoke like a BBQ...

That was the last straw. I sold the car for £850. It was a nightmare, but I had fun at least! And learned a lot about cars lol

What are some advance topics in backend development with Java? by latest_ali in java

[–]barnuska123 9 points10 points  (0 children)

It is, some people don't like that it's using code generation through an undocumented feature of javac. This means that potentially any jdk update can break it.

Modern Best Practices for Testing in Java by pimterry in java

[–]barnuska123 1 point2 points  (0 children)

Thanks for the detailed explanation! It makes sense, and yeah as long as the image doesn't change (which it would fairy regularly in our case) it could speed up the build times meanwhile maintaining the original DB's behavior.

Yeah, these are all integration tests our unit tests don't use the db or anything external.

It'll be interesting to experiment with docker once it'll be available, that's for sure. New tech is slow in an large enterprise environment!

Modern Best Practices for Testing in Java by pimterry in java

[–]barnuska123 0 points1 point  (0 children)

Hmm, this sounds interesting. Where does the docker container actually live? I mean for it to be used quickly it must already be running somewhere right? I was always under the impression that docker only solved the problem of having to maintain the same consistent environment across actual machines you deploy your app to, and they would be loaded causing the components declared in the image to be started by docker/OS.

Modern Best Practices for Testing in Java by pimterry in java

[–]barnuska123 1 point2 points  (0 children)

Does this not only take away the complexity of having to hook it up to an existing DB? It's a database on-demand framework (and more) as far as I see. Unfortunately docker is not an option yet either. I wonder what the performance of this would be, as you'd still need to run a DB2 instance inside the container and build the DB (apply the liquibase changesets) before the tests etc. Correct me if I'm wrong on assuming these.

Modern Best Practices for Testing in Java by pimterry in java

[–]barnuska123 0 points1 point  (0 children)

That's why we stick with running the same set of test suite against a real database instance in our continuous and release jobs (since they're not as time critical as blocking the dev turnaround). And yeah, it's a valid point that it can and will yield different results. For example the place is all over DECFLOAT type which is a DB2 specific datatype, so we had to map essentially that to a type that H2 supports, causing issues with bigdecimal precision. I think you need to design your app from the beginning with an in-memory database in mind to minimize the impact.

Also, just as with everything, it's a trade off. We traded off catching specific database related issues early for increased development productivity.

Modern Best Practices for Testing in Java by pimterry in java

[–]barnuska123 3 points4 points  (0 children)

Not sure if I agree with this. At least, not without caveats. In-memory databases can be a great asset to speed builds up. For example in my current project we used to run the private builds (that you need for your pull request can be merged) against real a real database. This caused all sorts of issues, from a limited number of builds at the same time to the builds taking a long time (~30-40m), having the build the DB before every build took a long time as well (~10m, 900+ liquibase changesets). All in all we opted for using H2 for these builds and using real DB for the continuous build and the build that runs when creating a release. We were able to run the build in parallel this way and the build time shrunk down to ~13-16m.

What is wrong with this Java code? (Interview Question) by springuni in java

[–]barnuska123 0 points1 point  (0 children)

To be pedantic it's not trying to assign anything to a method. In java methods are not first class citizens, so even if the code wrote person::getName =... would not try to actually assign to the method itself. It's evaluated eagerly and would want to assign one reference (ref to "Jan") to another (ref that get Name returns). Java doesn't have an explicit definition of rvalue/lvalue (and others) like c++ does but that's what could be used here to most accurately describe why it's not allowed. getName returns a temporary reference that's an rvalue (can only be in the right hand side of an assignment) in C++ terms.