Page 2 of 2

Re: Which language to use?

Posted: Mon Jul 14, 2014 12:29 pm
by Shadow_7
Assembler does fall short when you throw an operating system into the mix. Various protect modes and stuff can make it slower than a C program which can be adjusted by the compiler to play well with the destination environment. Assembler is still a useful option, as a two pass compile is fast. And the resulting program is small. But mostly a waste of resources to use commercially except in a few niche arenas.

Re: Which language to use?

Posted: Fri Jul 25, 2014 12:01 pm
by wernert
I was also considering this very same question recently. For me the alternatives was mainly these:

1. .NET using Mono. This looked attractive since my normal preferred programming language is C#. However I got the impression there is not a lot of folks unsing it and I was worried about getting good examples or help when I get stuck with something.

2. Python. There is certainly lots of examples on the web, but never really used Python much until now and wasn't too eager to get started now either.

3. C++. I chose this option for the following reasons:
a. I'm already familiar with the syntax.
b. Lots of online support and examples
c. It will give the best performance
d. I can use Visual Studio on a PC to test parts of the code with easy debugging etc.
e. I am quite familiar with Arduino and writing libraries for it. And it would be easy to re-use my existing Arduino code.

I presume the choice is different for everybody. This is just my reasons for my choice. Hope it is helpfull.

Re: Which language to use?

Posted: Mon Jul 28, 2014 7:11 am
by jeanleflambeur
I can recommend you Lua or python as a scripting language. Lua is very elegant, smart and fast and has tons of libraries. Python is very popular so it has many libraries (more than lua).
For native code I tend to always recommend C++11 for the following reasons:
- speed of development: boost libraries and stl cover most libs and algorithms you'll need, lambdas are great
- type safety, const and the rest of things that make sure your code stays correct.
- templates. It's a tool like any other and they can be abused, sure. Many devs hate them, but when used properly can simplify code a lot and increase productivity and runtime speed.
C++ is big indeed, but it's well structured, consistent, and becomes very intuitive once you dive into it.

I don't really recommend object oriented programming though. Today it makes more sense to pick up other techniques - like data oriented design. OOP makes it very hard to reason about data/state in multithreaded scenarios.

What I recommend is to try to write as little code as possible by preferring existing libs and algorithms over hand-written code. This will make you very productive and limit bugs. Check out this talk from Sean Parent: http://channel9.msdn.com/Events/GoingNa ... -Seasoning
The whole GoingNative series is a great learning resource.

Also, there's Haskell. :)

Re: Which language to use?

Posted: Wed May 04, 2016 11:29 am
by piwalebabu
Any suggestions for me please. I am very new to Raspberry Pi. My application includes the following:
1. basic user interface for a touch screen module including buttons, text boxes, slider etc.
2. a button may put user to a new window, so need to keep that in mind.
3. basic data transfer across the network to my windows application or something like arduino.
4. graphical representation of data.
5. access to some notepad files in order to store data.

Please can someone advice me the best platform/language to program in...

Re: Which language to use?

Posted: Wed May 04, 2016 2:25 pm
by topguy
piwalebabu wrote: Please can someone advice me the best platform/language to program in...
The best language to program something in is the language you know.
If you don't know any programming languages then the question become, "which languate is the best to learn".

A language that is fairly easy to learn and can do all the things you have specified is Python.

Re: Which language to use?

Posted: Wed May 04, 2016 2:48 pm
by MarkHaysHarris777
topguy wrote:
piwalebabu wrote: Please can someone advice me the best platform/language to program in...
A language that is fairly easy to learn and can do all the things you have specified is Python.
I concur. This is the the book!

Also, check out this link.

... and of course there are courses on-line.

Go Python3
:mrgreen:

Re: Which language to use?

Posted: Wed May 04, 2016 5:14 pm
by piwalebabu
topguy wrote:
piwalebabu wrote: Please can someone advice me the best platform/language to program in...
The best language to program something in is the language you know.
If you don't know any programming languages then the question become, "which languate is the best to learn".

A language that is fairly easy to learn and can do all the things you have specified is Python.
Thanks. Even though I know C/C++ quite well, but I would like to try out Python. It seems Python 3.4.2 Shell is good?

Re: Which language to use?

Posted: Wed May 04, 2016 5:17 pm
by piwalebabu
MarkHaysHarris777 wrote:
topguy wrote:
piwalebabu wrote: Please can someone advice me the best platform/language to program in...
A language that is fairly easy to learn and can do all the things you have specified is Python.
I concur. This is the the book!

Also, check out this link.

... and of course there are courses on-line.

Go Python3
:mrgreen:

Thanks for the help. I would try out Python.