Pages: [1]   Go Down
Author Topic: Programming for newbies?  (Read 1445 times)
0 Members and 1 Guest are viewing this topic.
Turku
Offline Offline
Full Member
***
Karma: 1
Posts: 229
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is there some other languages than C++ available for Arduino? I personally can use C++ but people often ask for an easy way to program some simple things. And C++ for an absolute beginner is quite a lot, expecially if you want a delay or something like that.

Something like for instance Labview where you draw what you want.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 639
Posts: 34724
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is there some other languages than C++ available for Arduino?
No.

Quote
for an absolute beginner is quite a lot, expecially if you want a delay
Come off it, what is hard about
Delay(1000) ?
Logged

UK
Offline Offline
Tesla Member
***
Karma: 140
Posts: 7960
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

And C++ for an absolute beginner is quite a lot

It would be very off-putting if the newcomer was presented with a 2 inch thick C++ textbook and told "You're not getting an Arduino until you know all that".

But if you start with an Arduino and play around with the many examples that come with the IDE you will soon learn enough C++ without even noticing it.

The Arduino is great for learning-by-doing.

...R
Logged

Turku
Offline Offline
Full Member
***
Karma: 1
Posts: 229
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well
It looks like there are not many substitutes even for Windows. Pylabs is one I found. https://code.google.com/p/pylab-works/
Using Labview was like children's play. (That's what Windows is: Children's toys?)
And compare it to this:
Code:
template<class T, size_t N>
size_t array_length(T (&arr)[N])
{
    return N;
}
Above is a example from Net. I have idea what it does, except nightmares.
« Last Edit: August 19, 2014, 01:11:59 pm by LMI » Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 227
Posts: 14007
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

there is also a BASIC for atmel processors, check the ELEKTOR magazine, they promote it on a regular basis.
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Full Member
***
Karma: 9
Posts: 226
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Programming microcontrollers in LabView - now that would give me nightmares!

For a beginner who never wants a career in embedded programming, then a tool like LabView might be easy way to program. Not LabView itself obviously, because even the student edition is $100s.

For a beginner who does want a career in embedded software, the Arduino IDE is actually a good place to start, it is a lot like professional tools.
Logged

Please don't PM me asking for help. Ask questions in the forum.

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 639
Posts: 34724
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Above is a example from Net. I have idea what it does, except nightmares.
You can get all sorts of crap from the net. They even have C obfuscation competitions 
http://www.ioccc.org/

Just because C can be obscure and difficult to follow it does not mean it has to be.
Logged

UK
Offline Offline
Tesla Member
***
Karma: 140
Posts: 7960
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
template<class T, size_t N>
size_t array_length(T (&arr)[N])
{
    return N;
}
Above is a example from Net. I have idea what it does, except nightmares.

There are thousands of great reasons and great examples for people who need to justify avoiding something.

On the other hand if you really do want to do stuff just get an Arduino and get started.

...R
Logged

Turku
Offline Offline
Full Member
***
Karma: 1
Posts: 229
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It is difficult to recommend C(++) to someone who has newer really programmed and does not want to start now. But many people know about PLCs , relays and so on. They still hope to do some basic functions, like delays and comparisons. For those who need it using microprocessors should be as easy as it gets.
Logged

Offline Offline
Full Member
***
Karma: 9
Posts: 226
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It is difficult to recommend C(++) to someone who has newer really programmed and does not want to start now. But many people know about PLCs , relays and so on. They still hope to do some basic functions, like delays and comparisons. For those who need it using microprocessors should be as easy as it gets.

I've seen Labview systems in production sites and they are horrible. Expensive and unmaintainable.

To be honest, I think it is the worst way to teach programming. You would never be able to run anything like on that on an Arduino anyway.




Logged

Please don't PM me asking for help. Ask questions in the forum.

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 639
Posts: 34724
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I've seen Labview systems in production sites and they are horrible. Expensive and unmaintainable.

The bottom line is that anyone can write crap in any language. If you don't do it correctly LabView becomes a write only language.
Logged

UK
Offline Offline
Tesla Member
***
Karma: 140
Posts: 7960
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

becomes a write only language.

Plenty of C++ examples of that on this Forum  smiley

...R
Logged

Turku
Offline Offline
Full Member
***
Karma: 1
Posts: 229
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well. I have done some write only software myself, too. Sometimes it happens overnight. I write something and the next day I have no idea what it is and why I did it . Database GUIs for instance.

Yes. I too have heard stories about awful Labview sw. But I still think that for simple things it is a good choice.
Logged

UK
Offline Offline
Tesla Member
***
Karma: 140
Posts: 7960
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It is difficult to recommend C(++) to someone who has newer really programmed and does not want to start now.

So don't recommend C/C++ - just recommend Arduino.

...R
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 639
Posts: 34724
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
has newer really programmed and does not want to start now.
Fair enough. In that case I would recomend him to take up knitting or stamp collecting.
Logged

Pages: [1]   Go Up
Jump to: