News for hackers. Stuff that matters.
Re:Vue Native by codesternews on Wednesday June 13, 2018 @01:52AM (#17300584)
It's based on react-vue[1] and It is internally using react-native.

1. https://github.com/SmallComfort/react-vue

Why but Why.

Re:Vue Native by patates on Wednesday June 13, 2018 @02:53AM (#17300856)
> Introduce react-vue-loader, which compiles the Vue component into a React component. As you might think, your previously written Vue components can run inside the React component, and your React components can also run inside the Vue component

How did it come to this?

Re:Vue Native by yehosef on Wednesday June 13, 2018 @04:12AM (#17301239)
Because:

1) many people prefer Vue over React - you can google them and their reasons.

2) one of the great selling points in the React ecosystem is React-Native - you can write many parts of your code once and use both for web and native applications.

There are other solutions for this for Vue (Weex and NativeScript) but React Native has the mindshare. Perhaps there are other benefits - I don't work with apps so I don't have experience.

Re:Vue Native by sireat on Wednesday June 13, 2018 @04:23AM (#17301273)
Vue Native is a bit of a misnomer then.

The layers of abstraction keep adding up.

Tortoises all the way down.

Next thing someone will incorporate jslinux into this mess

Re:Vue Native by freddie02 on Wednesday June 13, 2018 @05:21AM (#17301514)
Re:Vue Native by neya on Wednesday June 13, 2018 @05:01AM (#17301428)
Because, it solves a problem. I'm sorry, but, outside of the "let's use react for everything" bubble, people believe in different ideologies and use different frameworks to accomplish similar tasks. One of them is using Vue for web applications, and now thanks to this new project, the same Vue developers can also make use of Vue to build their mobile apps.

What it uses under the hood isn't really a concern for me as a Vue developer as long as I'm able to develop mobile apps with it.

> Why but Why.

Sorry, but this comment seems arrogant. As though just because it's out there on React, others aren't entitled to opine differently or use different frameworks?

Re:Vue Native by coldtea on Wednesday June 13, 2018 @06:28AM (#17301836)
>Because, it solves a problem

Some solutions are worse than the original problem.

Besides, not everything qualifies as a problem.

"I want to build a good mobile app" is a problem.

"I like to use Vue and want to use it specifically to quickly build an app no matter how slow / bloated the result will be" is not exactly a problem. More like a capricious wish that was granted...

It's like how "I want to eat" defines a problem, but "I want to eat McDonalds every day" is more like a bad judgement...

Re:Vue Native by neya on Wednesday June 13, 2018 @07:17AM (#17302028)
> Some solutions are worse than the original problem.

Wow, that's a pretty harsh claim. This was just released and you already think it's worse with no sort of data to back up your claims. Sorry, that's not a sound argument.

Re:Vue Native by TeMPOraL on Wednesday June 13, 2018 @07:56AM (#17302220)
You still think it's about Vue Native. It's not. It's about using web stack for desktop applications. This is a "solution worse than the original problem".

And the damage is done. This[0] comment by 'm_fayer elsewhere in the thread is quite chilling. Actual native toolkits are rotting, as big companies join the web-for-everything bandwagon. Not only delivering bloated applications with toy-like UIs becomes the norm, we're losing the ability to deliver fast, useful UIs!

--

[0] - https://news.ycombinator.com/item?id=17301972

Re:Vue Native by coldtea on Wednesday June 13, 2018 @10:29AM (#17303371)
>And the damage is done. This[0] comment by 'm_fayer elsewhere in the thread is quite chilling. Actual native toolkits are rotting, as big companies join the web-for-everything bandwagon.

What's worse is that actual native toolkits are rotting, while at the same time we never managed to produce a single, great native cross platform toolkit -- even less so a great cross platform one.

Not because it's impossible, but because no major player cares (they have their own platforms), and OSS attempts like Wx and GTK+ don't have the manpower.

Re:Vue Native by timdavila on Wednesday June 13, 2018 @06:08PM (#17307420)
>we never managed to produce a single, great native cross platform toolkit

Why can't the web+JS be that platform?

Re:Vue Native by coldtea on Wednesday June 13, 2018 @06:52PM (#17307693)
Tons of reasons. For one, I wrote "native" above, and the web+JS aint that.

But even if we ask the more general question, why "web+js can't be the great cross platform toolkit", the answer IMHO is:

Web+JS are and will always be (due to the nature of the platform) inherently slower than optimal (even if "fast enough" for simple apps), use more memory, use more CPU, don't use the native facilities and so are foreign to every OS look and feel (from themes to usability features), and so on. And of course they're "bring your own theme" affairs, so no standard users can get used to, everybody does their own BS UI in SPAs and web-engine based apps (like Spotify and Atom).

Add the amateur hour development practices that they enable (where a company that would previously hire actual GUI programmers can now hire some web devs and let them loose to create its app) and the picture is not nice...

Re:Vue Native by coldtea on Wednesday June 13, 2018 @07:29AM (#17302084)
Notice how I said "some", and not "this particular solution".

I haven't evaluated this, but having suffered many (similar in concept) React Native and Electron based apps as a user, I speak of my general experience with those bloated / uncanny valley monstrosities...

Re:Vue Native by StreamBright on Wednesday June 13, 2018 @09:51AM (#17303015)
So does heroin, and creates a new class of problems.
Re:Vue Native by securityfreak on Wednesday June 13, 2018 @03:11AM (#17300940)
I honestly do not understand how did a large part of the software engineering community get to this point of idiocy.

Is this due to the principle of getting to the market first and quick prototypes? I don’t see a quick way back.

Re:Vue Native by matthewmacleod on Wednesday June 13, 2018 @03:41AM (#17301091)
Frankly I find your view pretty offputting.

I’m not really that into the idea of JS-as-a-platform, but it obviously emerged because it fulfilled certain requirements that weren’t covered elsewhere.

The “way back” from this is for people like yourself to stop dismissing others’ work as “idiocy” and start building better solutions to these problems as you see them.

Re:Vue Native by coldtea on Wednesday June 13, 2018 @06:25AM (#17301820)
>I’m not really that into the idea of JS-as-a-platform, but it obviously emerged because it fulfilled certain requirements that weren’t covered elsewhere.

Maybe they weren't covered for a reason?

The ability to have your web team churn out lowest common denominator bloated JS based mobile/desktop apps was not a real requirement, more like a wish of some.

Now businesses do that just because they can.

Re:Vue Native by fvdessen on Wednesday June 13, 2018 @07:38AM (#17302133)
They do it simply because it's the most cost effective solution overall.
Re:Vue Native by kziizijd on Wednesday June 13, 2018 @08:00AM (#17302247)
Typical capitalism outcome.

Cheapest to produce AND worst quality. In this case by bad performance and unneeded cellphone battery drain.

These products will be dominated by superior options eventually.

Re:Vue Native by TeMPOraL on Wednesday June 13, 2018 @08:03AM (#17302266)
> These products will be dominated by superior options eventually.

Would love that to happen, but all the other market sectors suggest otherwise. "Cheapest to produce and worst quality" seems to be all that's available to majority of the population.

Re:Vue Native by StreamBright on Wednesday June 13, 2018 @09:43AM (#17302934)
Like Apple, Lexus and Infiniti products. Totally.
Re:Vue Native by TeMPOraL on Wednesday June 13, 2018 @08:00AM (#17302244)
Yes. It's the most cost-effective solution, because:

- we haven't figured out how to make companies care about "delivering value" part of the "delivering value in exchange for money" work, and

- we allow them to dump externalities on users without consequences or compensation.

So the most cost-effective solution in this scheme will be a half-assed product that's barely good enough to be sellable, and which makes my computer use more electricity while being less capable of running software simultaneously.

Re:Vue Native by Can_Not on Wednesday June 13, 2018 @08:30AM (#17302392)
And the whole point of native components in Vue/react is to reduce those negative externalities, but the first thread I see in this post is criticizing Vue for sharing from react's ecosystem instead of inventing an indentical solution from scratch?
Re:Vue Native by qaq on Wednesday June 13, 2018 @08:32AM (#17302399)
At the current rate we will soon have phones with 8GB RAM and who knows how many cores not having to rewrite same code 3 times in 3 lang. will def. be catching on more.
Re:Vue Native by TeMPOraL on Wednesday June 13, 2018 @08:46AM (#17302494)
If by soon you mean in 2 years on flagships (looking at current specs, I don't buy it), then for regular users buying regular smartphones it'll be ~7 years from now.

I don't feel like this is a valid justification for being wasteful, though.

Re:Vue Native by throwaway413 on Wednesday June 13, 2018 @08:52AM (#17302543)
The OPO 6 is out now with 8GB RAM, so no not in two years, let alone 7.
Re:Vue Native by TeMPOraL on Wednesday June 13, 2018 @08:59AM (#17302597)
That's an outlier, pretty niche one at that.

(Personally, I didn't even realize OnePlus phones still exist - I thought they died out somewhere around OnePlus 3.)

Re:Vue Native by throwaway413 on Wednesday June 13, 2018 @01:08PM (#17305009)
Actually, now that I'm looking into it - the OPO 3T had 8gb of RAM as well :P It's been a while!

I do think though that we will only be seeing more and more of this, and very soon.

Re:Vue Native by Raphmedia on Wednesday June 13, 2018 @09:52AM (#17303028)
> The ability to have your web team churn out lowest common denominator bloated JS based mobile/desktop apps was not a real requirement, more like a wish of some.

Come on, the requirement has always been there. It is "Shit out that underbudgeted project in half the promised time". Those small frameworks where you can hire a cheap front-end guy and have him manage the entire project alone or in a small team are perfect to fill that niche.

Re:Vue Native by securityfreak on Wednesday June 13, 2018 @04:48AM (#17301382)
Maybe "idiocy" is unnecessarily strong, but I certainly don't have to praise all emerging experiments just to sound polite, do I? The emerging of all these stacks is because of approachability. Everyone has a browser. Anyone who wants to create their first website can do so, by opening up e.g. notepad. By this approach you get low-quality, self-taught JS "experts" who are much cheaper to hire than a proper software engineer with fundamentals of computer science. After a few years these developers feel so confident, they decide to launch their own perfect new framework/library to solve all the problems they experienced!

There is a better solution. It's called native app development, without a hyphen of any sorts in front of "native". Different platforms have different quirks and there is no way to have the exact same UI/UX on all platforms.

The true challenge is to explain the executives, that hiring 2 developers will be much better in the long run, than 1 underpaid JS developer for all platforms.

Re:Vue Native by m_fayer on Wednesday June 13, 2018 @07:03AM (#17301972)
I used to agree with you. But over the last few years, in their own ways, Apple and Microsoft have dropped the ball on their native desktop UI toolkits. So, whereas the argument for native used to be "rewrite your client once per platform, and you get a better language, better performance, better usability, and a better development experience", now it's "rewrite your client once per platform and you may get a better language, depending on your taste, probably better performance, an aging closed-source toolchain, an outdated development paradigm, outdated APIs covered in legacy-barnacles, debugging-resistant performance pitfalls, and decent usability if you're ok with a generic one-size-fits-all look (and you're on your own if you're not.)" In other words, the argument for native, and native development itself, is not aging well.
Re:Vue Native by ben_w on Wednesday June 13, 2018 @05:41AM (#17301613)
> but I certainly don't have to praise all emerging experiments just to sound polite, do I?

Speaking from personal experience, I have found it vastly more productive to focus on the good than the bad. Yes, even in situations where the other person is literally [1] too dumb to put their underwear on correctly without assistance.

I don’t know how or why it works to do that, but it does, and the improvement from doing so is immense.

[1] Alzheimer’s.

Re:Vue Native by jstewartmobile on Wednesday June 13, 2018 @07:30AM (#17302090)
it will get worse before it gets worser
Re:Vue Native by walterstucco on Wednesday June 13, 2018 @04:21AM (#17301265)
It just made possible for web developers to jump on the native apps train

It's hard to think of it as an improvement

The idiocy is in the hundreds of engineering hours spent to build half baked solutions that never work as expected and never will

It's developers not wanting to adapt, while if they spent half of that effort on red or even visual basic 6 we would have end up with something better

Diversity is king, web everywhere for everything will impoverish the entire developer's community

Re:Vue Native by ergothus on Wednesday June 13, 2018 @04:42AM (#17301365)
I find it entertaining that you post this a within 24 hours of the linus/tanenbaum rehash.

Getting crap done counts for a lot. Web, and hci in general, isnt figured out well at all, so we can spend a few decades pursuing an ideal we don't even have defined...or we can get stuff done.

If you are arguing for some specific non-"idiocy", please, explain why your version hasn't taken off.

Re:Vue Native by mastazi on Wednesday June 13, 2018 @07:54AM (#17302214)
> I find it entertaining that you post this a within 24 hours of the linus/tanenbaum rehash.

Do you have a link about this latest rehash? I tried googling without success

Re:Vue Native by ergothus on Monday June 25, 2018 @01:41PM (#17394188)
Sorry for the late reply - the article is old, but the HN link (and comments) is recent: https://news.ycombinator.com/item?id=17294907
Re:Vue Native by paulie_a on Wednesday June 13, 2018 @09:54AM (#17303038)
> getting crap done

Yeah you end up with crap.

Re:Vue Native by rimliu on Wednesday June 13, 2018 @07:08AM (#17301989)
Non-serious: maybe they have to spend so much time chasing the latest trends in JS frameworks that none is left to learn about alternatives.

Semi-seriuos: I am afraid many honestly believe that JS is the best language and has the best ecosystem.

I consider myself lucky having learnt programming back when you had no choice but to use different tools/languages for different tasks. It provides with a luxury of being able to compare different approaches.

Re:Vue Native by JustSomeNobody on Wednesday June 13, 2018 @06:51AM (#17301924)
It's all about developer productivity and nothing else. Well, maybe a healthy dose of cargo cutting. But anyway, no care is really given anymore about resource usage, etc because all of that is abundant.

I personally don't like it as I think it's wasteful and careless.

Re:Vue Native by TeMPOraL on Wednesday June 13, 2018 @08:06AM (#17302280)
> no care is really given anymore about resource usage, etc because all of that is abundant.

They're abundant for people who you only think about themselves. Who believe that their application will be the only one running on the machine. Which may be the case if you're developing software for touchscreens on a factory floor, but is definitely not true for end-user software, and doubly not true for anything on the web.

Re:Vue Native by izacus on Wednesday June 13, 2018 @09:35AM (#17302869)
Nah it's the culture - at some point someone started teaching people that learning new programming languages and more fitting tools is hard. So now there's a whole herd of people who refuse to learn anything but JS and then spend time wrapping the wrappers and debugging them instead of taking a tool better fitted for the task.
Re:Vue Native by re-actor on Wednesday June 13, 2018 @04:17AM (#17301250)
We are in the odd position where HTML + JS + UI framework (Vue/React) is just by far the best way to create good user interfaces. The performance hit is not going to stop anyone from using or developing software like this. There is NO good alternative.
Re:Vue Native by TeMPOraL on Wednesday June 13, 2018 @07:19AM (#17302032)
I'm sorry, but the way the web stack is typically is the opposite of good user interfaces. It's not that the web can't be used to create good UIs, it's just I've never seen it used in this way, and I find that the less of web technologies you use, the better.

A good user interface will, among other things, be consistent with its environment, efficient wrt. to its purpose and performant.

Consistency with the environments using similar interface primitives to other applications at all levels - not just looking like other applications (to facilitate knowledge transfer/principle of least surprise), but also supporting universal idiosyncrasies - like the context menus in text field, copy-paste, integration with system-wide settings, etc. Looking the same is anathema to web designers, and reconstructing anything else than basic functionality of an UI component is something webdevs usually can't be bothered with.

UIs that are efficient for purpose happen on the web, as long as people do not follow popular UI/UX guidelines. Efficiency for purpose usually means denser interfaces, less bells and whistles, more data on screen, more features and functionality, and a bit of learning curve - all of these are actively hated in the current web ecosystem. All the efficient interfaces I see on the web these days are of those products that didn't get the "web 2.0" memo and are stuck in early 2000s.

Performance. They say V8 is heavily optimized and all, but for some reason the modern web is still fucking slow. Might have something to do with ads and tracking, but it also might have something to do with trying to be first-to-market, and putting in lots of pretty looking bells and whistles. The end result is that I say the data table might need to display 10 000 rows, and I see the UI team cringe at the thought of slowdown. Well, why on Earth would 10k rows in a 4-column table be a problem? Oh, you used lots of JS magic to make that table pretty and "reactive" and shits, that's why.

--

TL;DR: The web is the opposite of good UIs. I'm not really sure if the problem is technological - it seems to be almost entirely cultural.

Re:Vue Native by sireat on Wednesday June 13, 2018 @04:32AM (#17301313)
For certain values of good user interfaces perhaps.

There has got to be a better way forward for mobile UI.

For desktop creating UI on something like QT designer or XAML on WPF is way more pleasant than HTML+JS+UI framework .

Even Actionscript was less convoluted that this mess.

I love writing React code but these abstractions are getting too elaborate.

I had high hopes for WebComponents but support for those seems to be stagnating.

Re:Vue Native by mlsarecmg on Wednesday June 13, 2018 @06:19AM (#17301797)
Xaml and Wpf? Qt? I am honestly asking you, have you worked with React before? XAML has a learning curve of 2 years and more to get to expert level. I developed with it for more or less 5 years and i still have nightmares. Qt and the others are all imperative layout inflaters. React was a revolution, maybe the first cross platform paradigm that actually made sense. A learning curve that doesn't span more than a day. In all my years as a frontend developer i haven't seen a simpler way to create user interfaces. And sure as hell i would prefer React on the desktop or mobile over aged native toolkits that still struggle with obsolete oop-mvc-templating semantics, especially wpf and xaml, which in my opinion where the sole reason why i started hating my job.
Re:Vue Native by sireat on Wednesday June 13, 2018 @07:01AM (#17301969)
I love writing React code and it is easy to get up to speed there.

I abhor the mix of HTML/CSS for UI design. I'd rather code UIs in Actionscript.

The web browser as an abstraction for general use UIs is just not ideal.

XAML might be a company induced mess underneath but my point is that you don't have to be XAML expert to make nice interfaces. I made CRUD apps on WPF and rarely did I have to touch XAML directly. I had a big thick book on XAML and it sat unopened on my shelf.

I am forced to do front-end webdev work and I hate it. I need to worry about UI breaking instead of worrying about business logic.

Let's say client needs a dropdown menu added at a certain location. On desktop this is cake on most toolkits.

On web the problem is that there is no certain location, there is no absolute. You have to delve deep into CSS abyss to figure out how the component will behave.

Re:Vue Native by mlsarecmg on Wednesday June 13, 2018 @10:41AM (#17303508)
Well i give you that, css is what it is, but even with basic css knowledge, making a dropdown appear anywhere you want is not hard: https://codesandbox.io/embed/w7499vxrzk

It could be better, but it's even got a proper grid system now, close to wpf's. From what i remember though, wpf's styles also had some rough spots.

Re:Vue Native by Sacho on Wednesday June 13, 2018 @09:52AM (#17303026)
Uh, there is in fact, an absolute(position:absolute). It has caveats, but doesn't XAML? The 'certain location' bit is actually quite complex:

- how is it supposed to adapt to different resolutions?

- is an inner absolute component allowed to escape its container?

- how does it layer with other components?

The CSS required to position an element at an absolute location must take all of these into consideration, and I'm not sure how much better a native toolkit can make it.

Re:Vue Native by paulhilbert on Wednesday June 13, 2018 @06:53AM (#17301929)
Compared to vue, qt and all its reincarnations are a nightmare to work with.
Re:Vue Native by TeMPOraL on Wednesday June 13, 2018 @07:52AM (#17302199)
Maybe. But it boils down to where you want to put the crap - contain it within the dev team, or drop it on your users? Obsessive trading of developer time on your end for compute use on users' end is a big part of what makes web UIs suck. Also, for keeping some of the crap on your end, native-native toolkits give you consistency and performance for free.
Re:Vue Native by jaegerpicker on Wednesday June 13, 2018 @10:13AM (#17303212)
I'm almost at a loss for words. The web stack is frankly one of the worst ways to create a good UI. The best UI's typically have three key area's:

- It's easily discoverable by the user - The web is typically horrible at this. Custom controls, look and feel's, and a severe lack of common UI patterns. Native app's have this in spades.

- It's performant - Native wins this hands down everytime. The web stack lacks threading and one of the major keys is to NOT do work on the main thread for a great UI. The vast majority of web dev's have never even thought about threading.

- The design puts features in a place the user can easily and quick get to. This has little to do with the technology platform.

Bottom line is the web stack is at a MAJOR disadvantage for building a UI. The only use for it on mobile is that developers refuse to put in the work to learn how to do the platform justice.