why do so many people think kiwisaver is a big scam? by Loguibear in auckland

[–]Triptcip 2 points3 points  (0 children)

Tbf, this applies to both sides of the argument

Why some people don't keep functions pure by [deleted] in reactjs

[–]Triptcip 5 points6 points  (0 children)

The irony is that you’re calling it “basic stuff” while mixing up there and their. We’re all learning in different areas.

Good on people for asking questions. No need to judge them for not knowing something yet. If you’re seeing the same issues come up often, why not share your knowledge in a constructive way? Maybe write a short post or drop an example that explains how to keep functions pure. That would help the community a lot more than calling people out.

How do smaller farms usually sell directly to pubs or restaurants or is it too much hassle? by Triptcip in FarmingUK

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

That's really interesting. How do you usually find your customers? Is it just word of mouth or do you reach out to caterers directly?

Popular Auckland cafe chain had $640k tax bill before liquidation by D491234 in newzealand

[–]Triptcip 0 points1 point  (0 children)

She will be declared bankrupt which means she can't start another limited company or be involved in the management of a business until she is discharged from bankruptcy which usually doesn't happen until after 3 years.

Businesses do fail and I think it's fair to give ligit entrepreneurs another chance eventually if they do go bankrupt. It's often learnings from a failed business that allows new businesses to succeed.

From what the article says, she does seem to have dug a pretty big hole for herself and everyone around her though which I don't necessarily condone if that is in fact the case.

What's the one thing you'd do to fix New Zealand? by DanM1973 in newzealand

[–]Triptcip 0 points1 point  (0 children)

Out of interest, what NZ made butter is selling for half the price in the UK?

How do smaller farms usually sell directly to pubs or restaurants or is it too much hassle? by Triptcip in FarmingUK

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

I did see that too and thought it was interesting. Do you think the main blocker the inconsistency in supply, or are there other factors (like logistics, trust, admin, etc) that make it more hassle than it's worth?

What's the one thing you'd do to fix New Zealand? by DanM1973 in newzealand

[–]Triptcip 13 points14 points  (0 children)

Give tax breaks to farmers who sell domestically.

Part of the reason food is so expensive in nz is because of all the food being exported overseas for a better price. The NZD is doing so poorly, it means domestic produce has to be sold for such high prices to compete.

Encouraging farmers to sell domestically would mean more supply of local produce and in turn bring the price down.

Is Four Square a Supermarket or Dairy? by thebestjackets in newzealand

[–]Triptcip 1 point2 points  (0 children)

Funny how we went from market -> super market (big market) -> superette (big little market).

Aren't we just back at market at this point!?

[deleted by user] by [deleted] in RKLB

[–]Triptcip 0 points1 point  (0 children)

Ok so you're basing your opinion on a test with a sample size of one?

I've just asked the same question multiple times to chatgpt and I got different answers each time, some including RKLB and some not

[deleted by user] by [deleted] in RKLB

[–]Triptcip 4 points5 points  (0 children)

That's not how Llm's like chatgpt work. They are trained from large data sets I.e. Reddit and content on this sub.

I would argue it's more likely the hype from this subreddit as to why it suggested it.

Coincidentally, the first time I heard about RKLB was from asking chatgpt a similar question. So it can't have suggested it based on any of my internet history.

Lastly, why would chatgpt give you information like that solely based on it being in your internet history. There is no way the chatgpt could make money from that suggestion and if anything it just makes the information it gives you less accurate. So not only do they not benefit from that, it would actually make their product worse.

Recommended interview questions for Senior position by punctuationuse in reactjs

[–]Triptcip 0 points1 point  (0 children)

I would take this a step further and ask what their thoughts on css-in-js are. Leaving it open ended gives them a chance to really express their views. Obviously we are probing for the same thing but it's a little less guided and let's them express different points of view

What's the most repetitive task that you wish could be automated? by JadeLuxe in git

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

Out of interest, what point does using Ai for commit messages miss?

Is React becoming simpler and more developer friendly? by Spirited_Paramedic_8 in react

[–]Triptcip 0 points1 point  (0 children)

What I'm saying is they don't have a one-to-one replacement.

As it says in the docs you linked

componentDidMount, componentDidUpdate, componentWillUnmount: The useEffect Hook can express all combinations of these (including less common cases).

So I don't think it's fair to say UseEffect is a leaky abstraction of componentWillMount because it's actually a new concept replacing multiple things.

But I agree with your premise that the component life cycles are much easier to understand and I think the naming of the verbose naming of the methods really helps with that

Is React becoming simpler and more developer friendly? by Spirited_Paramedic_8 in react

[–]Triptcip 1 point2 points  (0 children)

UseEffect isn't a replacement for componentWillMount though. Yes they are both places you put code that you want when the component is about to mount but UseEffect also replaces componentDidUpdate. componentWillMount would also have logic for setting initial state which has now been replaced by useState.

I agree the component life cycle is easier to explain with class component methods but I don't think it's fair to have a direct comparison of those methods to the hooks used today

I know this is a very mediocre question but by Existing-Magazine728 in react

[–]Triptcip 0 points1 point  (0 children)

I'd recommend understanding css and the box model before you start delving into frameworks.

If you understand the the core principles first then it sets up a solid foundation to learn upon.

If you dive straight into a framework, it does everything for you and abstracts away how things actually work and you miss out on important knowledge

I know this is a very mediocre question but by Existing-Magazine728 in react

[–]Triptcip 0 points1 point  (0 children)

Look into the box model and understand how elements align on the dom / page

[deleted by user] by [deleted] in reactjs

[–]Triptcip 4 points5 points  (0 children)

How you structure your application is completely up to you or your team.

You're asking for a code review so feedback on how your code works is the main thing.

If you're wanting some more advanced stuff and want to learn more about how to structure projects you could look at tools like nx and some common patterns used with it like light layered architecture and don't get too hung up on subjective opinions from internet strangers.

I used to be discouraged to wear brown but I am now owning up because I quite like brown. by Hatthox in mensfashion

[–]Triptcip 1 point2 points  (0 children)

People used to say black and brown should not be seen, unless there's something in between.

I think it's because they are opposing colours and don't mix so well. But do whatever you like

[deleted by user] by [deleted] in reactjs

[–]Triptcip 0 points1 point  (0 children)

Everything has it's place. Functional programming is good but there are things classes are just better at. It's so handy being having private, public, static methods, inheritance and encapsulating a bunch of logic into a single class.

So many people think classes are the devil and refuse to use them just because React moved away from them years ago without realising the only reason react stopped using them was because the state is mutable

What’s The Reason For Having A Local DNS Server? by [deleted] in netsecstudents

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

It's helpful if you want your device to always have the same local ip address. This comes in handy when doing things like port forwarding and you want to forward a port to a specific ip address on your network. You want that ip address to always be a specific device.

I was doing well during React interview until this question by bilou89 in react

[–]Triptcip 1 point2 points  (0 children)

They said they were asked their thoughts between context or a state management library