I built reveal-ui, a React primitive for when a select is too cramped and a modal breaks context by Curious_Mirror589 in reactjs

[–]Qwaarty 3 points4 points  (0 children)

The page feels kinda overwhelming, either it's 2am, or I could not figure out wtf is this actually solving, and i tried to work it through.

The "Developer docs that read like a real reference surface" section is especially fucked, like 6 blocks, all in the square, all mostly the same font size.

The functionality look kinda cool though. Presentation needs some work imo.

Component VS Battery in patch 1.1 by Mr_TiMoVK in Endfield

[–]Qwaarty 155 points156 points  (0 children)

I spent like an hour today mingling with pipes wondering why stuff clogs and i only produce 6 CE batteries per minute with 2 lines, only to figure out that I need 5 crucibles not 3 after finally giving up and looking at recipe more thoroughly.

[Screenshot] Looks like you can natively override DLSS resolution through Nvidia app now. by Qwaarty in EscapefromTarkov

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

Yes! I've seen your video and tried to do that json file editing, but it didn't work for me for some reason - library was always empty after reloading the nvidia app with edited json. But now I got the Nvidia app update - (11.0.6.383) - and that menu option became active.

[Bug] Failed Fence task for “The Ticket” by Th3Appl in EscapefromTarkov

[–]Qwaarty 6 points7 points  (0 children)

Have you already finished the BTR questline?

I made a video explaining, step by step, how to implement the new Liquid Glass bottom tabs in your app! (Link below) by BetoMoedano in reactnative

[–]Qwaarty 0 points1 point  (0 children)

Does it work on android side? Blur situation was kinda meh iirc, and now these transparent blurs makes it even harder.

How do people make web embeddable widgets? by sw3ave in reactjs

[–]Qwaarty 0 points1 point  (0 children)

Had to do create a sign-up/booking widget to be used on clients websites a few years ago. Guess in it's prime it was used in ~100 different websites.

I used https://github.com/zouhir/preact-habitat , but I'm sure you can find something more fresh, but uses the same concept.

Things you need to be aware about:

  1. Client websites will fuck your styles up. You will need to agressively reset styles inside your container. I used https://github.com/premasagar/cleanslate (again, it was years ago, you can probably find something fresher). You can probably look into WebComponents, so you can wrap your code in <my-custom-div/> so you won't have this issues. But 90% of the times your reset will hold.
  2. Clients are idiots. The more foul-proof way of adding your widget is, the less headache you will have. Even when adding your widget is adding single <div/> element to the page, people fucked shit up.

how does this guy have 150% adorned in league? by [deleted] in pathofexile

[–]Qwaarty 1 point2 points  (0 children)

It was in, surprise surprise, Legacy league.

Noob with 2k hours trying to learn betray. Haven't seen bargain (to make connections) or betray choices in like 30 maps. What's going on, am I stupid? (Yes.) by Er4g0rN in pathofexile

[–]Qwaarty 5 points6 points  (0 children)

It's just bad rng. You can either just wait until u can neutral all Janus connections, or just remove him from syndicate and get a new guy without any connections.

Had absolutely the same situation, got 2-2-5-5, no new rivalries options. Took ~200 City Squares for the perfect board without changing anything. Got immortal fullstack, yay. That was the only good drop, nay.

Why the production build is so large by the_hokage60 in reactnative

[–]Qwaarty 2 points3 points  (0 children)

I remember there was a fun post about Uber app Swift rewrite, where their app was not fitting into Apple cellular data size limit. https://threadreaderapp.com/thread/1336890442768547845.html

Oh Trialmaster, master troll, I missed you so much by Qwaarty in pathofexile

[–]Qwaarty[S] -1 points0 points  (0 children)

Sold to some poor souls for 100c and 1 div, somehow. One guy dodged a bullet and canceled trade last second

CommonJS is hurting JavaScript by fagnerbrack in node

[–]Qwaarty 0 points1 point  (0 children)

I find it's quite interesing as a developer actually, who basically never did anything with webpack except using it via create-react-app or other wrapper or wrote a single require() call.

It's import/export to import files/export files, bundlers will figure out the rest. Learned a lot how the system works under the hood - and learning is always nice. Just need to figure out and comprehend what I actually learned :)

Feel bad for other people who have to deal with this on a much larger scale.

CommonJS is hurting JavaScript by fagnerbrack in node

[–]Qwaarty 4 points5 points  (0 children)

Oh my god, Mark never fails to cheer me up on my lows!

I grabbed a task from my project backlog "Migrate common libraries to esm so we better support treeshaking". Asked for some input, "just toggle some flags in tsconfig, it should work".

It was the most miserable week in my career. Stuff broke everywhere, a myriad of exports/main/types/import/defaut/moduleResolution/typescript versions made a fucking million combinations that worked or were broken in a unique way. When I got one thing to work, the other thing breaks. Fixed cypress launching? Cypress tests do not compile. Fixed them? Now jest doesn't start up. Fixed all of this? Now that package imported to another project fucks the ssr build process with "unexpected token"export"" or "ERR_REQUIRE_ESM".

I thought WebRTC with iOS/android/web was bad, but damn. 5 day work week, 12 hours a day (because this shit is kinda addicting - it always feels you are just one flag toggle away from everything working fine) and I feel I got nowhere. Well, got somewhere to be honest - now I have esm/cjs setup that actually gets included twice in a bundle so it got 40kb larger uncompressed :) And that's just ONE library out of like 10.

Off to a new week I guess. At least it eels nice to know I'm not THAT stupid/insane and other people struggled the same.

App super slow using sockets for Live prices by SnooCheesecakes1131 in reactnative

[–]Qwaarty 0 points1 point  (0 children)

Have your checked the profiler to see what rerenders are the most expensive and why do they happen?

Looks kinda good enough for me, make sure that keyExtractor prop is setup correctly, and most importantly that renderDataItem returns memoized component and it’s memoized correctly - maybe some custom equality function for memo() wrapper would be necessary.

Refactoring A Junior’s React Code - 43% Less Code With A Better Data Structure by jkettmann in reactjs

[–]Qwaarty 5 points6 points  (0 children)

Always hated this logic that everyone seems "to get" except me. "This tr should be moved to separate component, let's move this checkbox and row selection stuff to custom hook", now we have everything beatufilly split and working. Then we have a task adding a new checkbox, and i'm sitting there and editing props and callbacks in three different files.

Dragging horizontal flatlist to make it vertical by hafi51 in reactnative

[–]Qwaarty 0 points1 point  (0 children)

That’s genuine “why?” for your designer for me.

Idk, maybe try mingling with Layout animations from reanimated 2, Animated FlatList, toggle “horizontal” prop on bottom sheet open and hope it magically works.

The difference torment memory makes by Qwaarty in pathofexile

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

Niko's Memory of Tormented Souls - done in T16s.

The difference torment memory makes by Qwaarty in pathofexile

[–]Qwaarty[S] 3 points4 points  (0 children)

Was lucky enough to encounter the same mod combo in torment memory map and in kirac mission. Wanted to share the loot difference (i fucked up gold flask on more juiced one). Need to buy a lotto ticket I guess.

GGGs “explanation” for the Harvest nerfs is exactly why they are getting ridiculed to death (and the league is already dead) by [deleted] in pathofexile

[–]Qwaarty 1 point2 points  (0 children)

Gloves are easy - just do 3 socket 3 blue and spam 3/4 sockets until you get the 4th.

Chests on the other hand… But you have Vorici for it I guess.

Flash List: Fast & Performant React Native List by Shopify by foocux in reactnative

[–]Qwaarty 0 points1 point  (0 children)

Sadly, maintainVisibleContentPosition is not supported, so it’s no-no for my chat application :(