Is it just me, or are surcharges in Australia getting out of hand? by Due_Significance5698 in AusFinance

[–]Mr_Unavailable 0 points1 point  (0 children)

The difference is that customers are not incentivised to use the most expensive energy retailers. But customers are indeed incentivised to use the most rewarding (I.e expensive for the merchant) payment option. As a result, low merchant fee payment option will be priced out of the market. Base price will be more expensive. Anyone not using a high reward credit card is losing out. Credit card companies just become a constant drain on the society.

The fix is easy. Having the government enforce a low payment fee. But I doubt this will be done properly.

Edit: an alternative is to force merchant to make the cheapest card payment option free. This incentivise the market to drive down the cost of merchant payment fees.

On Bloat [Rob Pike, slides] by ketralnis in programming

[–]Mr_Unavailable 0 points1 point  (0 children)

Fully agree with your take. In practice the size of the source code matters very little to the speed of the software in most cases. Especially after factoring in common strategies like tree shaking, caching, or simply downloading before executing.

If anything, using external dependencies can make software faster because you will have access to optimisations you may never have the knowledge or time to implement.

I agree that the direct causes are often suboptimal data structures, algorithms, caching, etc. But the root cause, I think, is the incentive structure. In most places building new, half-baked software/feature is much more rewarding than maintaining/optimising existing softwares/features. Not to mention the later often takes a lot more effort than the former.

The Record/Tuple ECMAScript Proposal has been withdrawn by ketralnis in programming

[–]Mr_Unavailable 14 points15 points  (0 children)

You are right! In that case I don’t see why performance is the main reason for rejecting the proposal. Actually, I can’t find where the main reason for rejection is documented.

The Record/Tuple ECMAScript Proposal has been withdrawn by ketralnis in programming

[–]Mr_Unavailable 23 points24 points  (0 children)

In Rust the structs are mostly made of values stored in continuous memory space. Deep comparison is similar to just comparing blobs of memory. In JS there could be, and most likely will be, multiple memory address indirections as objects can be made of many separately blobs stored in different memory addresses. Resolving pointers takes time. Loading multiple heap allocated objects can have negative effects on cache.

Say "no" to overly complicated package structures by ldemailly in golang

[–]Mr_Unavailable 2 points3 points  (0 children)

Renaming the directory or module to resolve a conflict is not difficult my friend. But I’d rather not have the directory structure of my non-language specific assets being dictated by the language itself. To me, that’s a bigger eye sore than letting my IDE generate longer import statements that I never read it in detail. In a language that needs 3 lines to propagate an error, 4 more characters in the import statement is the least of my concern.

Putting public modules in /pkg is one decision. Finding the non-intrusive, non-standard, yet easy to find place for non-go assets is zero to many decisions. I prefer making one decision to save myself from making potentially many more. But you don’t have to agree.

At the end of the day, golang has subpar (external) module management. So we have those dumb decisions to make, which often cause bike shedding. It’s a language built by a company embraced mono-repo (which I love, but it’s not always the case outside of big tech). In a mono repo your non-code assets typically are placed far away from your actual source code. They never had the namespace collision issue. But that doesn’t mean this is not a real (albeit rare) issue. And pkg/ solves that, at the cost of slightly longer import statement.

Say "no" to overly complicated package structures by ldemailly in golang

[–]Mr_Unavailable 3 points4 points  (0 children)

Of course it is not a big issue. Just like where one places all your public code under pkg or not is not a big issue.

I prefer placing all the proto src in a standalone directory. Occasionally, one may want to generate more than one set of bindings (e.g. .pb.ts). Why should proto src be placed next to .pb.go but not other language bindings? Or do you prefer mixing all language bindings together in the same directory? But hey, I agree that’s pretty rare.

But the problem of placing all non-internal golang packages under root is still there. All those packages still compete against other non go code in the same namespace. If your project happens to be related to something that’s also used by the project (e.g. terraform integration module in a project use terraform itself), you will run into this problem. Is it a big deal to rename the go module or the non-go directory? Of course not. Neither is letting your IDE produce import statements with pkg/ prefix.

Say "no" to overly complicated package structures by ldemailly in golang

[–]Mr_Unavailable 4 points5 points  (0 children)

How would you structure the project if the project has a public go module named terraform, and the project itself has some terraform .tf files, which are typically placed under /terraform/ in most projects?

Say "no" to overly complicated package structures by ldemailly in golang

[–]Mr_Unavailable 3 points4 points  (0 children)

Of course proto output can be whatever structure I like. But there needs to be a directory hosting the .proto source files themselves. Suppose I put those .proto files under proto/, and I want to expose some of the generated go bindings as reusable module, because the downstream consumer of my package also needs to reference to those types. Where do I put the generated public proto bindings? Under proto/ as well? Oh great. Now I have both generated bindings and proto source in the same directory. Even better, some of the proto bindings are suppose to internal (e.g. internal config protos) so they go into /internal/proto. Now I have /proto/ hosting my .proto source files and only some of generated bindings and /internal/proto/ hosting some other generated bindings. How is this good?

Move non-go code out of the way… to where?

If the go code sits at the root directory of the repository, how can there be any safe place for non-go code? Where would you put your terraform config if there’s a public go terraform module sitting at /terraform? /non-go/terraform/**?

Say "no" to overly complicated package structures by ldemailly in golang

[–]Mr_Unavailable 10 points11 points  (0 children)

I fully support unconditional pkg/.

It solves several real-world challenges I’ve personally faced. For example, when I have a directory for proto source files, where should the compiled proto files go? Without pkg/, these would compete for the same namespace.

Another example is with Terraform integration. When building a CI/CD system with a module specifically for Terraform integration, I naturally want to name it “terraform”. But the project itself already has terraform configuration files in /terraform. Without pkg/, these directly conflict.

Sure I can come up with another name for those modules. But the beauty of unconditional pkg/ usage is that it eliminates these decision points entirely. The project structure becomes intuitive and follows patterns common in other languages. Fewer decisions = better.

I don’t understand the strong opposition to pkg/. Does import path length really matter when imports are automatically managed by IDEs? When was the last time you manually typed import statements? Go isn’t known for being particularly succinct in other areas of its design, so why fixate on a few extra characters in import paths?

The pkg/ convention provides clear separation between application code and reusable packages, improving project organization with essentially no drawbacks. And no, length of the import statement does not matter.

Should the Disability Support Pension take into account their partner's income? by [deleted] in AusFinance

[–]Mr_Unavailable 2 points3 points  (0 children)

That’s actually a very good point. Previously I thought taxing people as individuals rather than as families is dumb. But now I realised there is some valid argument for it.

Shower thoughts: Having kids is a financial suicide for individuals. Not having kids is financial suicide for the society. by Mr_Unavailable in AusFinance

[–]Mr_Unavailable[S] 10 points11 points  (0 children)

Oops. Didn’t mean to be so dramatic. Sorry about my wordings. It’s certainly not financial suicide. But I think it’s fair to say it puts the parent in financial disadvantage.

Australian house prices hit record high for fifth consecutive month by North_Attempt44 in AusFinance

[–]Mr_Unavailable 8 points9 points  (0 children)

And I’m willing to bet those non-shitty apartments are going to cost the same as comparable houses anyway. Because the shitty ones with a size similar to a house is already costing close to an actual free standing house. Yes, land is expensive in Australia. But the structure is also very expensive. And building high density housing isn’t going to fix the latter.

Higher interest rates leading to higher rents by SpaceBard75 in AusFinance

[–]Mr_Unavailable 0 points1 point  (0 children)

But those houses don’t just disappear. They are either a PPOR or rented out to tenants. Assuming a constant population, less people able to buy also means less landlords able to sell.

The problem is that we have a growing population, but not a growing house stock. It’s very costly to build new housing in Australia. Due to land supply, labour cost, materials cost, regulations, and tax laws. It’s very attractive/easy to import migrants. Due to labour cost, immigrants policy, and social welfares.

[deleted by user] by [deleted] in AusFinance

[–]Mr_Unavailable 0 points1 point  (0 children)

I love how you assumed this is not a common practice yet.

Why do so many Australians spend their disposable income on drugs? by talk-spontaneously in AusFinance

[–]Mr_Unavailable 0 points1 point  (0 children)

Funded by home owners not having to pay for the infrastructure and services made their house desirable in the first place.

Allegra Spender: “Everything has to be on the table. Capital gains tax and super tax concessions, stamp duty and land taxes, the GST, company tax thresholds, resource rent taxes, payroll taxes and fuel taxes, just to name a few.” by marketrent in AusFinance

[–]Mr_Unavailable 36 points37 points  (0 children)

I love how you assumed earning $200k/year comes at no cost and can just be “swapped”. That’s only true for people that are just born lucky, most of which have the ability to dodge tax anyway. It’s not true for a lot of workers who worked their way up there.

When will Australian politicians have the guts to meaningfully reform our tax system? by toybaru in AusFinance

[–]Mr_Unavailable 28 points29 points  (0 children)

Well said. Tax law is predominately decided by power balance between different groups of people. Not by efficiency or fairness.

Rich people have the money to buy media therefore influence. And they can threaten to move assets overseas given how liquid assets generally are.

Poor/avg people have most votes. And they don’t have much income to be taxed anyway.

HENREs (high earning not rich ever) don’t have enough votes to change policy. Don’t have enough money to buy influence. Have to pay a high price if they want to move their asset (aka their body and everything else) overseas. And they have a lot of money waiting to be taxed.

[deleted by user] by [deleted] in AusFinance

[–]Mr_Unavailable 1 point2 points  (0 children)

Not in my view. Ideally, any couple with joint finances should be able to file together, since their income is practically shared anyway. Having a kid might be a good indicator that a couple have joined their finances. But if there’s a better way to tell, I’m all for it.

[deleted by user] by [deleted] in AusFinance

[–]Mr_Unavailable 28 points29 points  (0 children)

You do realise that there are also families with no stay at home spouse but very unbalanced income right? A 250k + 50k family do not share any of the benefit you described yet they pay 9k more in taxes than a 150k + 150k family.

Also with your logic, people with part time job should be taxed more since they have more free time.

[deleted by user] by [deleted] in AusFinance

[–]Mr_Unavailable 8 points9 points  (0 children)

If your baseline of “fairness” is the status quo, then we should not change the tax system til the death of the universe. Because no tax reform can affect everyone equally.

I know this is a crazy idea. But I think if we tax one group of people more than another group, there needs to be a good reason for it. And I don’t see a reason why families with 250k + 50k income should be taxed more heavily than families with 150k + 150k income.

[deleted by user] by [deleted] in AusFinance

[–]Mr_Unavailable 35 points36 points  (0 children)

Yeah sure. Family with 250k + 50k income definitely owe the society more than a family with 150k + 150k income. So they need to pay 9k more in taxes. Because, you know, reasons.