Go Down

Topic: Programming for newbies? (Read 1 time) previous topic - next topic

LMI

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.

Grumpy_Mike

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) ?

Robin2


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

LMI

#3
Aug 19, 2014, 08:10 pm Last Edit: Aug 19, 2014, 08:11 pm by LMI Reason: 1
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: [Select]
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.

robtillaart

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

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

bobcousins

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.
Please don't PM me asking for help. Ask questions in the forum.

Grumpy_Mike

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.

Robin2


Code: [Select]
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

LMI

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.

bobcousins


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.




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

Grumpy_Mike

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.

Robin2


becomes a write only language.


Plenty of C++ examples of that on this Forum  :)

...R

LMI

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.

Robin2


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

Grumpy_Mike

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.

Go Up