r/programming • • May 06 '19

Microsoft launches React Native for Windows

https://techcrunch.com/2019/05/06/microsoft-launches-react-native-for-windows/
187 Upvotes

114 comments sorted by

60

u/rodrigocfd May 06 '19

All these cool new techs coming in and out, and I'm still writing the ol' good native Win32, with just Petzold's 5th ed. and one compiler by my side.

I guess I'm old. 👴

10

u/sj2011 May 06 '19

I just looked that book up, and that cover is such a nostalgia trip for me...I love it. Reminds me of the old Microsoft Office boxes.

10

u/HadesHimself May 06 '19

Today I had to write in VBScript for my client, because nothing else could be installed because of security policies 😂

We all do what we have to do to survive

8

u/spacejack2114 May 07 '19

What do you work on? Windows games?

5

u/rodrigocfd May 07 '19

I was specifically rambling about a personal project that's consuming many hours of mine lately, WinLamb.

3

u/0xf3e May 07 '19

Interesting project, thanks a lot!

2

u/helloworder May 07 '19

I guess I'm old.

How old are you?

68

u/[deleted] May 06 '19

Bye bye Angular. This is the first time I chose the wrong horse. Hope it doesn't kill my career.

19

u/IDCh May 06 '19

Angular survived react-vue-hype hysteria all that time. It will survive and thrive further. I don’t worry about that.

2

u/Yalopov May 08 '19

This, also they're trying to really catch up with their new Ivy rendering engine

4

u/altrunox May 07 '19

well as someone also into angular, isn't webassembly supposed to kill all those frameworks in some years anyway?

-12

u/KHRZ May 06 '19

Eh, got new job as consultant, worked with mostly Angular last 5 months. Seem to have learned it well, can build all aspects of frontend, leagues beyond I could with shitty plain javascript/ajax. And I heard it's the harder of the two. Already used some of the common techniques in React like "state store", and my APIs client code is autogenerated anyway. Next project I could choose React, bet I will handle it even easiere then. Zero regrets.

0

u/[deleted] May 06 '19

[deleted]

15

u/reckoner23 May 06 '19

Do companies really focus on frameworks for hiring? Like knowing Angular would be a strike against you if its a react shop?

39

u/zaphodharkonnen May 06 '19

No place I've worked would hold it against you for knowing a framework that they don't use.

Now you might not get a tick against you as that'll be another thing to teach. But that's different from holding it against you.

8

u/CTAHEB May 07 '19

The reality is that your starting pay gets affected because you are not a complete match for the skill set they are looking for. You would be offered less (or your level would be considered lower for this position!) compared to someone who knows the skill already because you have yet to learn it and that is a cost to the company.

4

u/rorykoehler May 07 '19

I wouldn't. If you knew Angular and couldn't get up to speed quickly in React or Vue, that would be a deal breaker because it means you don't know JS.

1

u/jl2352 May 07 '19

Some recruitment is done as paint by numbers. So yes, if they have React listed and you don't know React, they won't hire you. Personally I wouldn't care about those.

If you don't know any of the common frameworks then that would be a strike against you.

Angular is also perceived quite negatively. Some places will frown if you only know Angular. Not enough to prevent you getting the job. But still frown. I've seen that happen.

5

u/reckoner23 May 07 '19

Wow. Really glad I’m not in the js world. That kind of elitism is disconcerting.

1

u/molybedenum May 07 '19

I'm not sure if a place would frown if you only know angular, but there's definitely animosity toward angular as a platform.

Given the nature of angular, I'd probably look at it as a plus that someone would be willing to work with it. Most developers aren't the primary decision-makers on the platforms their current employers use.

0

u/[deleted] May 06 '19

[deleted]

85

u/Na__th__an May 06 '19

I remember reading that 2 years ago.

56

u/rishav_sharan May 06 '19

Dont count on that. React has been the front end leader for over 5 years now.

0

u/[deleted] May 07 '19

[deleted]

25

u/Tight_Tumbleweed May 07 '19

This is what they were saying in 2013. It turns out all the big players are still here.

7

u/desmone1 May 07 '19

Hopefully that new fad framework can deliver truly cross platform support. The holy graIL

13

u/stu2b50 May 07 '19

React as a web framework is cross platform, unless you count old versions of IE as a platform.

19

u/PotatosFish May 07 '19

What about my TempleOS desktop

8

u/gwillicoder May 07 '19

It’s already 100% perfect and doesn’t need unholy software tainting it.

3

u/hsjoberg May 07 '19

React has existed since 2013...

3

u/mobiledevguy5554 May 07 '19

cough svelte cough

0

u/[deleted] May 07 '19

[deleted]

1

u/LaSalsiccione May 07 '19

Depends on where you are.

0

u/[deleted] May 07 '19

[deleted]

4

u/legato_gelato May 07 '19

Frameworks that lose the war always turns into that shitty legacy code that no one wants to touch (looking at you webforms/coffeescript ;))

2

u/SaxAppeal May 07 '19

coffeescript! My former employer used coffeescript. Never understood why. Luckily i wasn't doing much front end work there

11

u/unaligned_access May 07 '19

What's the size of a hello world app?

6

u/falconfetus8 May 07 '19

So is this the electron killer?

12

u/[deleted] May 07 '19

Not until there's something like this for MacOS and the more popular Linux distros (which I guess is Windows now lmao).

-5

u/reckoner23 May 07 '19

Web Assembly hasn't launched yet. Give it another few years.

4

u/fuckin_ziggurats May 07 '19

Not sure that's relevant to his question. Web Assembly would do very little to reduce the size of Electron desktop apps. React Native compiles to actual native.

3

u/mobiledevguy5554 May 07 '19

Who says you have to run WebAssembly in a browser? I fully expect WebAssembly runtimes in every OS at some point that work outside the browser.

4

u/reckoner23 May 07 '19

Well when a web browser becomes basically a virtual machine similar to the JRE, then it won't really matter if React Native compiles to 'native'.

You might be right in that it won't reduce the disk size of the Electron desktop. But it would potentially reduce memory as the bytecode is more efficient then Javascript. I haven't look into it, but if the bytecode can eventually manage memory, then the language compiler can further reduce memory as the browser doesn't have to handle that task any more.

5

u/fuckin_ziggurats May 07 '19

You're correct that it will be more efficient and use less memory but Chromium will still consume a lot of memory by itself. So I agree that Web Assembly will make Electron better, but I think that it won't be better than React Native - if we even consider them as competitors instead of just options.

5

u/hanszimmermanx May 07 '19

Launches? Correct me if I am wrong but RN for windows seems to be here since a few years and there appears to be no 1.0 release https://github.com/microsoft/react-native-windows https://github.com/microsoft/react-native-windows/releases

There seems to be no "launch" to speak of. It's still beta tier software. And that's a shame I wouldn't mind to write some internal software in it.

4

u/rk06 May 07 '19

Releasing a 1.0 for Rn for Windows would be stupid, as React Native, itself has not released a 1.0 version

11

u/tetroxid May 07 '19

React """"native""""

7

u/fuckin_ziggurats May 07 '19

But it is actually native though.

-3

u/tetroxid May 07 '19

No, it isn't. There is no way to compile JS to a native binary.

18

u/zachrip May 07 '19

You should do some more research into how it works, it sounds like you're misinterpreting the project. Nobody ever claimed that the code you write is native, of course it's not. The views however ARE native. Think of it like a marionette.

-1

u/tetroxid May 07 '19

It uses native UI elements, yes. But the program logic is interpreted. It's like claiming a website is native because the elements used to display things are implemented using a statically-typed compiled language. It's not. As long as React uses JS it's not native.

9

u/fuckin_ziggurats May 07 '19 edited May 07 '19

As u/zachrip said, you need to read a bit more about React Native. The developer uses JS. React Native calls into native APIs using FFI. The code being executed is not JS. It's not completely native but it's way closer than our current alternatives (Electron).

5

u/hiptobecubic May 07 '19

Isn't that almost literally what they said?

3

u/fuckin_ziggurats May 07 '19

Well I think he kind of chose to take a binary perspective of the situation to pad his argument. "It's not 100% native so it's not native." I disagree with that. There's a huge grey area that he completely skims over to declare "React """"native""""" and it adds nothing to the discussion. Just muddles the waters and confuses people who don't know much about React Native.

6

u/hiptobecubic May 07 '19

I disagree. React native makes it sound like it's somehow not running on a js vm.

It's like if I said I was using "python native" because some of my libraries are actually written in C.

3

u/coderstephen May 07 '19

Except Python is a language/runtime, while React is a UI framework, so that comparison is unsatisfactory.

→ More replies (0)

3

u/tetroxid May 07 '19

That's what I said. It's JS using native components.

JS using native components.

The JS part isn't native, and likely never will be.

3

u/fuckin_ziggurats May 07 '19

React is a UI library. It's used for building UI components aka Views. So React Native is React with native views. I think the name "React Native" is fitting so I don't get the point of the quotations. Yes it may not be fully native but that's not the biggest problem of cross-platform dev. The biggest problem is building cross-platform GUIs that don't look like crap. I think it solves that.

4

u/tetroxid May 07 '19

building cross-platform GUIs that don't look like crap. I think it solves that

I would never claim otherwise. To me, the name "native" is simply misleading because the programming language used isn't

2

u/wagyu_doing May 07 '19

What is a native programming language?

→ More replies (0)

4

u/HarwellDekatron May 07 '19

You chose a very narrow definition of what 'native' is. By your own definition, most UI code is "not native".

-3

u/tetroxid May 07 '19

So?

5

u/HarwellDekatron May 07 '19

So, your criticism of the nomenclature seems based more by some dogmatic idea than on the actual implementation. If I decided to call anything that doesn't render to the screen by modifying memory directly in the video card "not native", then I could claim that no UI toolkit is "native".

In other words: there's a reason we agree on terminology, and in this case "native" is the right term as agreed by the industry. You can't just complain about it just because it doesn't conform to your idea of what it meant.

-4

u/tetroxid May 07 '19

Don't act stupid.

You know exactly what the difference between native code and interpreted code is, and what I am referring to here with regards to Javascript.

4

u/HarwellDekatron May 07 '19

Don't act stupid.

You know exactly what the difference is between using the native UI elements provided by an OS and rendering your own. That's what the "native" in "React Native" comes from, as other people have pointed out.

→ More replies (0)

2

u/MentalMachine May 07 '19

Sorry for the stupid questions, but is this something completely standalone from React Native? But React Native also works for Window's devices?

6

u/stu2b50 May 07 '19

Windows support for react native, isn't, well, native. Natively the project is focused on mobile UIs. There are extensions, but this is MSFT officially supporting React Native for windows.

1

u/technewsninja May 08 '19

Angular vs React: Every developer has to keep his pace up with the evolving technology trends

-21

u/bartturner May 06 '19

Think backing the wrong horse. The future suspect will be Flutter including desktop.

Flutter has a more efficient architecture.

18

u/[deleted] May 06 '19

Flutter reimplements all UI elements in its own engine, its unlikely that the majority of people would make that compromise. Imagine what it could be missing jumping from platform to platform or even consider accessibility. For instance, google maps was something missing not too long ago. Consider how difficult it was to create google maps in Flutter as opposed to React Native. In React Native you needed a native library to be able to see and interact with google maps, the Flutter team needed an entirely new library in Dart for Google Maps and iOS users have no option to use Apple Maps. Now imagine how many API’s will either be missing or can’t be implemented across the spectrum of Flutter target platforms.

2

u/[deleted] May 07 '19

Yes, thanks, that sums up very nicely why I think that flutter is a nice idea which sounds like a nightmare to maintain.

6

u/pknopf May 06 '19

Qt does this just fine.

7

u/[deleted] May 06 '19

Does what? Reimplement every UI element on every platform? Because that hasn’t been done with any framework.

5

u/pknopf May 06 '19

Flutter reimplements all UI elements in its own engine, its unlikely that the majority of people would make that compromise.

Qt does just fine doing exactly this. No issue.

2

u/[deleted] May 06 '19

I just gave the example of Apple maps, how could you even begin to reimplement that?

4

u/pknopf May 07 '19

8

u/[deleted] May 07 '19 edited May 07 '19

This is what React Native does, they didnt build it from scratch like in Flutter. They integrated with an existing library. You cant build a new engine in an app sandbox on a mobile device than integrate things like Map Views without writing them from scratch.

4

u/jcelerier May 07 '19

This is what React Native does,

no, the Qt version is a complete, from-scratch, C++ implementation - the source code is here. https://github.com/qt/qtlocation

Qt has to be a whole reimplementation, because it is the native framework for many systems, in particular in embedded (but also for e.g. KDE) so it cannot rely on some system API being here.

3

u/[deleted] May 07 '19 edited May 10 '19

~~Clearly theyre made using available c++ libraries like osm and mapbox. ~~ Guess they are made from scratch.

Either way, if you wanted Google Maps or Apple Maps on a mobile device, the amount of effort required to replicate a Map View in Dart or C++ would not be worth it. Also I’m pretty sure Apple Maps doesn’t have any sort of API that you can use to create your own MapView for.

I say replicate because people dont want Mapbox, they want the same map provider with the same exact features that are available everywhere else in their mobile app ecosystem.

I’m not saying it cant work but like, why rebuild ARKit and ARCore? They already exist.

5

u/spacejack2114 May 07 '19

If MS is serious about React Native, they can optimize the rendering backend for Windows or even optimize Windows for React. Even if you don't care about cross platform it might be a great way to make Windows apps.

0

u/[deleted] May 06 '19

[deleted]

46

u/salgat May 06 '19

For people not aware, Google corporate culture heavily rewards employees who release new products/features with large adoption rates as one of the few ways to get promoted. This strongly discourages anything requiring support/maintenance once it becomes mature. Which is why Google has such shitty support and seemingly abandons projects with large userbases.

7

u/PorkChop007 May 07 '19

That explains the sorry state of YouTube mobile app...

28

u/well___duh May 06 '19

Hell, they're thinking of replacing the most popular mobile OS on the planet with an entirely new OS (Fuschia). Google is king of uncertainty.

14

u/[deleted] May 06 '19

There are very good reasons for that. Also I would be very surprised if they don't make it support Android apps so it's not like they would be starting from scratch.

8

u/rorykoehler May 07 '19

Do you have a link to an article outlining the good reasons? Curious why they want to do this

7

u/[deleted] May 07 '19

No, but the main one I believe is Linux's driver ABI, in that it doesn't have one. You can't update Linux independently of its drivers. That's part of the reason for the update mess.

-35

u/QaMaster May 06 '19

I'm glad they are providing a way to over complicate simple programming. I honestly go sick when I saw this. I have tried react for web dev and that is already over complicated IMO. I guess to each their own though.

36

u/rnd005 May 06 '19

What's overcomplicated about React? It's as simple as it gets.A UI library with 10 or so life-cycle methods. Unless you think you need webpack, babel, redux, server side rendering, css-in-js and all tech you can think of and then call it React.

8

u/reckoner23 May 06 '19

I'm so confused.

7

u/bonega May 06 '19

It is all a conspiracy masterminded by evil reptilians

7

u/reckoner23 May 06 '19

That would be a little better because at least evil reptiles can design tech that is halfway usable. :P

4

u/wtfdaemon May 06 '19

You've gotta be really over-your-head if you think React development is over-complicated. The only tricky thing is the initial learning curve of tooling and the npm ecosystem.

0

u/[deleted] May 06 '19

[deleted]

2

u/tetroxid May 07 '19

JavaFX

1

u/[deleted] May 08 '19

Seriously, someone said it. Why is JavaFX not popular? It's so easy to work with that I just don't want to make apps in anything else.

0

u/tetroxid May 08 '19

I don't know either

-1

u/dreamfeed May 09 '19
  1. Embrace ✔️

  2. Extend

  3. Extinguish

-25

u/tonefart May 07 '19

This is microsoft's last ditch effort to make Windows relevant outside of browser space. Too little too late to be honest. Browser is where it's all at.

-41

u/daemonengineer May 06 '19

Microsoft f8ks .net developers once again? What a sad story.

17

u/recursive May 06 '19

f8ks

What is this? fate-ks? fucks?

25

u/sequentious May 06 '19

Infinity-fucks on a vertically-integrated stack.

23

u/NihilCredo May 06 '19 edited Jul 05 '23

doll quicksand sleep cable somber rock enjoy divide spotted rude -- mass edited with redact.dev

-40

u/_101010 May 06 '19

Pff, React. As much as React is popular it is also slow as the medieval donkey.

I'll stick to Elm, thank you!

27

u/stu2b50 May 06 '19

Elm doesn't have anything like React Native. It's purely a web framework, so this isn't really its niche.

-23

u/_101010 May 06 '19

Many would argue the niche is overrated.

15

u/stu2b50 May 06 '19

The niche of cross platform native gui bindings? Do you prefer electron apps (and phonegap on mobile)?

-16

u/fijt May 07 '19

WTF is this? A "MS" Do good day? Come on, we all know they suck. Okay, they suck without bugs, but still they suck. Big time.