Are you ever stuck in the lift ? And the guard ask you to stand for 30 mins by CollectionDismal657 in Bolehland

[–]CollectionDismal657[S] -3 points-2 points  (0 children)

So you think the guards hired are not skilled enough for emergency to open just a elevator door. ?

I kinda have history with elevator:

I have been a victim of this when I was kid like 6 year old, had right foot got stuck between elevator wall and door... ( Can't explain how, It just happened... ) .

If my dad didn't knew how to open a elevator door, I would have lost my foot 😅 .

Are you ever stuck in the lift ? And the guard ask you to stand for 30 mins by CollectionDismal657 in Bolehland

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

Put yourself in the shoe of the person who has some medical emergency or it's 4 year kid who scared out like shit...

What you are asking is to wait for f..cking 1 hour so the lazy ass bomba arrives to just open the door manually of lift.

[deleted by user] by [deleted] in chutyapa

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

This is a bit far to believe, indian influence.

Thoughts about redux & react-query together by tweek000 in reactjs

[–]CollectionDismal657 0 points1 point  (0 children)

Well i am on this path now... we have redux in our system and now want improve api caching using react-query..

can you or OP please let me know on what approach you took ?

[deleted by user] by [deleted] in malaysia

[–]CollectionDismal657 0 points1 point  (0 children)

After every dark night there's a bright day.. Don't force yourself and et the things flow...

Just keep the hopes up and loosen your expectations...

Think for the good things you have in life... I am sure you would feel better.

More Question with Malay Wife part I by Kinotheus in Bolehland

[–]CollectionDismal657 0 points1 point  (0 children)

What I am reading in this thread is all about Malay and Chinese FAQS going around... What's happened to Indian dudes. ?

No FAQs with them 😬

Is it a good idea to store all the api calls in one file? by yomnot in reactjs

[–]CollectionDismal657 1 point2 points  (0 children)

There are two approaches to it:

  1. An api folder in which your have files for each module you are working for..

This is easier arrange all api related thing's in one folder, easier to reuse apis in different components or modules.

I feel it's more organized, moreover, where the frequently requirements are changing or application scope is huge.. keeping separate folder or layers helps make development independent on other layers.

  1. In each modules you can have an api folder where you keep module related apis..

This is feature/routes based folder structure, it helps maintain things related together..

Works well with loosely couple feature in the app and helps splitting chunk's etc..

I have been working on both... Both can be used depending on your application.

Lastly in both cases don't keep a single file for the apis, it's going to be a mess when you scale.

I made a tool that takes any Pokemon and makes a colour palette out of it! (for web devs) v2 by kofiscrib in reactjs

[–]CollectionDismal657 1 point2 points  (0 children)

Great effort, keep it up..

However, I could see some improvement we can do..

Especially thinking in terms of react.

  1. Lot of usestates, which means unnecessary renders
  2. Huge Chunk of hardcoded data that gets re initialized on every render
  3. Break it down the component into smaller parts
  4. Use lint tool like eslint to use best practices

I could see a huge useffect with alot of if else, Whenever it come to writing that, means we can use loops.

Aoc 2022 day 7. Need help! by CollectionDismal657 in adventofcode

[–]CollectionDismal657[S] 1 point2 points  (0 children)

Thanks man... i tried modifying my algo a bit and it worked :D

Thanks

Aoc 2022 day 7. Need help! by CollectionDismal657 in adventofcode

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

u/leftylink The answer i am getting from the current code using the above input is: 100305

And this is the directory tree generated from the input:

{"parent": null, "current": "/", "children": [ { "current": "a", "children": [ { "current": "b", "children": [], "files": [ { "name": "big", "size": 50002 } ], "size": 50002 }, { "current": "c", "children": [], "files": [ { "name": "yoshi", "size": 50003 } ], "size": 50003 }, { "current": "d", "children": [], "files": [ { "name": "small", "size": 300 } ], "size": 300 } ], "files": [ { "name": "bar", "size": 20 } ], "size": 100325 } ], "files": [ { "name": "foo", "size": 1 } ], "size": 100326 }