Related
First off I’d like to acknowledge the many of you for really opening up my eyes to what these awesome devices can do. It really still does amaze me how some of you folks here at XDA can really create some truly incredible applications and programs. In fact many of you have inspired me to attempt to learn a little bit about programming myself and I have a few questions from the pros in here as to how I should start.
I do have some very basic, mostly self taught skills with SQL, Visual Basic 6.0, tcl (tool command language), UNIX, and a few other types of software but I’m not very skilled at all in any of them. I’m basically a small step above a ‘user’ but I learn fast, this stuff seems to come easily to me, and I have decent instincts on what to NOT try without consultation or research.
Anyway I’d like to become less dangerous (or more depending on how you look at it) and really learn one language on my own at first then maybe take some real classes. I’d like to gear or lean my learning towards a language that I can use to create PPC programs since that’s my main interest these days but I’m getting a little bit of conflicting info\recommendations. I’m being told to start playing with C and that I can then pretty much learn anything after that. I have someone else saying to just skip the C and start with C++ which is a little easier and has more ‘libraries’ so it isn’t as tedious to do certain things. I then have a guy who knows me and my capabilities somewhat well and said I should just jump right into .Net and the rest will fall into place.
So where would you start if you were basically a beginner and wanted to jump right in? I’d like to minimize the ‘curve’ on learning a new language and focus on one that will get me up and running and having fun fairly quickly and not have to learn one to learn another then a third which will get me where I want to be. I really appreciate all of your input in advance guys and gals!!
Dave
.Net is a great platform but you have to remember it is dependant on the .net framework. For this reason some people to use other languages such as c or c++
joel2009 said:
.Net is a great platform but you have to remember it is dependant on the .net framework. For this reason some people to use other languages such as c or c++
Click to expand...
Click to collapse
Thanks joel2009!! Looks like C++ is the way I'm going to go. I appreciate your help!!
Dave
You makes your choice........
If you need to use all the fancy .NET objects then it is C# or VB only. Don't bother with the .NET version of C++, as the type castings you have to use to get it to work makes the code hideously unreadable. Dont forget that the target version of the .NET runtime has to match that of the PPC it going to run on. What version is installed on your PPC ? Run \WINDOWS\CGACUTIL.EXE and it will cough up the results.
If it is a simple application use Embedded C++ and stick to the old WIN32 programming model. It is a bit of a pain to master, but your application will run like a bat out of hell. Respond to the WM_xxxxxxx messages sent by the OS to your app, and use the primitive HDC graphics routines to draw to the screen. It's a bit old hat these days but the compiled .EXE will run on nearly any PPC. (ARM compatable)
Are there any developers using Mono for development? Looking for some feedback on it...
Galaxy Red - DJ05 - Voodoo5 using XDA app
Mono with JIT enabled won't work on the Fascinate (or any Galaxy S device) until 2.2 is rolled out. Of particular note, this causes many problems with games authored in Unity3D. Cite: h t t p :// forum.unity3d.com/threads/62410-Galuxy-S-support#post409742
If I was drinking something I would have spit it out when I read the title of this post.
Sent from my SCH-I500 using XDA App
I wonder if some of the new Kernels that are being created are having the same issue ... but Unity isn't using Mono from my quick skim of the site. And from my reading, mono has its own JIT runtime. It would be interesting to know if anyone has used it yet.
http://monodroid.net
Uhhh...no
Lol...the CORRECT answer is why the f*ck would you want to? C# is M$ lame attempt to make a proprietary language. Why did the world need C# when Java is a perfectly good language? It didn't. .Net is garbage unless you want to write windows software, but that's lame....just sayin .
jfelectron said:
.Net is garbage unless you want to write windows software
Click to expand...
Click to collapse
Wait, you mean it's only useful for the exact thing it's ****ing intended for? Shocking.
jfelectron said:
Lol...the CORRECT answer is why the f*ck would you want to? C# is M$ lame attempt to make a proprietary language. Why did the world need C# when Java is a perfectly good language? It didn't. .Net is garbage unless you want to write windows software, but that's lame....just sayin .
Click to expand...
Click to collapse
There is just so much that can be gleaned from this post...
1) Obviously you've never actually tried developing in C#, because it's a complete pleasure to work with. Once you've used Visual Studio, it literally pains you to use anything else, because no other IDE comes close. I've used them all.
2) The entire point of this post is that .NET is not useless; The specification for .NET is completely open. And .NET is apparently good enough that people devoted their free time to develop Mono, thus enabling .NET development for Linux platforms. There's also Silverlight and ASP.NET which enable development of Web applications.
3) M$? Seriously? I remember back when the internet was invented and people thought that was funny. Now it's just kind of ignorant.
4) Refusing to open yourself up to multiple development technologies is a great way to find yourself irrelevant in a short amount of time.
5) Obvious troll is obvious. Sorry for feeding him.
bmxdad said:
I wonder if some of the new Kernels that are being created are having the same issue ... but Unity isn't using Mono from my quick skim of the site. And from my reading, mono has its own JIT runtime. It would be interesting to know if anyone has used it yet.
Click to expand...
Click to collapse
As a Unity3D dev, I can assure you that Unity3D is indeed powered by Mono. (With all the C# code I write every day it better be! )
That said: the 2.1-based kernels that are rolling out for the Fascinate do indeed suffer from this effect. In fact, Kaoscinate is unable to use Android's built in JIT interpreter due to this very effect. I was trying briefly to help him trace down the problem, but didn't have enough time to contribute. Maybe after our next game ships.
konistehrad , thanks for the reply.
I'm one of those stupid C# / Asp.Net developers, so its nice to know I'm not alone.
To jfelectron ... I wonder what the new windows phone is using .. O yea ... .Net and C# .... Go figure ...
bmxdad said:
I wonder if some of the new Kernels that are being created are having the same issue ... but Unity isn't using Mono from my quick skim of the site. And from my reading, mono has its own JIT runtime. It would be interesting to know if anyone has used it yet.
http://monodroid.net
Click to expand...
Click to collapse
In addition to Monodroid(which will require you pay a fairly hefty license fee for an independent developer) there is also Koush working on his own free open source port. This can be found here: http://www.koushikdutta.com/search/label/Mono
I'm not sure what all works in either implementation but I don't think either of them is ready for prime time yet.
I'll be in heaven when it is as I currently develop in VB.Net and swapping to eclipse is a nightmare, not having the .net framework is horrible as well because now I have to reinvent the wheel for dozens of objects.
Haha, I see the C# harpies have descended to inform us how wonderful their language is. It's not a question of how nice it is or isn't to use, it's a question of why fragment the development landscape with ANOTHER systems programming language that is a pretty blatant copy of Java. I don't think C# is fundamentally better than Java, so it just fragments minds away from common development goals and creates two independent efforts. This hurts everyone. It's fine to take an existing Mono/C# codebase and want to run it on Android. I just don't see why you would want to use something like MonoDroid to develop from scratch. The best apps will ALWAYS use the native APIs, there is just no reasonable way a secondary set of APIs that wrap native APIs will provide the same experience. The Evernote people were just talking about this, they have development teams for each platform, they don't look for write once run everywhere solutions because at the end of the day these deliver subpar experiences. If you don't know Java and Android APIs then learn them. Same for iOS. I'd do the same for WP7...that is if I wanted to work for a I decide the UI for you overlord.
I'm pretty sure that everyone participating constructively in this thread has mentioned that they're currently a .NET developer who has code written in VB/C#. It surprises me how much flak this thread is attracting when we're discussing tools and libraries that allow us to effectively and comfortably develop more software for the Android platform.
I develop mostly in Java, but language wise C# is way better. Java 7 still isn't getting lambdas, an when it does it's going to be really kludgy. Java language development has kind of died. Scala is pretty cool though. And Visual Studio is significantly better than eclipse, although IDEA is quite good too. I do like eclipse but it's just not as nice to work with and slower.
Yes ... C# is a redo of Java, kinda, but they moved it beyond what the Java was ... ***** about about MS all you want, they do have some good stuff. As for the API's, they're doors for us to use ... it all gets crunched down to 1's and 0's, so who cares how it gets there. Simplistic I know, but I'm sure you get what I'm saying.
They're already porting .net to the iPhone, so I was just wondering if anyone was interested ... didn't know I would touch a few nerves
jfelectron said:
Haha, I see the C# harpies have descended to inform us how wonderful their language is. It's not a question of how nice it is or isn't to use, it's a question of why fragment the development landscape with ANOTHER systems programming language that is a pretty blatant copy of Java. I don't think C# is fundamentally better than Java, so it just fragments minds away from common development goals and creates two independent efforts. This hurts everyone. It's fine to take an existing Mono/C# codebase and want to run it on Android. I just don't see why you would want to use something like MonoDroid to develop from scratch. The best apps will ALWAYS use the native APIs, there is just no reasonable way a secondary set of APIs that wrap native APIs will provide the same experience. The Evernote people were just talking about this, they have development teams for each platform, they don't look for write once run everywhere solutions because at the end of the day these deliver subpar experiences. If you don't know Java and Android APIs then learn them. Same for iOS. I'd do the same for WP7...that is if I wanted to work for a I decide the UI for you overlord.
Click to expand...
Click to collapse
By your logic why did anyone ever move away from programming in machine code? It was the purest and fastest executing code ever!
jfelectron said:
Haha, I see the C# harpies have descended to inform us how wonderful their language is. It's not a question of how nice it is or isn't to use, it's a question of why fragment the development landscape with ANOTHER systems programming language that is a pretty blatant copy of Java. I don't think C# is fundamentally better than Java, so it just fragments minds
Click to expand...
Click to collapse
Well, I didn't like J++. I felt the same way about C# until I did a test project with SharpDevelop. It really is a pleasure to use, most especially when coming from Java. Both languages also read very similarly and are easy to bounce between. In terms of fragmentation, it tends to come with the territory and might as well be accepted.
Learning something new isn't necessarily evil.
MS does decent development tools. CLR is open and in many aspects better than JVM. C# as language progressing way faster than java and puts it to shame way to often.
Read here from Koush. I guess that name rings a bell?
So, why not? Competition is great!
Unity and Mono
As a long time .Net developer I was drawn to Unity with significant suspicion of the Mono framework, I had always assumed that mono was going to be a slower, poor cousin of the official framework, but for my needs it has proved problem free on a range of Android devices. I chose Unity and Mono as a framework for game dev on android because I had a significant amount of code in c# from Windows Mobile 6 dev back in the day, and Unity had the 3d rendering capabilities I needed.
I'm using Unity game engine that uses Mono. C# is a great language that addresses many shortcomings in C++ and Java. However it is not possible to do everything in the mono-runtime on Android. C# to Java bridge is pain in the ass to implement.
Lets be realistic...
First came C and then that evolved to C++. Today the vast majority of operating systems are written in either C or C++. I have NO idea what Object C is (iOS) but I am sure it is evolved from one of these as well.
Java was an attempt to produce a machine generic programming language where the code runs on any machine. This language was based on C (C++?) and as such is very similar to C(c++) in many areas. However to reach this generic level all compiled code is compiled to a machine independent code and run on an interpreter. This code then is slightly slower than if the same program was written in C or C++. But can be run on MANY machines without porting which is not the case with C or C++.
C# was intended to be an extension of C++. After MS's failed attempt at J they put their energy behind C#. C# has now become a very viable C++ replacement on MS machines to a point it doesn't make much sense to write in anything else unless you are writing system level code for which C++ or C makes sense. Somewhere along the failure with MS's attempt at a Java clone they decided to make .NET a "standard" library which allowed Mono to become reality. C# has evolved over time to incorporate many of the great ideas that Java has included but have come up with many new ideas of their own. Realistically it comes down to which do you feel more comfortable programming in. Java or C#. C# with it's .Net libraries can be much easier to write for than Java simply because of the Libraries available.
On another note, I saw a product recently that looks very promising. dot42 is a product that appears to be looking to make a compiled C# program for Android. This by passes the need for the code interpreter and could potentially be as fast as C++ or C code for running on Android.
Hey everybody
I've been thinking about taking a computer programming class this semester to help start my knowledge in developing apps for android. My question, is which language tool would be the most helpful and why? Java, or C++? Right now, the college I am thinking about taking it through only has Java as an option (I want to take it online). I'm at the point in my college career where I need to decide a major because I have all of my general ed's out of the way, and I think taking a cheap class that might benefit me in multiple ways might be a good thing to do. Thanks in advance!
I'm new to programming but I do know a little bit I guess...someone may have a better answer. As I understand it, Java is based off C++ and based off of C. So there won't be much of a difference between the two, but either you will need to know some amount of C/C++ for the Java course, or they will teach you enough C/C++ for you to understand Java. I don't know how important it is to know all of the basics though, since the common languages today have much easier ways of coding basic things.
If it were my choice, I would have to decide if I wanted to learn the basics of coding, and then learn all the shortcuts that today's SDK's provide, or just learn everything current, and have a harder time understand how some things work.
Ironically, I've been learning Objective-C, despite owning only Android since the G1 first came out. It's my first programming language ever (although I do have background in HTML/CSS and what not, but that doesn't really count). I've got a good grasp on how everything works, but I never had quite the understanding of how everything worked until I started learning more about basic C. It may be the same for Java, in fact I imagine it is to some degree.
My opinion, take C/C++, and just learn a new syntax later.
Thanks for the reply! I will plan on taking C/C++, but that brings my to my next question: C or C++? I'm assuming C++ is just advanced C, so it would make sense to take C first, correct? Or am I missing something?
I guess you kind of answered my question in your post already . Looks like basic C should be the way to go for starters!
If your ultimate goal is to use C++ and/or Java, I wouldn't recommend learning C first. Java and C++ are object oriented languages, and C is not. If the first language you learn is C then it will simply teach you an approach that you'll have to 'unlearn' when you start on one of the other languages. A long time ago, C was often taught as a stepping stone to C++, but these days it is regarded as a bad idea that makes it harder to learn an OO language later.
I also don't see any benefit in learning C++ before Java, unless you really want to learn C++ for its own sake. Java is probably easier to learn than C++ so, if your real goal is to be a Java programmer, I'd start with Java.
Please don't get the impression that I've got anything against C or C++ by the way. I've used all the languages mentioned (as well as C#) and, if anything, prefer to use C++.
so whats the advantage of becoming C++ programmer over Java Programmer and vise versa ?
how about Visual basic?
arvinghost said:
so whats the advantage of becoming C++ programmer over Java Programmer and vise versa ?
how about Visual basic?
Click to expand...
Click to collapse
The platforms that are used by each. Java is a very versatile language, and is used in almost all mobile platforms. C++ is mainly used for desktop and stand-alone applications.
Truthfully, it doesn't matter which you learn first. The concepts and theories are the same in both, the only thing you have to re-learn is the syntax and specifics.
That being said, don't learn visual basic first, it is vastly different from the other two.
arvinghost said:
so whats the advantage of becoming C++ programmer over Java Programmer and vise versa ?
how about Visual basic?
Click to expand...
Click to collapse
I'm sure that Google will provide lots of info on Java vs C++ comparisons, so I'll only mention a couple of things! C++ can be more powerful and versatile, but is easier to screw up. It also provides better performance (since it is a compiled language) but, these days, the speed of the code is often less important than the speed of data access or comms. Both languages are theoretically cross platform, but in practice Java achieves that better than C++ (usually). Java has a better set of standard libraries - in C++ the libraries for things like user interfaces are usually platform-specific. On the other hand, C++ (and C#) gives you access to Microsoft's Visual Studio IDE and the .NET libraries, which are still by far the best IMHO although, clearly, are pretty much restricted to Windows development.
In more pragmatic terms, I've found both languages to be in more or less the same demand by employers. There's a lot of old legacy C++ code out there, however, so I'd say that, as a Java programmer, you've a better chance of working on nice new projects rather than maintaining ancient software! To be honest, I don't know which way I'd go if I was starting out now - sorry
Oh, and I can't think of a single reason to learn Visual Basic - it's totally different to everything else, not as powerful, and not much easier to learn than the vastly superior C# or Java.
Yea, gcogger has better answers than I do Hope I helped at all. Thanks gcogger
Honestly I prefer straight C for a lot of things because it has the most strict code. It is so strict that code in and of itself is easier to follow. C++ being a superset of C is nice, and of course it adds OOP functionality. I just think C++ can get a bit too confusing sometimes, and I am always learning about new ways to do things that I never knew before.
Java is quite the opposite with syntax and garbage collection (which I am generally not a fan of outside of scripting languages). It is easier to use OOP in Java than C++ sometimes you forget about performance that way. You start initialising objects left and right, forgetting about their overhead and faster, more creative ways to do things.
I've started taking up java and would like to try my hands at android.
I'm going into computer Science at my university and have been taking a Java programming class this semester.
I kinda assumed that I was learning the correct syntax needed to program in Android since I thought it was mostly java based, however ever project we've done (and will do, according to the professor) was based on importing a java library called objectdraw.
I guess my question is weather or not I can import objectdraw into an android app project.
or is there an android version?
any help would be greatly appreciated.
What parts of the objectdraw library do you generally use? I'll be happy to give you some pointers on the Android equivalents (if you don't get an answer to your question)
well, I'm pretty new at it all,
so far we've been creating objects such as rect tangles (framedRect) and other shapes.
asking you to define all of them for me would be a pain for you.
but you did answer my question which was whether or not I would simply be able to use the same commands.
any other tips for someone who's just beginning?
I'd recommend digging through the sample apps that come with the Android SDK. You'll probably find a lot of useful drawing stuff in there, and one or two of them could be a good base project to start from when writing your own apps.
Cause I checked its system specs and its not taxing at all on most devices. Can any of you heavenly xda developers figure this out
wait, are you talking about the Windows XP version?
if so, someone would have to start from scratch to create it. first of all, you can't just port a game with the click of a button because of the different Java languages (C#, C++, etc.) and the fact that you would have to map out touchscreen itself, make it fit a smaller screen , and make use of hardware buttons and similar things.
actually, it would be much easier to start from scratch than use a prexisting code from what i've heard...
i'm not a dev (well, i'm learning!) but that is what i do know from experience and things that I've read.
but yeah, im there with you... there's a few iOS apps that i would kill to have on my android ;3