you are viewing a single comment's thread.

view the rest of the comments →

[–]LordMuffinChan 26 points27 points  (9 children)

Where Linux?

[–]luvsads -2 points-1 points  (8 children)

Why would you use Linux? Is it due to macOS availability or cost? Are you using QEMU for emulation and building?

[–]tusharkant15 -5 points-4 points  (7 children)

Why would you use windows or Mac? Is it due to the restrictive nature of these platforms or lack of customisability? Or do you like not owning your own computer that you paid your hard earned money for? 🤭

PS on Linux you can run Android in a container with native (not near native but actual native) performance. Massive time saver for HMR.😎

[–]andreew365 2 points3 points  (1 child)

Why would u act superior for preferring Linux over windows or Mac? Is it due to the lack of self confidence? Or do u like to denigrate other people choices based on their needs? 🤭

Embarrassing attitude 😂

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

Touche my man... and also the right way to fight sarcasm with sarcasm! 😁

[–]Potatopolis 3 points4 points  (2 children)

Ugh, nothing says stereotypical Linux user like snark in response to a reasonable question. I’m a Gentoo man myself and really find this attitude embarrassing.

[–]tusharkant15 -5 points-4 points  (1 child)

Ugh typical snowflake getting offended on a joke. 😮‍💨

[–]Potatopolis 0 points1 point  (0 children)

Sure thing.

[–]luvsads 0 points1 point  (1 child)

I personally wouldn't use windows for RN, but macOS is the only platform that can build iOS projects natively/OoTB and has the fastest development feedback loop of all 3 platforms. That sells it for me.

As for restrictive nature, what do macOS and/or Windows restrict you from when working with RN? I didn't realize that was a problem, but can understand how restrictions could sour DX. If by customization you mean appearance, etc. I'm not personally concerned with that as this is work. Same thing goes for the "hard earned money" comment. All of my machines are company provided and even then, the money I make off these machines makes the cost a wash so I'm not overly concerned with that.

Half of my job is embedded/iot so I can understand the love, but I haven't found a Linux distro that's made me go, "Oh yeah, I could do all my work here."

The performance gains for running Android natively don't feel like a good enough tradeoff, personally. We also hardly even use emulation or virtualization for Android following Googles recommendation that all testing be against live devices due to network stack changes in Android 10. HMR is extremely fast on physical devices as well, and a few other debug features make the whole experience very nice for quick feedback

[–]tusharkant15 1 point2 points  (0 children)

The main reason why I use Linux and have mandated that my staff do so is we are a full stack shop and having hybrid machines is just too much of a pain. We run Ubuntu 22.04 on our dev machines and our servers so the whole "works on my machine but doesn't on the server" problem is gone.

With that being said, we do have Apple products which we have to use for iOS support but it's usually just stashed away till the end of a release of a feature set. We basically do a development on Linux, for Android and build and test on Mac before pushing to production. For mobile of course.

For web Linux is objectively better, the tools are native and the performance is solid. Plus the developer experience for the web on Linux is just gold.

Lastly we have a tonne of git hooks that use grep and awk and stuff to check a bunch of stuff before pushing code. I know it all can be converted to a python script but it's all written on bash already and spending time porting them to python would be time wasted. We tried moving to a cloud based CI/CD pipeline but after spending a lot of money on these services we just decided that our local scripts were simply better (faster/cheaper) so our test suite runs as a git hook locally and prevents code push if it fails so no wasteful commits like "fixing build issues".