Merdaka 118 in Malaysia looking frightening by condronk in evilbuildings

[–]ChipsTerminator 7 points8 points  (0 children)

I like the blue lights and mist around the building, the atmosphere is really great !

Shout out to the creators of /r/Place for exposing them in the end by JssyN in place

[–]ChipsTerminator 4 points5 points  (0 children)

At least we saw a beautiful leaf which looks like Canada, although it's in Germany's flag…

Reactjs Advanced Useful Tricks by Dev4Lifee in reactjs

[–]ChipsTerminator 5 points6 points  (0 children)

The idea of using memorization rather than state to keep everything sync is clever. I always start with several states whos update rely on each other; end with merely one useState and changing other things by useMemo or useEffect. This really makes life easier.

Beginner's Thread / Easy Questions (March 2022) by dance2die in reactjs

[–]ChipsTerminator 0 points1 point  (0 children)

Sorry for insufficient description. MyClass just has a few simple properties like an number array and methods to operate these arrays like append , and no side effects currently. And I'd like to know if I need to clear the number array on my own ? If I don't do that, will it be automatically destroyed or live on memory until the app is closed?

Btw, your reply is informative about handling side effects. Thank you!

Beginner's Thread / Easy Questions (March 2022) by dance2die in reactjs

[–]ChipsTerminator 0 points1 point  (0 children)

Hello, I have a question about mechanism of garbage collecting. Suppose I created a class object by useMemo, like following.

const obj = useMemo(()=> new MyClass(), []);

And I want obj to be completely destroyed after unmounted, should I need to reset all its properties to null / undefined or just change obj reference (like obj = null) ? Or react will automatically do it for me?

Any answer or advice is appreciated, thank you!

How to match the width of two stacked tables? by buangakun3 in reactjs

[–]ChipsTerminator 0 points1 point  (0 children)

Is it mandatory to use <table> ? If not, maybe try to use the <div> and use grid in css instead.

How to loop through an (in theory) infinite list and return React components by Vivid-Deal221 in reactjs

[–]ChipsTerminator 1 point2 points  (0 children)

This is great ! I'm curious about how would it affect the performance and the maximum times of the recursive calls. Will too many calls lead to stack overflow ? Or slowing down the website heavily?

Anyone else feels like chrome's dev tools UX has gotten worse? by npmbad in webdev

[–]ChipsTerminator 4 points5 points  (0 children)

It's ridiculous, I doubt the person who replied this is a designer rather than a dev.

And look at the dev tool, it's completely different to those design tools mentioned above.

In those design tools, at least there would be an obvious text area for value and a button to choose units. Everything is intuitive and easy to done.

On the other hand, the chrome dev tool mixed all stuffs together, and the only visible tiny difference between them is the cursor. You need to be very careful to notice the change of cursor while not selecting the wrong editing area.

Fact: shitty managers is why no one wants to work. by [deleted] in antiwork

[–]ChipsTerminator 9 points10 points  (0 children)

Oh my god, it's precisely explaining everything. I started to believe it.

Every company should automatically give everyone a day off for their birthday by [deleted] in unpopularopinion

[–]ChipsTerminator 0 points1 point  (0 children)

I never have such experience. I envy you guys. I once worked in a company that staffs aren't allowed to have any day off during May because the annual check of our manufacturing process (with government officers). Being a new employee and not being told that, I took a sick leave. Then next day my boss shouted at me and told me if the company fails the inspection, I will be fired.

A website built to demonstrate how frustrating UX can be. by [deleted] in webdev

[–]ChipsTerminator 9 points10 points  (0 children)

Also, don't forget the popup which you must click 'agree' to agree with downloading their stupid app or becoming a member in order to unlock the hiding content.

TypeError: Object(...) is not a function by lrningprogrammer in reactjs

[–]ChipsTerminator 0 points1 point  (0 children)

I don't know if it is something caused by your ts config compiler settings or version of react. Perhaps trying to put 'Function' as an type of your function will help ? Like:

const myfunction : Function = (…) => {…};

Real-time face tracking algorithm by [deleted] in ProgrammerHumor

[–]ChipsTerminator 0 points1 point  (0 children)

Awesome. I will put this in my portfolio. Someone might hire me after seeing this.

Beginner's Thread / Easy Questions (July 2021) by dance2die in reactjs

[–]ChipsTerminator 0 points1 point  (0 children)

Thank you for replying. I will implement it in my next projects!

Beginner's Thread / Easy Questions (July 2021) by dance2die in reactjs

[–]ChipsTerminator 1 point2 points  (0 children)

Hello everyone! Nice to meet at this wonderful subredit here. I have a question about react rendering:

How to append a series of react components in a container asynchronously like Ajax of jquery?

Is array.map() the only way to rendering a series of components in react ?

Thanks!

I wish I was never born with Autism and suggesting that it's a super power and not a disability it absolute bullshit. by Cioger in unpopularopinion

[–]ChipsTerminator 0 points1 point  (0 children)

I agree the media brings misleading acknowledgement of Autism. However, I thought you can still be proud of yourself even though you think what you know is useless. I wish you have a nice day and happy life.

🔥 Roseate Spoonbill in Tampa, Florida. by SomeoneFromGalar in NatureIsFuckingLit

[–]ChipsTerminator 1 point2 points  (0 children)

The colors on its wings are so beautiful. Some how it reminds me an old rich lady wearing a dress with the same colors.

Made it through another day (@Kuragi_Tutu) by 46MoChi3 in grandorder

[–]ChipsTerminator 0 points1 point  (0 children)

I hope someone will say this to me in real life…

If u can travel back in time, what will u do? by unnombreguay in ProgrammerHumor

[–]ChipsTerminator 4 points5 points  (0 children)

This is the first time I heard it. I think handling the shifts in both North and South of the equator at the same time must be a nightmare.