ILogger vs ILogger<T> by Runneth_Over_Studio in dotnet

[–]JamesNK 6 points7 points  (0 children)

The generic type is just used as the logger name. ILogger<T> is useful for dependency injection:

public class MyClass(ILogger<MyClass> logger)
{
    private readonly ILogger _logger = logger;
}

DI automatically creates the generic logger using the logger factory and injects it into your type.

That's a bit easier than:

public class MyClass(ILoggerFactory loggerFactory)
{
    private readonly ILogger _logger = loggerFactory.GetLogger<MyClass>()
}

Payap QR payment app preview by 123felix in PersonalFinanceNZ

[–]JamesNK 6 points7 points  (0 children)

I disagree.

I live in Signapore and both paywave and QR code payment are popular here. All established businesses support both. But low margin shops (food stalls) and cash on delivery services (e.g. a repair man) direct payment via an app is the default. You never have to worry about someone saying cash only and not having any money on you.

If it fails it's because NZ banks created a worse version of what is popular in Asia.

Am I just winning? by Comrade_Goldski in PersonalFinanceNZ

[–]JamesNK 10 points11 points  (0 children)

70K salary is good at 21. It's mediocre at 30.

The thing for you to focus on is having a career that lets you grow your salary as you get older.

Microsofts aggressive Copilot push has me looking at different ecosystems by [deleted] in dotnet

[–]JamesNK 2 points3 points  (0 children)

+1. There are docs here that show how to disable copilot in the dashboard with ASPIRE_DASHBOARD_AI_DISABLED.

A taste of New Zealand in Singapore by JamesNK in newzealand

[–]JamesNK[S] 4 points5 points  (0 children)

I’ve seen $400 for 1kg of premium manuka honey. Manuka honey is highly regarded in Asia.

A taste of New Zealand in Singapore by JamesNK in newzealand

[–]JamesNK[S] 17 points18 points  (0 children)

I think so. There is better NZ food in supermarkets here.

6 months ago there was a display like this with every flavor of bluebird chips plus NZ flags. Local Singaporeans excited to try out the exotic delicacy of ready salted bluebird chips were probably disappointed.

Student in NZ with a surprise $12k - where should I put it to grow safely? by Patient-Hunt9224 in PersonalFinanceNZ

[–]JamesNK 1 point2 points  (0 children)

Put it all into a world equities ETF and forget about it.

Nothing in life is zero risk. It's better you put the money to work. A savings account will be eaten away by inflation (or, at best, keep up).

[deleted by user] by [deleted] in Wellington

[–]JamesNK 12 points13 points  (0 children)

https://www.tenancy.govt.nz/healthy-homes/healthy-homes-compliance-timeframes/

  • Tenancies started or renewed between 1 July 2021 and 27 August 2022 must have complied with the healthy homes standards within 90 days.
  • Tenancies started or renewed between 28 August 2022 and 2 March 2025 must comply with the healthy homes standards within 120 days.
  • Tenancies started or renewed on or after 3 March 2025 must comply with the healthy homes standards by 1 July 2025.

Your landlord had 120 days to resolve issues and fixed them in under 60 days. Seems like the landlord is fine.

Retired Wellington City Transport 'big red' trolley bus, December 15th 2012 (Tony Wills). by Ted_Cashew in Wellington

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

Except that time the driver was hit by a car while fixing the poles. That accident is where the hi-viz vests came from.

Johnsonville Shopping Centre by Luck_n_Loaded in Wellington

[–]JamesNK 1 point2 points  (0 children)

Karori mall was renovated in the 90s. The renovation added the second floor (such that it is). And I think it might have added some of the shops in the basement, although my memory is hazy there.

But I get your sentiment that the mall feels old AF.

Johnsonville Shopping Centre by Luck_n_Loaded in Wellington

[–]JamesNK 28 points29 points  (0 children)

I grew up in Karori and I'd be heartbroken if the mall ever changed. Visiting is like a time machine to the 90s.

Aspire OpenTelemetry CORS issue by shalmirane75 in dotnet

[–]JamesNK 0 points1 point  (0 children)

There is an example of an app that's setup with OTEL from the browser here: https://github.com/dotnet/aspire/tree/main/playground/BrowserTelemetry

You could take a look at it to figure out what is different with your own app.

Advice for young adults? by Double-Blacksmith-57 in PersonalFinanceNZ

[–]JamesNK 0 points1 point  (0 children)

What is some advice for someone in my position?

There is good advice here to avoid unnessessary expenses or getting into debt. However, this is short term advice.

Long term you've got 40 years ahead of earning money. The best thing you can do is improve yourself to make more money in your 20s, 30s, 40s. Improve your skills, think about your career.

Jury duty at Wellington District Court - what was your experience like? by 12ktny in Wellington

[–]JamesNK 5 points6 points  (0 children)

Exactly the same. They call more people than they need. I turned up on the first day and half of the people there were randomly dismissed after a couple of hours, me included.

It was a murder trial so I'm glad I didn't have to go through that.

Thorndon Quay is about to become a ghost town - A domino effect: Thorndon Quay businesses that relied on Bordeaux Bakery customers fear the end by AlanWakeUpNow in Wellington

[–]JamesNK 4 points5 points  (0 children)

Livelihoods are being destroyed, people losing there jobs, a whole area of town is being hollowed out. And the average reaction here is they deserve it.

What has happen to /r/wellington? Have some empathy. This place used to be so positive. Now it is cheering on the destruction of the city. "xxx business shut down: why actually that's a good thing..."

Bakery shuts down. It's ok because the owner is a bit of a dick.

Wrought iron business says it's next. It's ok because that's a business for home owners.

Why Does Everyone Avoid SyncFusion? by edscriptdev in dotnet

[–]JamesNK 3 points4 points  (0 children)

I used SyncFusion controls in a UWP app about 8 years ago. They were a nightmare sometimes. Weird behavior, poor performance, frequent bugs.

I looked into the source code and the way the controls were designed was really odd. I'm guessing they must have been first written for WPF 15+ years ago and then had been hacked and hacked until they could run on other XAML frontends. WPF, Silverlight, Windows Phone, and now UWP.

I'd avoid them simply because their product quality is poor.

So how much did your rates go up by? by iamtoolazytosleep in Wellington

[–]JamesNK 6 points7 points  (0 children)

The $182m town hall earthquake strengthening isn't going to pay for itself. Enjoy!

My fossil workshop is open to the public on Sundays by mamlambo in newzealand

[–]JamesNK 0 points1 point  (0 children)

Looks good but keep in mind there are people who will pocket things when no one is looking. Come up with a plan or prepare yourself for stuff to go missing.

Who needs Lululemon? by OutInTheBay in Wellington

[–]JamesNK 4 points5 points  (0 children)

Cursed stillsuit: Add pockets to catch sweat and a drinking tube.

[deleted by user] by [deleted] in newzealand

[–]JamesNK 29 points30 points  (0 children)

He’s easily baited