South Texas
Offline
Newbie
Karma: 0
Posts: 29
|
 |
« on: March 07, 2012, 11:02:58 pm » |
First dip into the programming language and was wondering which language Arduino supports
|
|
|
|
|
Logged
|
Certified Beginner
|
|
|
|
North Queensland, Australia
Offline
Edison Member
Karma: 30
Posts: 1168
|
 |
« Reply #1 on: March 07, 2012, 11:07:10 pm » |
It is C++, which is a super-set of C
BASIC code wont work.
C++ allows inline asm too.
|
|
|
|
|
Logged
|
|
|
|
|
South Texas
Offline
Newbie
Karma: 0
Posts: 29
|
 |
« Reply #2 on: March 07, 2012, 11:11:39 pm » |
What is inline asm?
|
|
|
|
|
Logged
|
Certified Beginner
|
|
|
|
North Queensland, Australia
Offline
Edison Member
Karma: 30
Posts: 1168
|
 |
« Reply #3 on: March 07, 2012, 11:15:14 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
SF Bay Area (USA)
Offline
Faraday Member
Karma: 78
Posts: 5453
Strongly opinionated, but not official!
|
 |
« Reply #4 on: March 07, 2012, 11:20:01 pm » |
The Arduino environment provides essentially "C" programming capabilities. The Arduino hardware is capable of running any number of languages, including BASIC, given suitable software on the host side, or some kind of interpreter loaded into the CPU. One interpreter providing a BASIC-like syntax is BitlashI'm not aware of any BASIC vendors (or OSSW) that specifically provides Arduino HW support for their system...
|
|
|
|
|
Logged
|
|
|
|
|
South Texas
Offline
Newbie
Karma: 0
Posts: 29
|
 |
« Reply #5 on: March 08, 2012, 07:05:41 am » |
If I want to do this learning process of learning the languages I'd programming do I need to learn them in some sort of order from BASIC to C or do I just need to learn that one language
|
|
|
|
|
Logged
|
Certified Beginner
|
|
|
|
|
|
New Jersey
Offline
Edison Member
Karma: 24
Posts: 2345
|
 |
« Reply #7 on: March 08, 2012, 07:13:31 am » |
The Arduino is programmed in C/C++. You need not learn BASIC to use it.
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6806
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #8 on: March 08, 2012, 07:22:10 am » |
Well as the name implies BASIC is easier to learn. At the risk of steering you away from Arduino the DuinoMite boards http://olimex.com/dev/index.htmlCan be programmed directly in BASIC. However if you learn C that's a way more powerful language than any BASIC you are likely to find on a $35 board, C is harder to learn but the process is simplified a lot by using an Arduino and there are 100s of people on this forum that will help. ______ Rob
|
|
|
|
|
Logged
|
|
|
|
|
SF Bay Area (USA)
Offline
Faraday Member
Karma: 78
Posts: 5453
Strongly opinionated, but not official!
|
 |
« Reply #9 on: March 08, 2012, 01:13:00 pm » |
as the name implies BASIC is easier to learn. I don't actually believe that to be true. Originally, an interactive BASIC interpreter was MUCH easier to use than a batch FORTRAN or COBOL compiler. And most BASICs probably give you better error messages when you've done something wrong (a particular weakness of C/C++.) But overall "easier" ?? Nah...
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6806
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #10 on: March 08, 2012, 04:53:04 pm » |
interactive BASIC interpreter That's the sort of thing you get with the DuinoMite-style boards and I think that would be easier than the way we used to learn C, ie with no forums, a cross-compiler, and a screen with main() { } written on it. Hmmm now what? But yes these days with the Arduino you don't have that problem as there are many examples that work out of the box so it's easy to start with say the blink example and play with it to get an idea of how C works. Then work your way up asking questions along the way. Bottom line then, learn C. PS: has the original post changed, it no longer mentions BASIC. _____ Rob
|
|
|
|
« Last Edit: March 08, 2012, 04:55:39 pm by Graynomad »
|
Logged
|
|
|
|
|
Hertfordshire, U.K.
Offline
Jr. Member
Karma: 0
Posts: 61
|
 |
« Reply #11 on: March 08, 2012, 05:46:16 pm » |
Who was the computer scientist (Donald Knuth?) that said that someone that learned BASIC as a first language was forever ruined for becoming a 'proper' programmer!
Jim
|
|
|
|
|
Logged
|
|
|
|
|
SF Bay Area (USA)
Offline
Faraday Member
Karma: 78
Posts: 5453
Strongly opinionated, but not official!
|
 |
« Reply #12 on: March 09, 2012, 01:43:00 am » |
Dijkstra. In 1975. I doubt that you'll find a modern BASIC implementation that is quite as bad as the BASICs of 1975. And he seems to have been rather equally dismayed by most of the other languages of the time. Except ALGOL... http://en.wikiquote.org/wiki/Edsger_W._Dijkstra(Hmm. I'll bet that there is less Algol written today than Fortran or Cobol or BASIC. But that's because many newer better languages were derived from Algol, but didn't keep the name...)
|
|
|
|
|
Logged
|
|
|
|
|
Monterrey, N.L. México
Offline
Full Member
Karma: 1
Posts: 154
Model Railroading & Arduino are Fun
|
 |
« Reply #13 on: March 09, 2012, 02:01:14 am » |
Circa 1970 Did anybody hear about or use Snobol. That was a cool language for manipulating strings by using "pattern matching". You can still get it for free as Snobol4, a version for the PC, he, he. 
|
|
|
|
|
Logged
|
|
|
|
|
SF Bay Area (USA)
Offline
Faraday Member
Karma: 78
Posts: 5453
Strongly opinionated, but not official!
|
 |
« Reply #14 on: March 09, 2012, 02:03:13 am » |
I heard of it, but I preferred TECO. :-)
|
|
|
|
|
Logged
|
|
|
|
|
|