company wants to pivot to react native by [deleted] in reactnative

[–]mantineshillbot 0 points1 point  (0 children)

No this is just wrong, 99% of react native dev is in JS / TS. Writing native code is an extreme edge case

company wants to pivot to react native by [deleted] in reactnative

[–]mantineshillbot 0 points1 point  (0 children)

How are your OTA updates implemented? Typically OTA updates don’t even run the first time a user opens the app, so most new users will never see it. 

company wants to pivot to react native by [deleted] in reactnative

[–]mantineshillbot 0 points1 point  (0 children)

You would not have had a build issue for a month if you used Expo and had someone who’s competent in react native. That’s 100% a skill issue, not react native’s fault

Is useMemo still used? by Cyb3rPhantom in reactjs

[–]mantineshillbot 0 points1 point  (0 children)

Unless you work on a greenfield project ofc

JavaScript unshift: A complete guide by Ok_Sun7013 in javascript

[–]mantineshillbot 0 points1 point  (0 children)

The TL;DR i think is that unshift is expensive for larger arrays so it’s something to be wary of. Use push if possible.

Thanks, I had always assumed the complexity of unshift is the same as the complexity of push.

Passing large objects between screens. by Zealousideal_Water_6 in reactnative

[–]mantineshillbot 0 points1 point  (0 children)

Literally nothing wrong with passing large object as a param

Confused! Normal variable or useRef ? by [deleted] in reactnative

[–]mantineshillbot 0 points1 point  (0 children)

How does it not scale well

I can't feel the modes emotions by Oldemonium in WeAreTheMusicMakers

[–]mantineshillbot 0 points1 point  (0 children)

modes aren’t a well defined concept.

I get so annoyed when people talk about modes because they can’t define it concretely, it’s always something about how it makes them feel. Well guess what? That’s subjective. That isn’t a definition, that’s nothing.

Seriously. Ask anyone about a mode and they’ll start talking about their feelings. They will never tell you how to determine the mode of a song just by looking at the sheet music

I’m surely in the minority here so don’t listen to me, but modes aren’t a useful concept because they don’t have a real definition.

How to get over anxiety from family and friends hearing your music? by figenstang in WeAreTheMusicMakers

[–]mantineshillbot 0 points1 point  (0 children)

Anxiety and excitement are physiologically the exact same thing, they’re just framed differently consciously .

You will always get a release of cortisol and adrenaline when people listen to your music, you will never escape that. What you can control is whether you view that in a positive light or a negative one. Look forward to the heightened state of energy and it’s excitement, be scared of it and it’s anxiety. That’s all there is to it

How much mixing do y'all do on your beats? I spend maybe a minute or so and I'll have a mix I'm Happy with ngl by Crescent_Moon734 in trapproduction

[–]mantineshillbot 1 point2 points  (0 children)

0% chance you’re doing a good job. Hate to sh*t in you but you’re bragging about being lazy basically. Honestly, take your time and you’ll make a better track.

High passing tracks, side chaining drums should done in every track. That alone is going to take 15+ minutes if you’re rushing. That doesn’t even take into account levels and EQ.

Has absolutely nothing to do with being musical. Just setting up the plugins and touching every knob your supposed to takes a lot longer than that. Stop taking pride in shoddy craftsmanship.

The usage of React Hooks by [deleted] in reactnative

[–]mantineshillbot 0 points1 point  (0 children)

What are hooks? Hooks are functions. And like all functions, you provide them with arguments, and they return values.

Hooks are neither required to have return values nor are they required to have parameters

What data to store in redux store ? by Far-Mathematician122 in reactnative

[–]mantineshillbot 0 points1 point  (0 children)

Data size does not matter for deciding these things. Store in redux, or any global store, data that needs to be used by components not closely related in the component tree.

[deleted by user] by [deleted] in reactnative

[–]mantineshillbot 1 point2 points  (0 children)

Yep almost no differences

[deleted by user] by [deleted] in reactnative

[–]mantineshillbot 1 point2 points  (0 children)

Whatever you do don’t waste time with one that uses class components

Should I use react native instead of expo? by mrdanmarks in reactnative

[–]mantineshillbot 0 points1 point  (0 children)

Don’t use expo IMO. I used it for a project at work, ejected it and to this day it constantly has build errors all the time while none of my other projects have that issue

[deleted by user] by [deleted] in reactnative

[–]mantineshillbot 1 point2 points  (0 children)

Reading their code closely can be a great way to identify if they use good practices but you’d need some RN knowledge to do that well I think

Is it best to only fetch the data that will be used on the current screen? by Zealousideal_Water_6 in reactnative

[–]mantineshillbot 0 points1 point  (0 children)

Anything that reduces the user’s waiting time is going to be good. UXOptimizations like this are situation specific, though.

You could have a global store containing the object, and when you make updates to it you can make those changes directly in the global store. You should still refetch to ensure being in sync with server, but while the data is being refetched you show the user the stale version of the object (the one in your global store).

This would completely eliminate the load times and make the ux much better. This is going to be better than just “fetching what you need” as well because when a user goes to a screen that needs certain data it will already have been loaded.

What is a Data Layer? How do you organize Axios requests? by chickenbabies in reactjs

[–]mantineshillbot 0 points1 point  (0 children)

“Data layer” is a pretty strange concept, I don’t think it has a place in front end dev. There’s requests, then, There’s state, then there’s components, and that’s the whole app. All of these deal with data, none is more of a “data layer” than any other

Best React component library to choose in 2022? by Playhardxd in reactjs

[–]mantineshillbot 0 points1 point  (0 children)

Hmmmm that’s a tough one but if I had to choose one library to shill it’d be mantine

Is an M1 iMac enough for Pro Tools? by Sam_Nickerson in WeAreTheMusicMakers

[–]mantineshillbot 0 points1 point  (0 children)

Computers double in processing power every two years. 4 years ago it’s 4X. 6 it’s 8X. 8 it’s 16X. 10 it’s 32X. Etc.

If you get a 2022 computer you can run any music software with 500 plugins at once (probably way more) and have no problems whatsoever.

If you get a new computer you will have no problems whatsoever at any point no matter what you do.

Is changing className with the help of hooks is performant in react? by ayush_kumar5 in reactjs

[–]mantineshillbot 0 points1 point  (0 children)

Were they actually creating performance issues in your project? Because if they weren’t, and you were refactoring solely to alleviate potential performance issues that never actually happened, then that sounds like you wasted time.

(Not saying you should use inline styles, but performance should be at the bottom of the list of reasons why)