Can we code in tablet?

"Please leave a message at the beep, we will get back to you when your support contract expires."

Moderators: phlip, Larson, Moderators General, Prelates

Can we code in tablet?

Postby Afif_D » Sat Jun 09, 2012 3:47 am UTC

If I buy a tablet will it be easy and convenient to write programs and codes in there?
Image
User avatar
Afif_D
 
Posts: 172
Joined: Wed Oct 06, 2010 2:56 pm UTC

Re: Can we code in tablet?

Postby Steax » Sat Jun 09, 2012 6:14 pm UTC

It depends on what tablet.

I use an iPad and installed Textasic, a $9.99 app with all the goodness you expect from your typical IDE - syntax highlighting, textmate compatible color schemes, jump to declarations, etc. It will sync to webdav, dropbox, or sftp/ftp. It has on-screen support for special characters and also has granular cursor controls so you don't have to keep combing the text, which is nice, but I'd only use that for really short fixes. I use an external bluetooth keyboard for this purpose, and it works quite well. I also use a cover that lets me prop it up.

So it's still much lighter than your average laptop, and it's still only 2 pieces of equipment, one of which being optional. And I can afford to carry it around constantly in my backpack, since it's not as bulky as my macbook (and it has better battery life too). I'd say it was a great investment. But that's just because I'm a web developer; I can serve up quick hotfixes for server issues on the spot, or load up files from dropbox.

Note that it had no parsers or preview tools aside from basic text/HTML. If you need anything that compiles, it probably isn't as good.

I can't speak on the Android side of things, though.
In Minecraft, I use the username Rirez.
User avatar
Steax
SecondTalon's Goon Squad
 
Posts: 2706
Joined: Sat Jan 12, 2008 12:18 pm UTC

Re: Can we code in tablet?

Postby hotaru » Sat Jun 09, 2012 11:00 pm UTC

on android, aide can be used to develop android apps. there are compilers available for c, c++, pascal, and several other languages. sl4a has interpreters for perl, python, scheme, ruby, lua, php, and a couple other languages. if you use a usb or bluetooth keyboard, it's about the same as writing code on any other computer. just using an on-screen touch keyboard can get a bit annoying for anything more than quick fixes, but it's a lot better than nothing.
Code: Select all
#include <stdio.h>

int main()
{
 struct { unsigned a:3, b:3, c:2; } n = {0};
  do do printf("%hhu\n", *&n);
  while(!(n.a-- && !++n.b));
  while(++n.c);
  return 0; } 
User avatar
hotaru
 
Posts: 931
Joined: Fri Apr 13, 2007 6:54 pm UTC

Re: Can we code in tablet?

Postby Afif_D » Tue Jun 12, 2012 3:02 am UTC

And can a tablet make any provisions for compiling codes written in Java and C and also run them?
Image
User avatar
Afif_D
 
Posts: 172
Joined: Wed Oct 06, 2010 2:56 pm UTC

Re: Can we code in tablet?

Postby Steax » Tue Jun 12, 2012 2:09 pm UTC

You'd have to search out for that on Android tablets.
In Minecraft, I use the username Rirez.
User avatar
Steax
SecondTalon's Goon Squad
 
Posts: 2706
Joined: Sat Jan 12, 2008 12:18 pm UTC

Re: Can we code in tablet?

Postby Afif_D » Wed Jun 13, 2012 2:40 am UTC

I don't own an android tablet. Can any of you pls search it and let me know before i buy an android tablet.
Image
User avatar
Afif_D
 
Posts: 172
Joined: Wed Oct 06, 2010 2:56 pm UTC

Re: Can we code in tablet?

Postby Steax » Wed Jun 13, 2012 3:53 am UTC

To avoid pointless waiting, probably not, no. You can search for it on the web; most apps have a website, and the android store is also online, I believe. Most full-time developers I know, however, use their tablets for writing code, but not for compiling, mandatory unit tests and other processes.
In Minecraft, I use the username Rirez.
User avatar
Steax
SecondTalon's Goon Squad
 
Posts: 2706
Joined: Sat Jan 12, 2008 12:18 pm UTC

Re: Can we code in tablet?

Postby Jplus » Wed Jun 27, 2012 9:59 pm UTC

I'm using an iPad with Textastic and a bluetooth keyboard, just like Steax. Works great.

In case Java or C is not a hard requirement, and you just want to execute your own program on the tablet in whatever language: while compiling things is out of the question on iOS, there are some nice interpreters available for Lua, Python, Ruby and Scheme, among others.

There also seem to exist programs that let you compile and execute C and even COBOL, but I suspect those use an internet service like ideone rather than executing directly on your device (so they're almost certainly very slow).
Hey, like coding? Perhaps you should check out the red spider project.
Feel free to call me Julian. J+ is just an abbreviation.
User avatar
Jplus
 
Posts: 1091
Joined: Wed Apr 21, 2010 12:29 pm UTC

Re: Can we code in tablet?

Postby hotaru » Thu Jun 28, 2012 12:43 am UTC

Afif_D wrote:And can a tablet make any provisions for compiling codes written in Java and C and also run them?

Steax wrote:To avoid pointless waiting, probably not, no. You can search for it on the web; most apps have a website, and the android store is also online, I believe. Most full-time developers I know, however, use their tablets for writing code, but not for compiling, mandatory unit tests and other processes.

apparently i wasn't clear enough before...
compile and run java
compile and run c
Code: Select all
#include <stdio.h>

int main()
{
 struct { unsigned a:3, b:3, c:2; } n = {0};
  do do printf("%hhu\n", *&n);
  while(!(n.a-- && !++n.b));
  while(++n.c);
  return 0; } 
User avatar
hotaru
 
Posts: 931
Joined: Fri Apr 13, 2007 6:54 pm UTC


Return to The Help Desk

Who is online

Users browsing this forum: No registered users and 6 guests