News for hackers. Stuff that matters.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by kowdermeister on Friday February 22, 2019 @03:49AM (#19223961)
I clicked the logo 3 times. It's not a video :)
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by sambeau on Friday February 22, 2019 @04:27AM (#19224091)
Me too.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by martin-adams on Friday February 22, 2019 @05:03AM (#19224231)
The app is really slick. I'm surprised they were allowed to have their own window manager as Apple were very against that in the past. But I really like it. It actually is a nice take on a desktop environment on a tablet.

I'm curious it being Node.js. It can run my js file on flight mode so isn't using a remote execution. But I didn't believe you could run node.js on an iPad due to the Apple restrictions (hopefully I'm wrong).

That said, the whole ecosystem of Node.js is about bringing in modules. I can't see any mention of how to do that.

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by dmitriid on Friday February 22, 2019 @05:22AM (#19224295)
> they were allowed to have their own window manager as Apple were very against that in the past.

How is it a window manager when it's just an app with whatever screens it appropriate to display?

It's no more a window manager than sketchbooks in drawing apps.

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by martin-adams on Friday February 22, 2019 @05:30AM (#19224328)
It's because they've recreated the internal menus, window snapping, ability to overlay windows and has a desktop. It looks like an OS. Apple were against this in the past because it doesn't align with their OS way of doing things. I never liked the rule so I'm excited to see that it looks like they've relaxed it in recent years.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by egwynn on Friday February 22, 2019 @08:36AM (#19225110)
I don’t think they’ve ever had a policy about whether apps could / couldn’t re-create their own menus or windows.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by martin-adams on Friday February 22, 2019 @09:08AM (#19225393)
I finally found it. It's the "create an alternate desktop environment" part that I would say this falls under. Mostly because you have a desktop and they've created a new windowing environment that isn't native to iOS.

>> 2.5.8 Apps that create alternate desktop/home screen environments or simulate multi-app widget experiences will be rejected.

https://developer.apple.com/app-store/review/guidelines/

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by egwynn on Friday February 22, 2019 @10:28AM (#19226101)
Got it. Yeah I see what you mean. This rule is more about them wanting to maintain control over distribution than it is about having a custom desktop / windowing metaphor. They don’t want people to create a platform within their platform where a third-party is distributing app-like things in an end-run around the iOS App Store.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by kn0tblind on Friday February 22, 2019 @05:11AM (#19224252)
RE: Node modules. For now, it requires some prep with a laptop. You can use browserify --bare to squash all the dependencies into a file as they do here playdotjs://28816c75
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by cmmartin on Friday February 22, 2019 @05:38PM (#19229789)
NCC is a good tool for this too https://github.com/zeit/ncc
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by nakiostudio on Friday February 22, 2019 @05:45AM (#19224384)
Regarding modules support check the app Community.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by scarface74 on Friday February 22, 2019 @05:24AM (#19224303)
Node should be the easiest to conform to Apple’s policies. It is using the native JavaScript engine.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by martin-adams on Friday February 22, 2019 @05:32AM (#19224339)
Node and a native JavaScript engine aren't the same thing, unless the native JavaScript engine on iOS is Node.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by cmmartin on Friday February 22, 2019 @05:41PM (#19229815)
Which it's not. iOS uses JavaScriptCore https://developer.apple.com/documentation/javascriptcore
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by barbecue_sauce on Friday February 22, 2019 @01:57PM (#19228018)
Node isn't even a JavaScript engine.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by peteforde on Friday February 22, 2019 @01:54AM (#19223642)
Is there a hidden demographic of devs building React apps on iPads? This seems very, very niche.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by baddox on Friday February 22, 2019 @02:34AM (#19223758)
Hidden? Probably more like latent. I build React apps all the times professionally and in my leisure time. I also use my iPad Pro a lot. I just don’t use my iPad Pro to make React apps, because I’ve never been aware of any feasible way to do so.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by dkersten on Friday February 22, 2019 @02:55AM (#19223811)
I’m in a similar boat. I desperately want to be able to develop on my iPad, but just haven’t found a good way to do it yet. The best I’ve found so far is programming a micro:bit with the scratch-like environment.

I’ll probably try this out, but what I really want is something like Max/MSP so is don’t have to type so much (although I do have a keyboard for my iPad, but it’s not something I like to type for long durations on)

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by simonh on Friday February 22, 2019 @03:19AM (#19223870)
There are several very capable, full-blown dev environments available for the iPad and iPhone. I think the main ones are:

Codea for Lua https://codea.io/

Pythonista for Python http://omz-software.com/pythonista/

Continuous for .NET http://continuous.codes/

Codea and Pythonista also provide XCode templates you can drop your code into to create App Store apps from your projects. Not sure about Continuous.

Apple allowing iCloud syncing for code has removed the last real source of friction I'd had using Pythonista. Now I can write a script on my iPad, then reach over and run it on my phone, then if it's cross-platform sit at my Mac and run it from there too before checking it into Github. No fuss, no bother.

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by mark_l_watson on Friday February 22, 2019 @07:17AM (#19224685)
Another iPad IDE, for Haskell: Raskell

I think this is one of my best app purchases ever, based on how much fun I have with it. Great to be able to read a Haskell book on my iPad and flip back and forth the Raskell to try code snippets as I read.

Pythonista is another great app purchase if you want to be able to write Python code natively on an iPad.

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by dkersten on Friday February 22, 2019 @04:20AM (#19224064)
I’ve looked at the first two of those and I found them still too awkward due to being very text-typing heavy. Similar to play.js so I guess it mightn’t work well for me. I do have a keyboard and get by, but it’s uncomfortable for anything but shortish bursts and while I can of course use a normal keyboard, when I have one available I typically also have a laptop or desktop available so it’s easier to just use those. Like I said, I really dream of something more touch-friendly like an iPad-max/msp type language.

Still, I’ll try the ones you linked again and see. Maybe I got it wrong.

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by simonh on Friday February 22, 2019 @04:38AM (#19224130)
Graphical development environments like that are a nice idea, but tend to be somewhat limited and very domain specific.

Pythonista does come with a graphical UI builder, but it is still a very code intensive environment.

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by dkersten on Friday February 22, 2019 @06:44AM (#19224569)
> Graphical development environments like that are a nice idea, but tend to be somewhat limited and very domain specific.

Sure, they tend to be, but in my experience with them (mainly Max/MSP and Synthmaker) they don't have to be. The potential is there, but nobody has really done it well. Max/MSP came close when I last used it, but had a few annoying limitations[1] and there's a general negative sentiment towards graphical programming environments, which I feel puts a lot of people off trying them in earnest and therefore puts people off experimenting with building them (and they will never improve if people don't try -- remember, we have decades of textual language evolution and tooling).

Some of the negativity is justified, but some of it is, in my opinion, not. For example, people criticise the visual spaghetti code and cite examples from many existing visual languages (usually the domain specific ones), but ignore that these domain specific ones are used by non-programmers who never learned software engineering principles. Textual code when written by these same people is just as much spaghetti code lacking encapsulation and abstraction and good naming conventions as visual code written by these people. I've seen some Max/MSP code that was downright beautiful and super easy to follow. Don't get me wrong, on a laptop/desktop, I totally prefer textual like everyone else, but I feel on a tablet, visual would be a great fit.

But even with the negative aspects, I think the benefits of being able to use a touchscreen outweighs the negatives, when compared to using a textual language on a touchscreen. For me, at least, if not for others.

> Pythonista does come with a graphical UI builder, but it is still a very code intensive environment.

I guess I'll give it a try, but "code intensive" sounds like what I don't want. We will see. Thanks for the recommendation regardless!

[1] At the time, I couldn't figure out a way of nesting data structures, for example. It seems this is now possible, so I don't know if it was added since or if I overlooked it at the time. There were a bunch such limitations that prevented it from being useful as a general purpose language, but since its not meant to be one, I guess it doesn't matter.

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by lazyjones on Friday February 22, 2019 @04:58AM (#19224215)
https://nodered.org might be a starting point, but it’s still awkward to use and not exactly touchscreen-friendly. Looking for someting like that or LabVIEW for the iPad myself...
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by dkersten on Friday February 22, 2019 @06:34AM (#19224530)
Thanks, I'll check it out. All of the web-based ones I've tried so far weren't very touchscreen friendly, sadly. Many simply don't respond to touch events, or the nodes were too small for my fingers.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by mch82 on Friday February 22, 2019 @04:27AM (#19224090)
I like to use a full sized Mac Bluetooth keyboard with my iPad. I haven’t found a case keyboard I’ve liked.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by dkersten on Friday February 22, 2019 @06:37AM (#19224540)
The issue I have is that I don't want to carry a full sized keyboard around with me and when I'm somewhere where I have one (ie at home or in the office) I also have a laptop or desktop available with much better development tools, so just use those. iPad development would be for when I'm away from these.

I do have a case keyboard and its fine for basic use (emails, HN comments, short documents, chat messages) but I've never been happy typing a lot on it and I've never been happy programming on it (I've tried various IDE's, web based tools, SSHing into a server etc and I always got frustrated).

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by sudhirj on Friday February 22, 2019 @02:06AM (#19223673)
The iPad Pro is pretty great other than the development story, and this bridges that gap petty well, at least for React native.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by dagw on Friday February 22, 2019 @04:29AM (#19224097)
Schools? Certainly my both my daughters school and my niece and nephews school has bet the farm on iPads, and are now looking for ways to teach programming without having to buy new hardware for all the kids. Something like this could be another way to do that.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by sorahn on Friday February 22, 2019 @02:25AM (#19223731)
I would love to run VSCode and a preview browser window on my iPad Pro.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by toan3rd on Friday February 22, 2019 @03:07AM (#19223841)
Have you tried codesandbox.io? It is in my view the most sophisticated online editor with live preview and a huge load of starter templates to spare you the build configuration.

It is my go-to solution for when i have an idea and just want to build it quickly anywhere.

There is experimental support to use VSCode as the editor, togglable in the options.

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by sorahn on Friday February 22, 2019 @03:17AM (#19223865)
I have used it before, but didn't know about the VSCode option. I'll check that out. Thanks!
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by cdmckay on Friday February 22, 2019 @06:24AM (#19224497)
Not in developing countries where not everyone has a laptop.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by Fiahil on Friday February 22, 2019 @09:15AM (#19225459)
Is there something similar that would allow me to use one of these on iPad Pro:

- A fully featured linux desktop with Visual Studio Code and a terminal

- A sandboxed terminal with persistent storage

- A text editor and a rust compiler

- A text editor

I could always ssh into my raspberry pi while at home, which is my second best solution. But, if anyone has some ideas/solutions in mind that require even a large bit of tinkering, please tell me :)

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by leesalminen on Friday February 22, 2019 @09:42AM (#19225686)
I just picked up a new 13” iPad Pro with the hopes as using it as a travel machine. Mostly for email/writing, but also for light development. Haven’t found a solution yet. I’m in web dev land currently, so node/npm/webpack and a local http server would be needed.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by quambo on Saturday February 23, 2019 @06:30AM (#19232802)
I've just found a solution that works pretty nicely for me: Coda. It has an integrated SSH terminal, it has FTPS and uploads changes to files on save and it has support for many languages (don't know about rust though). It also saves your terminals and open files within each project so you can easily switch around.

Coda on iPad + Raspberry Pi (or an old Mac mini) make a pretty nice dev environment.

If you are more of a VIM guy, something like Terminus works well too.

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by Hippocrates on Friday February 22, 2019 @09:50AM (#19225753)
Here's how I do this: https://stephendotz.com/posts/pocket-dev/ Originally I set it up on my iPhone, but now I use my iPad Pro "13 w/ the keyboard cover and it's really pleasant. I've written a ton of code on it. Front-end work is a little bit less fun because there aren't any browsers with dev tools for it.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by robbevan on Friday February 22, 2019 @11:50AM (#19226785)
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by Hippocrates on Friday February 22, 2019 @12:15PM (#19227016)
Amazing, thanks!
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by Fiahil on Saturday February 23, 2019 @04:11AM (#19232471)
nice setup! I think I would go for a remote server instead of a local laptop in case I would opt for SSH’ing from the ipad. Thanks for suggesting Mosh !
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by harryf on Friday February 22, 2019 @09:29AM (#19225566)
Cool would be if this app had some basic git(hub) support - currently seems only to support storing files locally or sharing to anything with a registered Sharing Extension (not aware of app that registers github sharing extension)
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by kall on Friday February 22, 2019 @05:32PM (#19229753)
It already exposes it's document folder "On My iPad" so you can use the folder sync feature in Working Copy to work with github.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by jtth on Friday February 22, 2019 @03:34PM (#19228874)
You wouldn't do this. You'd expose the filesystem (Files app) and use Working Copy, which can mount repositories as though they were folders.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by nexuist on Friday February 22, 2019 @02:04AM (#19223666)
I am incredibly excited for this. As a developer, all of my mobile devices excel at doing almost everything except....development. One step closer to a realized dream.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by chendragon on Friday February 22, 2019 @03:24PM (#19228792)
I bought this, it looks very nice and the UI has a very high level of polish to it.

I'm trying to use this with WebViews to hack together a multi-window, multi-tab browser thing, not sure if this is something that exists already.

The main issue with this is that it closes all of the windows when you switch away from this app, making it quite inconvenient at the moment.

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by keyle on Friday February 22, 2019 @02:21AM (#19223720)
Side note: I was expecting the background to be some really neat CSS trickery... Sadly just an image :'(
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by etxm on Friday February 22, 2019 @12:13PM (#19226993)
This is pretty cool. Just killed 30 minutes while in a waiting room.

Couldn’t figure out how to add modules.

Auto-prettier would be awesome.

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by tempodox on Friday February 22, 2019 @08:18AM (#19225005)
What Node modules does it download and how can I inspect them? What are the security implications?
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by seddin on Saturday February 23, 2019 @02:59AM (#19232284)
You will be much more productive on any Chromebook with a Linux distro than on a iPad.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by nurettin on Friday February 22, 2019 @02:38AM (#19223770)
Anything similar for android people who have some time to kill while commuting?
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by DennisAleynikov on Friday February 22, 2019 @03:05AM (#19223837)
Termux + Expo.io

Or Samsung's Linux on DeX works well for app dev on your phone.

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by ramigb on Friday February 22, 2019 @04:52AM (#19224199)
How can you use DeX and commute?
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by bergie on Friday February 22, 2019 @07:43AM (#19224810)
Theoretically you could use a portable HDMI screen and a battery pack, but that's quite clunky.

The Galaxy Tab S4 supports DeX right on the tablet AFAIK.

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by DennisAleynikov on Saturday February 23, 2019 @12:42PM (#19234422)
The Tab s4 and s5e both have DeX mode on screen and can be proto-laptops. Also there exist lapdock implementions by favorite being the HP Lapdock which even supports wireless pairing (Although DeX still needs to enable wireless projection mode)
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by DennisAleynikov on Friday February 22, 2019 @06:11AM (#19224464)
Linux on DeX works outside of the desktop in shell mode. you can start the app and test inside expo even on the go.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by benjaminsuch on Friday February 22, 2019 @04:55AM (#19224208)
I hate to brag but why can't you enlarge the screenshots on the App Store? Why is there no info or video what so ever to showcase the tool?
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by kkarakk on Friday February 22, 2019 @05:47AM (#19224392)
the video doesn't seem to play...
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by isuckatcoding on Friday February 22, 2019 @01:05AM (#19223476)
Cool but why though? I understand for those small percentage of iPad users this will be great.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by sudhirj on Friday February 22, 2019 @01:07AM (#19223489)
That’s precisely why. Took my money. Is great.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by nodelessness on Friday February 22, 2019 @01:26AM (#19223555)
real image?
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by sudhirj on Friday February 22, 2019 @01:44AM (#19223600)
on HN nobody knows if you’re real.
Re:Play.js: The Node.js and React Native IDE for iPhone and ... by kn0tblind on Friday February 22, 2019 @01:55AM (#19223643)
You don’t need to know how to code to use it

https://twitter.com/playdotjs/status/1098477904382578688?s=2...

Re:Play.js: The Node.js and React Native IDE for iPhone and ... by jayvay on Friday February 22, 2019 @11:10PM (#19231558)
Very cool