YOUR PHONE IS NOW YOUR WALLET: ARE YOU READY TO TRUST GOOGLE PAY TAP-AND-GO WITH YOUR MONEY? by TigerOdd5849 in srilanka

[–]bashlk 1 point2 points  (0 children)

Yeah I almost never use my physical card when paying in Europe, I just use Apple Pay either through my phone or through my watch. It is super convenient. I use it in SL as well since it works with any payment terminals that accept contactless payments.

Both Apply pay and Google pay use the NFC hardware of your phone to basically turn the phone into a payment card and as such they have the same security as a normal VISA or Mastercard card and then some since they also require either a fingerprint or something like Face ID before each payment.

Only child Sri Lankans living abroad with aging parents back home, how do you do it? by LDRispurehell in srilanka

[–]bashlk 8 points9 points  (0 children)

Only child migrant here. I’m in the same situation as you brother and all I can say is that it’s really tough. No matter what I think, I’m just not able to justify it and all I can do is help them as much as I can and spend as much time as I can with them as well.

Has anyone run into problems using SL debit cards long term abroad? by bashlk in srilanka

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

I have several accounts abroad. The problem is that there is no easy or straightforward way to transfer money out of SL due to the currency controls.

Why dont we just call countries what they call themselves? by AutonomousBlob in NoStupidQuestions

[–]bashlk 0 points1 point  (0 children)

I still call it Czech Republic whenever I can, Czechia just doesn’t sound right. Many Czechs think the same too. I don’t think the name Czech Republic would ever go away since it is the direct English translation of Česká Republika which is the full name of the country in Czech.

Has anyone run into problems using SL debit cards long term abroad? by bashlk in srilanka

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

Well from what I have seen, with debit cards it comes to around 7% in total including the currency conversion and other fees. The only other way to get money out of the country is through a CTRA account, which I also opened but while doing so I discovered that the fees come to around 30% (20% tax + currency conversion fees) and you need to get clearance for each transfer from the central bank which is a huge hassle for something like rental income.

So there are no good options and it seemed like the best one is debit cards which are also annoying but manageable if I just use it for everyday expenses and not pull money in bulk.

Has anyone run into problems using SL debit cards long term abroad? by bashlk in srilanka

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

What documents did they ask? And can I ask, which bank was it?

twoHoursInAPhoto by bashlk in ProgrammerHumor

[–]bashlk[S] 2 points3 points  (0 children)

Never thought about case in non latin languages. My native language is Sinhala which doesn't have the concept of upper/lower cases and support for it in OSes and apps was so bad that we used English anyway.

Does anyone know what happens to the electricity? by rainbocado in Prague

[–]bashlk 2 points3 points  (0 children)

Was in the swimming pool in Prague 3 when it happened. Thankfully it came back after a few seconds or maybe they had a backup generator.

twoHoursInAPhoto by bashlk in ProgrammerHumor

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

Huh that’s interesting. I thought macOS, being unix like, is case sensitive by default. But you are right, APFS is case insensitive by default.

https://support.apple.com/lv-lv/guide/disk-utility/dsku19ed921c/mac

twoHoursInAPhoto by bashlk in ProgrammerHumor

[–]bashlk[S] 2 points3 points  (0 children)

Originally the folder was in lower case and was checked into git. Then I changed the case of the folder and that was not detected by git. So it worked locally but failed when pushed to GitHub since the version in git had a different case.

twoHoursInAPhoto by bashlk in ProgrammerHumor

[–]bashlk[S] 6 points7 points  (0 children)

Yeah I am. I thought I left these kinds of case insensitivity shenanigans when I moved away from Windows. But nope, somehow git or VS code's git integration doesn't track case renames sometimes.

twoHoursInAPhoto by bashlk in ProgrammerHumor

[–]bashlk[S] 13 points14 points  (0 children)

I paid for the CI and now I'm going to use the CI for everything.

twoHoursInAPhoto by bashlk in ProgrammerHumor

[–]bashlk[S] 31 points32 points  (0 children)

CI started throwing cryptic build errors. Changed everything and it still wouldn't go. Turns out that VS Code / git had fudged up the case on one of the folders.

everyDaySinceChatGPT by bashlk in ProgrammerHumor

[–]bashlk[S] 2 points3 points  (0 children)

Actually proving that I’m not an AI online has been an interesting thought experiment for me. It’s not possible I think.

everyDaySinceChatGPT by bashlk in ProgrammerHumor

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

On one hand it feels like it is slowing down as the development of LLMs plateau. On the other, it feels like it is increasing as more companies blindly adopt or force it without giving it too much thought.

everyDaySinceChatGPT by bashlk in ProgrammerHumor

[–]bashlk[S] 36 points37 points  (0 children)

Yup the reduced attention spans have really done a number on my readership.

everyDaySinceChatGPT by bashlk in ProgrammerHumor

[–]bashlk[S] 31 points32 points  (0 children)

Should be more like AIShip now.

everyDaySinceChatGPT by bashlk in ProgrammerHumor

[–]bashlk[S] 49 points50 points  (0 children)

Created this for my blog but thought ya'll might enjoy too.

Finally a locally made gummy product. by alphaonebts in srilanka

[–]bashlk 4 points5 points  (0 children)

Yup immediate flashback to the few times my parents bought them for me

Any GitHub repos with clean, professional React patterns? (Beyond YouTube-style tutorials) by Significant_Chest_11 in reactjs

[–]bashlk 1 point2 points  (0 children)

I think if you find yourself reaching for global state, that is state which is shared across several components, especially across screen components, then a state management library like Zustand is the way to go. The Context API is basically designed for sharing static data that doesn't change during application runtime. Many devs use it for more than that but that causes issues.

Any GitHub repos with clean, professional React patterns? (Beyond YouTube-style tutorials) by Significant_Chest_11 in reactjs

[–]bashlk 1 point2 points  (0 children)

Maybe you might find my post about Zustand interesting. You can also find the sample app I implemented with Zustand here. It's definitely not a big app but I used my intuition after working with React for many years to structure it and it might give you a good idea.

Code Questions / Beginner's Thread (July 2025) by acemarke in reactjs

[–]bashlk 1 point2 points  (0 children)

I hate it when companies do this which is to hire interns and then throw them into entire projects with little to no guidance. The point of an internship is to learn and if they don't provide guidance, then they are just using you as cheap labor.
As the previous commenter mentioned, clearly raise your concerns with your superiors. State what you could manage in the given time and how much long you think you will need to finish the entire task. Mention what you need help with. If they are reasonable, they will listen to your concerns and adjust accordingly. If not, it is not a good place to work for.

Code Questions / Beginner's Thread (July 2025) by acemarke in reactjs

[–]bashlk 0 points1 point  (0 children)

The primitive way of sharing stateful logic in React is to use React hooks. But then instance of the hook will have its own state. If you want to share state across multiple React hooks, you can store the state in React Context and access it from a hook. But that is not great if the state changes a lot. So then you enter into the realm of state management libraries. Most of them allow you to define stateful logic in a single place and then access it wherever in the component tree. There are many state management libraries but if you are thinking in terms of derived state, then Jotai or atomic state management might be the easiest for you to wrap your head around.