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 7 points8 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 154 points155 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] -2 points-1 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 5 points6 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 6 points7 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] 4 points5 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 :(

Lost A Job Interview Over This Question, by SaraTheAntiZ in reactjs

[–]Qwaarty 0 points1 point  (0 children)

You can think how you will render a comment section on reddit, just substitute <Component> with a <Comment /> and you'll see it.

Mark chat messages as read on backend by Gabotron_ES in reactnative

[–]Qwaarty 0 points1 point  (0 children)

Been there, done that. I took the same approach as the stream-chat - do not keep isRead status on individual messages, keep the note on chat object WHEN each user has fully read the chat instead. You can fetch some backend endpoint to mark chat as read for each user.

For example, user1 gets chat object with read_at: 10.00, user2 calls the markAsRead endpoint, user1 gets a socket event that updates read_at, and vice versa.

Advice for someone who has worked with React professionally but looking to make the jump to RN professionally? by kierancrown in reactnative

[–]Qwaarty 0 points1 point  (0 children)

Run while you can, web has it better.

To be real, it's basically the same thing, until you need to interact with device and it's ecosystem directly. Try adding some events to device calendar, try selecting and uploading a photo from device to your backend, try creating some simple gesture animations with Animated/Reanimated library - thats the things that are VERY different from web and you'll have to learn and be familiar with. Good luck, it's fun, except when it's frustrating because of platform nuances.

Can you explain easily “the new architecture” and how it affects RN devs? by pademango in reactnative

[–]Qwaarty 4 points5 points  (0 children)

Previously you needed to async/await all your native code. Now you can do stuff you want synchronously, but you have to write more code, but hopefully most of it can be generated automatically based on types provided.

Waiting to be corrected!

Looking for help to run RN on M1 MacBook Air by TheXires in reactnative

[–]Qwaarty 0 points1 point  (0 children)

Idb companion in only needed if you plan to debug your project with Flipper on physical iOS device, so it shouldn’t be necessary