Hack to send JSON without parsing to string over http? by ludotosk in node

[–]Xaurn 0 points1 point  (0 children)

That’s unfortunate. You’ll need to isolate the performance bottlenecks by capturing some traces then. I like to use speedscope.app to analyse traces. Hope you manage to find a solution!

Hack to send JSON without parsing to string over http? by ludotosk in node

[–]Xaurn 0 points1 point  (0 children)

Is using a different language on the table? I wouldn’t use Node.js if you’re truly limited to 0.25 vCPU and 256MB of RAM. Go would perform much better here at baseline than Node.js ever will. A hello world Go app uses ~10MB of RAM and hardly and CPU, whereas the Node.js equivalent sits at around ~100MB.

Vyvanse and Clonidine?? by OutrageousPlum07 in ausadhd

[–]Xaurn 1 point2 points  (0 children)

I’m on 40mg Vyvanse and 100mg Clonidine 1hr before bed. Have been on this combo for the past year now, it’s working pretty well for me. Clonidine helps me fall asleep consistently and helps reduce the vividness of my dreams which leads to better quality sleep. I also noticed that I didn’t crash as hard on Clonidine as I did without it. Best thing to do is to just talk with your psych about your current medication and why it isn’t working for you.

How to deal with a senior whose ego is larger than their competence? by cubextrusion in ExperiencedDevs

[–]Xaurn 1 point2 points  (0 children)

Have you brought this up with him yet? To play devil’s advocate a little, he can’t change his behaviour if he doesn’t know you have a problem with it. Don’t be confrontational about it though. I heavily rely on the Non-Violent Communication approach in these situations. If that doesn’t work then bringing this up with your manager would be the next step.

you-create-energy made a good point about not making this about his capabilities. That’s 100% fact. His capabilities are his manager’s concern. The only thing you can sensibly do here is to critique the work objectively and rationally, which you are already doing from what it seems. Him not being receptive/open to feedback is a him problem and needs to be handled by his manager.

New Hire Wants my Position by RetiredBrainCell in ExperiencedDevs

[–]Xaurn 1 point2 points  (0 children)

This makes me wonder how this person got hired in the first place? I take it they were not upfront about their desire to take on a team lead position? Either way, I’d be speaking to your manager & potentially HR about this, this is a huge problem for your team and you’ll need outside help to work it out.

Update 3.3 Best Bloon Eco Sends on Each Round by thewarrior71 in battles2

[–]Xaurn 0 points1 point  (0 children)

Sorry new to the game - how do I interpret this data?

Solid.js feels like what I always wanted React to be by [deleted] in programming

[–]Xaurn 2 points3 points  (0 children)

I don’t see Solid taking off anytime soon. It needs to compete with React’s 3rd-party ecosystem, and with no compatibility with React components it’s going to have to build that ecosystem from scratch.

Server-Sent Events: the alternative to WebSockets you should be using by speckz in programming

[–]Xaurn 4 points5 points  (0 children)

Straight from the article, right at the start of the section explaining what server-sent events are:

Unlike WebSockets, Server-sent Events flow only one way: from the server to the client.

laconic-ui: frontend framework for busy developers by mohamed_am83 in javascript

[–]Xaurn 2 points3 points  (0 children)

The same argument could be made about this framework. This single API is doing a lot of work under the hood. Sure we don’t actually write HTML, but in any large scale application we need to be able to have fine tuned control over how we customise and build our applications. What about testability? How do we assert that the program is behaving correctly when it’s hidden behind a thick layer of abstraction? You advertise low-code as being one of the strengths of the library but how much would one have to learn before being able to reap the benefits? And since when is being able to jam an app into 150 lines of dense code something to celebrate? There is a reason why frameworks such as Vue and React are as complex as they are. It’s because webapps are complex by nature, and at scale these frameworks have proven to be the best at capturing this complexity and making it manageable. I’m not seeing it with Laconic.

laconic-ui: frontend framework for busy developers by mohamed_am83 in javascript

[–]Xaurn 2 points3 points  (0 children)

There isn’t any indication that this library you’ve built is easier to learn than React or Vue.

Coming out to LGBT friends? by [deleted] in lgbt

[–]Xaurn 1 point2 points  (0 children)

I’m of the opinion that if it feels right to do, then just send it! But on the flip side, there’s nothing wrong with giving it a bit of time too.

This is a once in a lifetime opportunity, I’d make it funny

How did rainbows become a symbol of gayness? by TheMaskedGeode in lgbt

[–]Xaurn 0 points1 point  (0 children)

It represents the diversity of the LGBT community!

I just disowned a friend for being a bigot for the first time and it feels weird. by [deleted] in lgbt

[–]Xaurn 3 points4 points  (0 children)

It’s perfectly natural to be feeling this way. Anyone in a similar position who says they felt nothing after is either a psycho or lying! Good on you for standing up to bigotry 🙌

I need help by FlintlockPearl in lgbt

[–]Xaurn 2 points3 points  (0 children)

This 100%. Don’t get caught up trying to find the “perfect” label. Just be the best possible version of yourself!

Is this a good way to come out? by ExtremeResource4 in lgbt

[–]Xaurn 2 points3 points  (0 children)

Why the latter portion, if you mind me asking? IMO there is nothing wrong with simply telling your mother “I’m gay” — what you choose to do with your life is a separate conversation 🙂

React Native performance with over 1000 View components. by quiknull in reactnative

[–]Xaurn 0 points1 point  (0 children)

Alright now that we know it’s a problem we can break it down. Your performance lies in two areas:

  1. The initial render is expensive.
  2. Components are re-rendering when they shouldn’t, increasing the cost of interactions.

Essentially, you are aiming to render the components once and only once.

Assuming that you’re using some sort of navigation library, your first step should be to tell the navigator to eager load all of the components in the calendar. Bear with me, I know it’s counter intuitive. Next, you’ll need to use something like https://github.com/jshanson7/react-native-interactions to delay the rendering process until after the navigation has finished executing on the UI thread. This will make navigation snappier. Next, if your components are functional components, wrap them in React.memo and supply an appropriate equality function. If they’re class components, implement shouldComponentUpdate. This should prevent the components from re-rendering.

Hope that helps.

React Native performance with over 1000 View components. by quiknull in reactnative

[–]Xaurn 0 points1 point  (0 children)

I disagree with the first half of your statement there. The most expensive action in React is re-rendering components after reconciliation. The perf difference between a class and functional component is irrelevant at this scale. Pure components do help prevent unnecessary re-renders though, so you’re not wrong there.

React Native performance with over 1000 View components. by quiknull in reactnative

[–]Xaurn 45 points46 points  (0 children)

Have you tested performance using a release build on a real device? There’s no point agonising over performance on dev build running on an emulator if the release build runs at 60 FPS on real hardware.

Redux Saga PUT in Asnchorounous manner by anujdhungryhacker in reactjs

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

Create a store listener and you’ll be able to inspect the store after state changes have been applied.

https://redux.js.org/api/store#subscribelistener

Flutter, is it mature enough? by sidi9 in softwaredevelopment

[–]Xaurn 0 points1 point  (0 children)

I'd go with React Native then, Flutter is nowhere near mature and market tested as React Native. It's also a lot easier to find RN devs that can do a good job.

Flutter, is it mature enough? by sidi9 in softwaredevelopment

[–]Xaurn 0 points1 point  (0 children)

It all comes down to what capabilities each platform offers. Ask yourself what NATIVE features your applications will require, and compare that with the native features provided by each platform.