Go to Post As usual this was the programmers fault. - Swampdude [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
View Poll Results: Should first switch back to Pbasic?
Yes 2 2.99%
No 63 94.03%
Not Sure 2 2.99%
Voters: 67. You may not vote on this poll

Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-03-2004, 23:07
10intheCrunch's Avatar
10intheCrunch 10intheCrunch is offline
Who's John V-Neun?
AKA: Alex Baxter
None #0254 (Cheesy Poofs)
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2004
Location: San Jose, CA
Posts: 129
10intheCrunch is a jewel in the rough10intheCrunch is a jewel in the rough10intheCrunch is a jewel in the rough10intheCrunch is a jewel in the rough
Send a message via AIM to 10intheCrunch
Re: C Programing language. Is it the devil?

The problem with BASIC is that...well it really isn't a *real* language. The technology behind it is archaic, and stripped down besides. C is much more powerful, I believe easier to use, and certainly more applicable to real technology development than BASIC. I think its great that we can use C now. Now I just have to get out of MPLab...wonder if theres an equivalent in C for Java's Eclipse...
__________________
~Alex Baxter
Programming, Arms operation, Team 254
  #2   Spotlight this post!  
Unread 14-03-2004, 23:21
velocipenguin velocipenguin is offline
Registered User
#0246 (Overclocked)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Boston, MA
Posts: 77
velocipenguin is on a distinguished road
Send a message via AIM to velocipenguin
Re: C Programing language. Is it the devil?

PBASIC is great if you're playing around with simple microcontroller experiments in your basement. It's not at all well-suited to controlling large robots that need fairly sophisticated navigation and control algorithms in order to function optimally. PBASIC has its uses, but I don't think they include FIRST robots.
  #3   Spotlight this post!  
Unread 15-03-2004, 00:32
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: C Programing language. Is it the devil?

C is much better for students. It is a main stream language (probably the most common one) while PBASIC is a stripped down version of BASIC made by Parrallax. Of the 6 programming HS students on the team, 4 had already programmed in C (or C++) in school so I didn't have to teach them the language.

No student who has ever entered our program had ever heard of PBASIC before. Only one engineer on the team ever programmed in it before (he was a pro but he really wanted to use C like in the Atmel processors he uses at work). After he left in 2002, I had to teach everyone (students and a couple new mentors) PBASIC, because I had done a little programming in my rookie year. Some people had QBASIC or Visual BASIC before so most of my time was spent teaching limitations of the code (no function calls or signed math) and its inefficient syntax (more goto statements then I ever want to see again). It should be easier for teams to find mentors with C experience since it is such a common language.

Along with the increased power of C comes increased responsibly. There are many new ways to shoot yourself in the foot. Projects contain over a dozen files (and include many more) instead of 1-6 (depending on how many 2K banks you used). The biggest problem with C this year is the MPLAB complier and all of its bugs (yes I know I can use something else but that is not easy when you have a big programming team)

Overall programming in C is a more valuable learning experience for the students because they are likely to use it again in college and their careers. C will probably continue to be widely used in the future for low level applications. Basically all new languages are object-oriented or intended for web use. None of these languages are appropriate for a procedure oriented system like a robot. C is a superior language to PBASIC so FIRST should keep it. C is going to be around for a long time, so learn to like it, or start building a PBASIC to C converter. (I think Mike Soukup built a C to PBASIC converter, maybe it will work in reverse ).
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"

Last edited by The Lucas : 15-03-2004 at 00:37.
  #4   Spotlight this post!  
Unread 15-03-2004, 06:03
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: C Programing language. Is it the devil?

I agree with the last post by the Lucas. C is much more sutiable for someone who may eventually go on to do enginneering. It is a much more modern programming language, unlike BASIC, which only supports things like functions as clumsy after-thoughts.
__________________

  #5   Spotlight this post!  
Unread 16-03-2004, 20:50
Guest
 
Posts: n/a
Re: C Programing language. Is it the devil?

Why I would pick C over PBasic for anything:

1. From a technical standpoint, C can do far more than PBasic could ever do. You simply can't have as much control over the robot with PBasic as you can with C. PBasic's structure is also very akwardly construed when compared to the majority of languages. We wrote algorithms on our robot this year that we could never have dreamed of putting on last year's PBasic bot, only because we couldn't write them in PBasic.
2. C is the "real programmers'" language (including C++, also). I highly doubt that many professional programmers use PBasic to create real world projects. Remember, FIRST is all about us pursuing careers in science/tech/engineering/etc. so why wouldn't they pick a language that we can use in our careers?
3. From a practical standpoint: Learning PBasic and then trying to use your knowledge as a stepping stone to other languages is very hard. If you know C, however, it is simple to learn C++ or Java, which are far more widely used than PBasic.
  #6   Spotlight this post!  
Unread 18-03-2004, 23:47
jhnphm jhnphm is offline
Registered User
#0614
Team Role: Programmer
 
Join Date: Mar 2004
Rookie Year: 2003
Location: Fairfax, VA
Posts: 23
jhnphm is an unknown quantity at this point
Re: C Programing language. Is it the devil?

Quote:
Originally Posted by 10intheCrunch
The problem with BASIC is that...well it really isn't a *real* language. The technology behind it is archaic, and stripped down besides. C is much more powerful, I believe easier to use, and certainly more applicable to real technology development than BASIC. I think its great that we can use C now. Now I just have to get out of MPLab...wonder if theres an equivalent in C for Java's Eclipse...
Eclipse supports C/C++.

But IDEs for losers. Real programmers use Vi
  #7   Spotlight this post!  
Unread 19-03-2004, 22:26
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: C Programing language. Is it the devil?

Quote:
Originally Posted by jhnphm
But IDEs for losers. Real programmers use Vi
hear hear
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is your most prefered programming language? Hailfire Programming 156 19-01-2005 21:42
PBASIC language syntax WizardOfAz Programming 14 30-04-2003 10:23
Team 1018 Devil 1 ...dateline 4 AM 2-20-03 Bob Steele Robot Showcase 1 20-02-2003 18:17
Who is doing the programing for team 61 Walter_Jr Programming 5 25-01-2003 00:31
TI programming using Z80 assembly language Jeff Wong Chit-Chat 1 07-06-2001 01:27


All times are GMT -5. The time now is 15:43.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi