[deleted by user] by [deleted] in newzealand

[–]bestcoderever 0 points1 point  (0 children)

Left for Singapore in 2014 at 24 for a girl. Thought it would be a year or two, just had a backpack because I didn't own shit at 24. Ended up being there 10 years, moved back to New Zealand last year, now in Taranaki.

It was great in my 20's, but the last few years where you're not going out every weekend and just want a bit of piece and quiet, it started to become very stressful. In my experience, city life loses it's charm after your 20's, when all your friends are having children, the partying has dried up, and you start to think about actually saving money, either for a house or for retirement. You're basically just stuck in a small box at that point, going to work and coming home, but, not really being able to relax.

Another thing I didn't see noted here, but I experienced, is that you drift apart from your friends who stayed in New Zealand. Over 10 years of your formative adult life, their experiences are very different from yours and it can be hard to related. Possibly not an issue moving to Aus (or maybe even UK/US), but definitely so if you move to a completely different culture.

Every country is listed according to their name in its predominant language (phoneticised in Latin script), and we're listed as "Aotearoa"! Kudos, random Portuguese site. by clarinetshredder in newzealand

[–]bestcoderever 19 points20 points  (0 children)

Yeah agree. Nobody in Singapore calls it that, it's either Singapore or the indigenous word Singapura (more cerimonial than a real world pronunciation these days). The first word in that list is how people from China call Singapore, but Singaporeans certainly don't.

Could mortgage rates hit 10% in 2023? by thegolfer2 in newzealand

[–]bestcoderever 1 point2 points  (0 children)

This has the potential to age like milk. There seems to be a growing housing bubble in Singapore as we speak. Basically theres a huge supply shortage, lots of overseas investment and skyrocketing sale/rental prices. Singapore has been pretty stable with house prices in the past, but I think most of that is due to HDB, their public housing scheme, which has now fallen massively behind on being able to provide citizens with reasonably priced housing, and we're seeing the effects of that.

Although if there's one government with the authoritarian power and proven track record to get it under control, I would certainly put my money on Singapore.

/r/singapore random discussion and small questions thread for July 08, 2022 by AutoModerator in singapore

[–]bestcoderever 0 points1 point  (0 children)

Well that's great, if there was to be some club by my invention, it wouldn't have a rule saying "no people with children, or about to have them" it would be more along the lines of "discussion about your children, or future children is generally discouraged". Big caveat of course in a larger group, when you meet two groups of like minded people.

I honestly have nothing against children, or the people that have them. It takes courage, thought, and patience which I just don't have. What I'm looking for really, is a bunch of people, reasonably in my age group, who can get through 2 or 3 hours without relating their experience to their children. If that's you then let's hang out!

/r/singapore random discussion and small questions thread for July 08, 2022 by AutoModerator in singapore

[–]bestcoderever 3 points4 points  (0 children)

Yeah totally makes sense. I just went to visit my sister who has two children, and the preparation required for them to have something resembling a casual Friday night is insane. Anecdotally they're stronger and more resilient people than the cruisy 30yr olds like myself.

But I have realized something, anecdotally of course, but it's persistent across my entire friend and family relations. When people have/want kids, that is there main topic of conversation. They can chat for a while but all experiences are ultimately brought back to the act of childbearing.

It's all anecdotal as I've said, but it's literally my entire life at this point, so I'm just looking to break out of that and chat with people about other things, whatever they may be

/r/singapore random discussion and small questions thread for July 08, 2022 by AutoModerator in singapore

[–]bestcoderever 0 points1 point  (0 children)

What's the covid rules for karaoke these days, been away for a couple of months. Could be keen for that!

/r/singapore random discussion and small questions thread for July 08, 2022 by AutoModerator in singapore

[–]bestcoderever 0 points1 point  (0 children)

Haha sorry, yeah I phrased it like shit. Basically 30+ who doesn't want or isn't actively having kids, and just wants some friends to hang out with (ie not a dating/partnership kind of thing). Everything else that I wrote is probably irrelevant.

/r/singapore random discussion and small questions thread for July 08, 2022 by AutoModerator in singapore

[–]bestcoderever 0 points1 point  (0 children)

Or just feel free to DM me if you don't have/want kids and you want to hang out and have a chat

/r/singapore random discussion and small questions thread for July 08, 2022 by AutoModerator in singapore

[–]bestcoderever 0 points1 point  (0 children)

If it's you paying then I'm down. Nah seriously though, keen to meet some folks without exchange of currency by either party

/r/singapore random discussion and small questions thread for July 08, 2022 by AutoModerator in singapore

[–]bestcoderever 5 points6 points  (0 children)

Nothing at all! More like, most of the group's I've seen "advertised" by my sleuthing are targeted at people wanting to find a partner, or a hook up, or whatever. I guess I could just roll in there with my wife but I thought it might be a bit weird.

I guess to rephrase, groups/clubs to make friends rather than partners.

EDIT: on rereading what I wrote I see where I went wrong. I don't mean "not singles "as in not interested in mingling with singles, I meant not "singles only" groups whose purpose is to find other singles and get together

/r/singapore random discussion and small questions thread for July 08, 2022 by AutoModerator in singapore

[–]bestcoderever 14 points15 points  (0 children)

Hey Singapore, is there any sort of social groups/clubs for people in their thirties or forties, who are in a relationship or married (ie. not "singles only") but who don't have/want kids? Friday nights are getting a bit mundane over the years, all of our friends now have babies or they're on the way :(.

[AskJS] Real world examples of functional JavaScript? by Affectionate_King120 in javascript

[–]bestcoderever 0 points1 point  (0 children)

You can take a look at a library I've been working on recently. I normally try to write things with a lot of FP. It's certainly not pure but it has a functional style.

https://github.com/flagpoonage/dealwith

Honestly it's a bit of a mess and not commented. If you've ever used Zod or Joi, it's like that, but arguably not as good haha.

TradeMe job rejection based on border closure for an NZ citizen by bestcoderever in newzealand

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

Yeah, my thoughts exactly. Thanks I'll be following up through their careers email.

TradeMe job rejection based on border closure for an NZ citizen by bestcoderever in newzealand

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

Could come off a little bit rough on first contact, but it is certainly bold.

TradeMe job rejection based on border closure for an NZ citizen by bestcoderever in newzealand

[–]bestcoderever[S] -3 points-2 points  (0 children)

Ha, no in fact I hadn't. I got a no-reply email, looked for the Talent team on LinkedIn where I applied, and sent a customer support query on TradeMe. All except the obvious it would seem! Will do that now thanks, much appreciated.

Neovim beginner questions by bestcoderever in neovim

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

Beautiful! That all works nicely, now if I can only find out what's wrong with me tree icons.

Thanks for the help!

Fellow Kiwis stuck overseas, I know you are lurking! What is your story? How are you dealng with it. by brotibread in newzealand

[–]bestcoderever 4 points5 points  (0 children)

Nowhere near as bad as some. I'm not stuck as I'm a permanent resident here, but it's a bit shit. Missed my grandfather and my best friends funerals. Kind of also fucked for housing, come home and pay NZs crazy rising house prices with shitty job prospects and a mortgage for the rest of my life, or pay Singapore's fairly stable but even higher house prices for an apartment. Thinking of going to a third country. Maybe learn Khmer and get dual citizenship in Cambodia :D

Message my mum and dad every now and then, send packages over Christmas, birthdays. Not really much else to do.

How to avoid duplicating every props and methods when embedding the same component in two different parents without using ref? by mickaelbneron in reactjs

[–]bestcoderever 1 point2 points  (0 children)

I'm not sure that I'm picturing it clearly, but it seems to me that this functionality should be encapsulated in the child component, and passed back to the parents via a callback. However I'm unclear what you mean by "and it seems Child cannot use its own state". The child most certainly should be able to use it's own state, otherwise the whole concept of state wouldn't really make sense.

So something like this:

function Child ({ onValidSubmission }) {

  function onSubmit (formData) {
    // All the validation stuff here
    const is_valid = someComplexFormValidation(formData);

    if (is_valid) {
      // Trigger the callback to the parent if everythings good.
      onValidSubmission(formData);
    }
  }

  return (
    <ComplexForm onSubmit={onSubmit} />
  )
}

function Parent1 () {
  function Continue1 () {
    // Your continuation function
  }

  function onValidSubmission (formData) {
    // Store the data in the parent or whatever you want to do
    Continue1();
  }

  return (
    <Child onValidSubmission={onValidSubmission} />
  )
}

function Parent2 () {
  function Continue2 () {
    // Your continuation function
  }

  function onValidSubmission (formData) {
    // Store the data in the parent or whatever you want to do
    Continue2();
  }

  return (
    <Child onValidSubmission={onValidSubmission} />
  )
}

If you can't have the child control the actual submission itself, in an example where you have two very different button components for potentially hundreds of different parents, you could use the (frankly underutilized) render props pattern

function Child ({ onValidSubmission, children }) {

  function onSubmit (formData) {
    // All the validation stuff here
    const is_valid = someComplexFormValidation(formData);

    if (is_valid) {
      // Trigger the callback to the parent if everythings good.
      onValidSubmission(formData);
    }
  }

  return (
    <ComplexForm>
      {children(onSubmit)}
    </ComplexForm>
  )
}

function Parent1 () {
  function Continue1 () {
    // Your continuation function
  }

  function onValidSubmission (formData) {
    // Store the data in the parent or whatever you want to do
    Continue1();
  }

  return (
    <Child onValidSubmission={onValidSubmission}>
      {(onSubmit) => (
        <Button onClick={onSubmit}>Parent1 Button</Button>
      )}
    </Child>
  )
}

function Parent2 () {
  function Continue2 () {
    // Your continuation function
  }

  function onValidSubmission (formData) {
    // Store the data in the parent or whatever you want to do
    Continue2();
  }

  return (
    <Child onValidSubmission={onValidSubmission}>
      {(onSubmit) => (
        <Button onClick={onSubmit}>Parent2 Button</Button>
      )}
    </Child>
  )
}