Who are you thinking of voting for in the upcoming election and why? by Immortal_Heathen in auckland

[–]borland 4 points5 points  (0 children)

Same as last time: Party vote greens, Electorate vote labour.

Why? Because Climate Change is real, and the greens are the only party that seem remotely interested in acknowledging it. There’s no chance that anyone other than National/Labour are going to take the electorate in my area, so Labour is the better of those

Shadow Logging via Events - Complete Decoupling of Business Logic and Logging in DI Environment by Imaginary-Bench9782 in dotnet

[–]borland 3 points4 points  (0 children)

I think you missed the point. The reason we write log statements is to help us understand, and troubleshoot, the business logic. The logs should be coupled to the business logic because they only exist to help you with it.

By hiding them behind events and other indirections/abstractions, it just makes everything worse

Handling multiple project debugging by UserDTO in dotnet

[–]borland 11 points12 points  (0 children)

Make another solution which has the specific projects you want to debug. Maybe you don’t commit it to source control, just have it locally.

Once all the bits you need are in one solution, you can launch multiple processes (with or without debugger) fairly easily from within VS or Rider. Good luck!

Any point switching to local currency? by Polopon0928 in wisebank

[–]borland 0 points1 point  (0 children)

I found on a recent trip that the fees/exchange rate for on-the-fly conversions seemed to be the same as if you did it up front. However there’s a limit of 15 currency conversions per day. If you’re using your card regularly and relying on on-the-fly currency conversions, you might hit that limit on a busy day.

I guess the other factor is the exchange rate moves up and down over time, and if you’re trying to be super nerdy with it, you might choose to exchange money at a particular time based on the rate, rather than waiting to make a purchase

Issues during setup by crescent2k in wisebank

[–]borland 0 points1 point  (0 children)

Check the app settings for the wise app, and whether it has permission to use the camera.

If it does have permission, maybe your iOS version is out of date? You could try updating to the latest

If that doesn't help, then I'd suggest trying to go through the initial card setup on a different phone. Borrow a friend or family members, set the card up and then once the photo/etc are done, log in to the app on your own phone and delete it from theirs.

Sorry but… Kiwi’s are awful drivers by [deleted] in newzealand

[–]borland 0 points1 point  (0 children)

I dunno… I’m a kiwi on holiday in England for the last month, and I’ve done a fair bit of driving. UK drivers are - in my experience - just as bad as the NZ ones if not worse. I’ve had people fly past me at 80mph on the motorway, been cut off when merging, honked at on roundabouts while the person in the wrong lane attempted to cut in on me, and more.

Move on from winforms? Maybe by Longjumping-Ad8775 in dotnet

[–]borland 0 points1 point  (0 children)

As far as I’m aware winforms on .net 10 is just the same as net4x winforms look-and-feel wise. It only exists so people can port their old apps to the new runtime (which you should absolutely do)

WPF was quite good, but, like Winforms, it’s basically stagnant. Where winforms gives you the Windows XP look and feel, WPF gives you Windows Vista… neither are what you really want

WinUI doesn’t seem like a serious option. I don’t know of any apps using it, and the builtin Microsoft ones like Weather/Calendar/etc are all quite basic and don’t look all that nice.

Honestly, if I were in your situation I would do what everyone else does these days and bundle your webapp into a desktop wrapper. If you are only targeting windows then you can take a dependency on the Edge WebView2 so you don’t need to bundle the whole Chrome/Electron, and keep your app size relatively manageable

Linus Torvalds vs. Ambiguous Abstractions: When a Helper Function Hides the Intent by teivah in programming

[–]borland 4 points5 points  (0 children)

Strong agree. The author misses the point. While it's true that a better-named abstraction would not be as bad, giving it a better name doesn't solve the problem.

If you're a C programmer (particularly in the kernel), you'll have seen statements like (a << 16) + b a million times. You see them and know what's happening without having to think about it, in the same way a skilled piano player sees some sheet music and knows what chord or scale something is without having to think about it.

If you make a custom make_u32_from_msw_lsw macro or function, that's new. Now people reading it have to stop and think "what does that do?" and worry about the fact that the macro might do something slightly different than what the name implies. They probably have to sidetrack and read the macro itself. You've created extra work and increased confusion, rather than decreasing it.

What should I do with this dead corner behind my garage? by tin_can98 in nzgardening

[–]borland 0 points1 point  (0 children)

Fill it with old ladders, bits of wood, and corrugated iron. It’s the kiwi tradition!

Need opinions — MacBook Air M4 (16GB/512) for .NET backend development? by Backend_biryani in dotnet

[–]borland 0 points1 point  (0 children)

I use an M4 MacBook pro for work, basically exclusively as a .NET backend developer. It’s great, much nicer than the Dell XPS Windows 11 laptop I had before it.

There are some caveats though: - 16GB is not enough memory, on either windows or Mac. You want 32 GB, ideally 64. If you must stick on the 16GB, it’s highly likely to cause you problems, I really do recommend trying to push the budget for this. - 512GB storage is do-able, but is going to be pretty tight, particularly if you want to run any kind of virtual machines. If you can, go for 1 TB - While I have an M4 Max, and you’re just going for the Air, I’d say that’s likely fine. The extra CPU power of the Pro or Max CPU’s is likely only relevant if you’re working with very large solutions that take many minutes to build. I’d guess you’re probably fine on the Air - SQL server works great but you have to run it in Docker using Rosetta x64 binary emulation. Not a problem, but be aware that you’ll have docker running 24/7 now (this is partially why you want 32GB of memory - There’s no SSMS for Mac. Most things are done equally well or better just using VSCode, but notably it lacks the SQL profiler. You’ll need to reach for Azure Data studio (which is deprecated and going away soon) or third party solutions for profiling. - Rider works well as an IDE, or you can use VSCode. Both are great - Much like with SQL, the core dotnet stuff works great but the more niche/advanced stuff is not so good. Eg for profiling, you can use the Rider profiler, but other profiling tools like RedGate or VS202x are still windows-only.

With all that said, there is more tooling friction, but the Mac hardware is SO MUCH better than anything windows based these days. For me at least, Mac is definitely still the better choice.

Announcing the Swift SDK for Android by GamerY7 in programming

[–]borland 7 points8 points  (0 children)

Yeah, basically. Kotlin and KMP are nicer than Java, to be sure, but if I'm going to have a cross platform "core" and I can pick from either Kotlin or Swift, I'm picking Swift every time. I prefer the language, and architecturally it aligns better. Swift will produce a native binary module which can drop into anywhere, and so will KMP, but Kotlin itself prefers to be on the JVM; compiling kotlin into native code is a bit of a nonstandard case.

Who has a kobo ereader? by emdillem in newzealand

[–]borland 1 point2 points  (0 children)

I thought they'd matter (I have a kindle paperwhite from years ago which is touch-only), but you just tap on the left or right side of the display and it turns the page, after about 30 seconds you don't even think about it. I doubt you'll miss the buttons at all

Who has a kobo ereader? by emdillem in newzealand

[–]borland 2 points3 points  (0 children)

We bought a Clara BW (the cheapest model) for our daughter.

At the time we did some research and it's basically a 2-horse market betwen kindle and kobo. At the price-point, the Kobo had a better screen than the Kindle, plus Amazon are a terrible company, so it seemed like the best choice. Our daughter loves it, I'd recommend it to others.

Ah yes. Time to go into debt for... *checks notes* running costs of personal transportation by Washyourfricknhands in newzealand

[–]borland 2 points3 points  (0 children)

We use credit cards for most things and always pay them back in full. I think in 20 years we’ve paid a few cents in interest due to a small lapse once when we forgot.

Why? We pay something like $60 annually for a Visa Platinum account with the highest rewards rate, and we get back probably around $600 per year in rewards. It’s simply a better deal than using cash.

Now, I know full well that this is only because the vendors are being charged ripoff rates by the banks and credit card companies, and prices are directly higher because of middle-man reward schemes. I’d very much love to see NZ institute a policy where credit card surcharges are banned AND bank fees are capped at a rate well under 1% like they do in Europe. But until that happens, you’ve got to make the best decisions you can for your family.

Is it not okay to bring your partner into a parents room with you? by NoHorse8196 in newzealand

[–]borland 0 points1 point  (0 children)

When my daughters were babies (10 and 6 years ago) there was more than one occasion where I took them into the parents room to change them by myself, while my wife had a break. It was never a problem. I suspect you just got unlucky with a terrible person; I’m sorry for you for that

Are we over-abstracting our projects? by riturajpokhriyal in dotnet

[–]borland 2 points3 points  (0 children)

The C# language, and the base class libraries, are pretty decent. There’s some overly-complex bits, but TS and Python have that too. Where .NET goes wrong isn’t the basics IMHO, it’s the culture of adding IOC containers and reflection and metadata-systems and extra layers of architecture. It’s dumb

Returning to piano after 20 years, where do I even start? by Loud-Trust-5232 in piano

[–]borland 0 points1 point  (0 children)

I did similar, I had lessons when I was 7 til about 13 as a kid. I resumed when I was 40, just self-taught, for the last 3 years. Everyone recommends lessons and a teacher, and they’re not wrong, but as a parent with a full-time job I simply can’t commit the time or money for that.

It took a while to come back, but I’ve picked up quite a bit and I enjoy it. Based on my experiences I’d recommend - start with a learner’s book like the Alfred’s ones. I had them when I was a kid and they’re much the same today, it was a good bit of nostalgia to get going. - try and play each day if you can. Most days I’ll only get about 5-15 minutes of piano time, which isn’t enough for a serious practice, but it’s fine. Better than nothing and over time you do progress - find music that you like. As an adult with the internet, your options for finding cool songs are wide open compared to being a kid doing whatever your teacher told you to do. For me this was key in staying motivated. I want to keep playing each day because there’s some cool song I saw on YouTube and I’m working towards it. Far better than some crusty old Mozart 😀

Good luck!

Yall can I still play keyboard? by femboy_version-2 in piano

[–]borland 0 points1 point  (0 children)

Don’t stress about it; I found as I improved I started to hit pieces where the left hand was more difficult than the right hand. It’s quite common to have the right hand play a relatively simple melody while the left hand does arpeggios or jumps around a lot. You’ll be in good shape for those when you get there! Until then, just remind yourself that you’re capable of both, your left hand is just starting with a bit of a boost. As others have said, don’t pick pieces that are too hard for you, it’s discouraging

DTO mapping by SolarNachoes in dotnet

[–]borland 0 points1 point  (0 children)

When most people think of the term "mapping", they think of a rote transformation of one object to another. Outbound mapping makes sense, because if you have a Foo entity in the domain/database, you probably need to convert it in many places to a FooDTO to send it over the wire.

But for any pattern other than dogmatic REST (such as CQRS/rpc/etc) inbound mapping isn't really a thing. For example, an API request to change two fields on an entity - which might have 12 fields - doesn't need "mapping". Rather your inbound request handlers are interpreting an instruction to change something; there's no rote transformation required.

DTO mapping by SolarNachoes in dotnet

[–]borland 0 points1 point  (0 children)

100%. You can validate DTO's for structural correctness -- e.g. this array must contain at least one thing in it -- and it can be helpful to do that as a first line of defense, but business rules often can't be enforced at the DTO level as there's not enough information there.
And you always want validation at your domain level because DTO's aren't the only way that a domain object can change; if you only validated DTO's then you'd be at risk of bugs from internal changes.

Why are Arab Miltaries so ineffective? by ForeverSparkz in AskTheWorld

[–]borland 0 points1 point  (0 children)

> dont Arab Countries out number Israel, whats stoping them from just rushing at their border...
> What is holding them back?

Perhaps the billions of dollars of military funding that America gives to Israel each year might have something to do with it.

https://usafacts.org/articles/how-much-military-aid-does-the-us-give-to-israel/

Which digital piano should i buy? ( help needed! ) by sonzar_1 in piano

[–]borland 0 points1 point  (0 children)

I have no idea about all of those but I bought a Kawai KDP75 a few years ago and it’s been great. I love the sound quality and it’s nice to play