2

Author Topic: What is the preferred language to code with?  (Read 1440 times)

0 Members and 1 Guest are viewing this topic.

Offline SchedaTopic starter

  • Jr. Member
  • **
  • Posts: 24
  • Helpful? 0
What is the preferred language to code with?
« on: July 04, 2008, 01:14:21 PM »
Hey all,

First off, I'm by far not new to programming, so I understand the concepts, however up until now it's all been web based languages. So, having no experience with things like C, C++, C# and BASIC, what would you say is the preferred language to code your bots with?

It's my understanding that it really all depends on the controller that you get, but I could be totally wrong on that.

Thanks for any advice on this topic that you give.

Offline izua

  • Supreme Robot
  • *****
  • Posts: 682
  • Helpful? 0
Re: What is the preferred language to code with?
« Reply #1 on: July 04, 2008, 02:54:21 PM »
Hey, and welcome to the forums.
It also depends on what you have to work with. If you have only a java interpreter for your exotic microcontroller, well, that's what you are going to use, ain't it?

I use avrgcc (c++) for atmega/attiny and oshonsoft basic/asm for pic16.
Check out my homepage for in depth tutorials on microcontrollers and electronics.

Offline JesseWelling

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 707
  • Helpful? 0
  • Only You Can Build A Robot!
Re: What is the preferred language to code with?
« Reply #2 on: July 04, 2008, 03:53:57 PM »
Over all I'd say go for C. It's the most wide spread in terms of usage. It also represents the underlying machine code better than any other language, besides assembly. Object Oriented Programing can be done in C if you want to as well, you just have to follow your own rules. If you are good at C++ you can probably already manage this. And if you absolutely need C++ (Inheritance, Templates, ect) in a micro-controller environment, you probably need to go with something beefier than a μC for processing power, and just use the μC for i/o.

I use avrgcc for regular C on atmegas at home, and Tasking for regular C on ST10s at work.
« Last Edit: July 04, 2008, 03:55:16 PM by JesseWelling »

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,660
  • Helpful? 169
    • Society of Robots
Re: What is the preferred language to code with?
« Reply #3 on: July 14, 2008, 11:33:08 AM »
This question has probably been asked 40 times already ;)
http://www.societyofrobots.com/robot_faq.shtml#robot_language

Remember to always search before asking! :P

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,653
  • Helpful? 21
  • narobo.com
Re: What is the preferred language to code with?
« Reply #4 on: July 14, 2008, 11:44:05 AM »
definitely C
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

 


Get Your Ad Here