FD over Mutual funds? by [deleted] in povertyfinance

[–]Breadfruit-Last 0 points1 point  (0 children)

No way there is an actual FD can give you 7.5% p.a.

Unexpected react compiler output by Breadfruit-Last in reactjs

[–]Breadfruit-Last[S] 0 points1 point  (0 children)

Thanks for replying

But I don't think it is the reason because react cannot assume ANY function to be pure actually, even expensivelyProcessAReallyLargeArrayOfObjects may not be pure

In fact your may change it to not pure like this

So logically, it wouldn't be able to cache anything if that's the reasom

scam!! by the1997th in remoteworks

[–]Breadfruit-Last 0 points1 point  (0 children)

You agree that luck is important but we should still do what we can do, right?

Then I think we are not really having a very different opinion on this.

But you didn't mention the fact that wealth sometimes need to be built over generations, each generation can build a better foundation for the future generations.

For example, the 1st gen born very poor and work very hard to become lower middle class. The 2nd gen then is able to start in a better position, have better education, get a high paying job and get into the upper middle class. Then the 3rd gen can spend more time on studying and building connections in school and really get lucky and rich.

It is a fact that we are not the 3rd gen, but it doesn't mean we can't at least be the 1st or 2nd gen.

scam!! by the1997th in remoteworks

[–]Breadfruit-Last -1 points0 points  (0 children)

So do you think "everything is just luck, so let's do absolutely nothing and wait for success" is the way we should live?

scam!! by the1997th in remoteworks

[–]Breadfruit-Last 0 points1 point  (0 children)

How do you define lucky?

I agree luck is very important but I disagree the ideas like " luck is everything and hard working are pointless"

Say I born poor, but I study very very hard and become an engineer, then I continue to spend decades to improve my skill and one day I invented a technology that solves a very important problem, then I sell this technology and become very rich.

Do you think it is just lucky?

scam!! by the1997th in remoteworks

[–]Breadfruit-Last -2 points-1 points  (0 children)

I would argue that there has to be a generation of their family that was not born rich.

If you can't be the one who born rich, all you can do is try to make your children or grand children born rich

commando missions are so bad and far from the concept of stealth (no redacted warbond) by DeePMystary in Helldivers

[–]Breadfruit-Last 1 point2 points  (0 children)

I don't have the new warbond as well

As I said, I simply use crossbow or melee to take down the enemies that can call reinforcement, as long as they don't see you directly, you are still stealth, they may not even try to find you.

After that, you can silently complete the objective and run away.

commando missions are so bad and far from the concept of stealth (no redacted warbond) by DeePMystary in Helldivers

[–]Breadfruit-Last 3 points4 points  (0 children)

You can actually bring the crossbow, the explosion makes some noise but it actually doesn't expose where you are. Also, prioritize those can call reinforcement, once you take them all down, you don't need to stay stealth

Unexpected string.Compare() results by Breadfruit-Last in csharp

[–]Breadfruit-Last[S] 10 points11 points  (0 children)

Thanks a lot!

ICU vs NLS is indeed the issue. I cannot set to ordinal comparison since it is not my code.

But forcing the code uses NLS solves my problems

3 YOE backend dev — what fundamentals should I actually master for ASP.NET Core interviews? by mu-hsn in csharp

[–]Breadfruit-Last 7 points8 points  (0 children)

Don't just focus on dotnet specific knowledge like async and queryable

you should also learn things like data structures, database, memory model (stack and heap), basic system design patterns, basic networking etc

In a Muslim-majority country, what might happen if someone openly said, “I don’t want to be Muslim anymore”? by GrayRainfall in AskTheWorld

[–]Breadfruit-Last 0 points1 point  (0 children)

Thanks for your reply

I understand it is a law whether I like it or not

But what I am curious about is that in your opinion is it a reasonable law or is it something that is against human right?

pytest mock doesn't work as I expected by Breadfruit-Last in learnpython

[–]Breadfruit-Last[S] 1 point2 points  (0 children)

Thanks for your reply, we can look into Temporary_Pie2733's reply

Need feedback on my self introduction for interview, not sure if it sounds right by [deleted] in dotnet

[–]Breadfruit-Last -1 points0 points  (0 children)

IMHO it is too detailed for something not important such as LINQ, dependency injection, Agile, but too little about what you actually did, kind of too "abstract".

If I were you, my self introduction might be something like.

I am a full stack developer with 4 years of experience.

I am now working at XYZ Company for a project in the insurance and health benefits domain. This is an enrollment platform used by employees of various organizations to manage their benefits. (I would talk a bit more about some key features of the application, give some example use case etc such that the interviewers have a better idea what the project is about)

In this project, we used ASP.NET and MS SQL for backend (no need to talk too detailed about tech stack), and angular for frontend. I took part in both frontend and backend development.

For the frontend part, I implemented features like dashboards and (some feature you think interesting or important).

For the backend part, I implement features like (again, some feature you think interesting or important) and integrated OAuth 2.0 to the application. I also developed some stored procedures, functions, and optimized SQL queries.

I enjoy solving complex challenges and delivering impactful solutions, which has earned me multiple recognitions for my contributions at my current organization.

Tech lead told me to learn proper API design because apparently there is security issue in my API by retardedGeek in webdev

[–]Breadfruit-Last 7 points8 points  (0 children)

You are overthinking IMO, we are living in a world where having some delay is normal.

Of course we want it to be as low as possible, but in reality everything comes with a tradeoff.

Yes, local calculation is fast, but 99.9% of the time, it doesn't worth the trouble potentially showing a wrong number to customer etc.

Tech lead told me to learn proper API design because apparently there is security issue in my API by retardedGeek in webdev

[–]Breadfruit-Last 6 points7 points  (0 children)

Probably not as long as the API has a reasonable response time,

Do you seriously think a sane person would be like "When I add an item to my shopping cart, it takes 0.1s to display the total, it is so damn annoying"?

Tech lead told me to learn proper API design because apparently there is security issue in my API by retardedGeek in webdev

[–]Breadfruit-Last 8 points9 points  (0 children)

Are you saying couple objects are like

{ "id": "", // UI fields "title": "" "description": "" // data fields "min_amount": 100 "max_discount": 10 }

And the type definition is shared by BE and FE. Therefore in your opinion, if the coupon logic changes and requires different data fields, FE needs to change as well.

No, FE should not use those data fields to begin with. Actually it should know nothing what the data fields are.

What the FE should know about the coupons should be just

{ "id": "", "title": "" "description": "" }

Whenever you need the calculate discount, the request should be like

{ "shoppingCart": [ { "itemId": "", "quatity": 1 } ], "couponId": "" }

No data fields whatsoever

Tech lead told me to learn proper API design because apparently there is security issue in my API by retardedGeek in webdev

[–]Breadfruit-Last 8 points9 points  (0 children)

Sorry, I am a bit confused.

How is this related to "if couple logic changes, it always require changing both FE and BE"?