Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Development & Programming > Programming Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Programming Talk
This forum is for all programming questions.
The questions do not have to be directly related to Ubuntu and any programming language is allowed.

 
Thread Tools Display Modes
Old February 21st, 2006   #1
grim918
Way Too Much Ubuntu
 
Join Date: Nov 2005
Location: Los Angeles
Beans: 245
Ubuntu 6.06
Assembly vs. C++

I'm a beginner programmer, I mostly work with PHP, but now i want to learn something else. I want to learn Assembly but everyone that I know tells me that it will be a waste of time and that I should just learn C++. I would like to know what are some of the advantages of programming in assembly, if there is any, over programming in C++. My goal is to eventually learn how to program some useful applications like programming a cd burner. I know that I am far,far away from programming a project like that but my goal right now is to start learning a language that has the capability of doing something like that.
grim918 is offline   Reply With Quote
Old February 21st, 2006   #2
ignorance
A Carafe of Ubuntu
 
Join Date: Jan 2006
Beans: 100
Ubuntu Breezy 5.10
Re: Assembly vs. C++

i don't know what you can do with c++, but i can tell you if your going to learn assembly than i sugest you start learning how ram and such works. assembly mainly uses your registery's.

but here is a nice link towards assembly programming.
http://la.kmv.ru/
ignorance is offline   Reply With Quote
Old February 21st, 2006   #3
simon_is_learning
Just Give Me the Beans!
 
Join Date: Nov 2005
Location: Linköping, Sweden
Beans: 74
Xubuntu
Re: Assembly vs. C++

Well the advantages of C++ vs Assembly is for me the ease of starting.

I have no experience with C++, but where I am a trainee we program PIC's with assebmly. And the master in programing has his background in C++.

So I think it's much more easy to start with C++ becouse all you need is a computer and a keyboard (and some brain). For assembly you have to get the code out of the box. You'll need a PIC (programmable integrated circuit) and electronical skills.

If you want to learn that, maybe you'll better search up someone that already has it, maybe a company nearby.
simon_is_learning is offline   Reply With Quote
Old February 21st, 2006   #4
Iandefor
Fresh Brewed Ubuntu
 
Join Date: Sep 2005
Location: Bellingham, WA
Beans: 1,532
Ubuntu Jaunty Jackalope (testing)
Re: Assembly vs. C++

Assembly is pretty dated and not all that applicable. I would suggest C++.
__________________
This space intentionally left blank.
Iandefor is offline   Reply With Quote
Old February 21st, 2006   #5
endersshadow
Dipped in Ubuntu
 
endersshadow's Avatar
 
Join Date: Oct 2005
Location: Dallas
Beans: 616
Ubuntu 7.04 Feisty Fawn
Re: Assembly vs. C++

Try Lisp!! Just kidding, of course.

You should figure out what you want to do...I would suggest C, or Python...but if it's between Assembly and C++, go C++
endersshadow is offline   Reply With Quote
Old February 25th, 2006   #6
lcg
Gee! These Aren't Roasted!
 
lcg's Avatar
 
Join Date: Oct 2005
Location: Germany
Beans: 162
Ubuntu 7.04 Feisty Fawn
Re: Assembly vs. C++

Quote:
Originally Posted by endersshadow
Try Lisp!! Just kidding, of course.
Actually, LISP (or Scheme) were and still are part of computer science at some universities. And the concepts and possibilities of functional programming are pretty cool, IMO. You probably don't use LISP or Scheme in the software engineering world, but the principles can be pretty useful (just like nobody speaks Latin nowadays, but the techniques you learn with it can be useful in a variety of fields).

Though both LISP and Scheme seem pretty strange at first, I can only recommend a class about functional programming (not for a beginner programmer, however).

Lars
__________________
Anyone who attempts to generate random numbers by deterministic means
is, of course, living in a state of sin.
John von Neumann
lcg is offline   Reply With Quote
Old February 21st, 2006   #7
simon_is_learning
Just Give Me the Beans!
 
Join Date: Nov 2005
Location: Linköping, Sweden
Beans: 74
Xubuntu
Re: Assembly vs. C++

Quote:
Originally Posted by Iandefor
Assembly is pretty dated and not all that applicable. I would suggest C++.
well.. depends on what you want.
If you want to control the lights from your computer.
Then assembly can come handy in place.

i still recommend at first C++, then when you get the "thinking", start with assembly. But if you have some cash, then you can get proton IDE
http://www.picbasic.org/proton_ide.php
it's for windows and it's the only one I know.

then you write in "basic" and it "translates" it to assembly/hex

so some "Basic" knowledge could be good to.
simon_is_learning is offline   Reply With Quote
Old February 21st, 2006   #8
Spark*
Gee! These Aren't Roasted!
 
Join Date: Feb 2005
Beans: 55
Re: Assembly vs. C++

Actually, PHP would probably be better suited to program a CD burner than assembly... I would suggest you to learn Python or C# if you are mainly interested in GUI programming and then get a grip of the most common GUI libraries. C and C++ are good choices for low level libraries or speed critical components. C probably more so than C++ because of the ease of creating language bindings for it.
Spark* is offline   Reply With Quote
Old February 21st, 2006   #9
LordHunter317
Tall Cafè Ubuntu
 
Join Date: Nov 2004
Beans: 2,614
Re: Assembly vs. C++

Quote:
Originally Posted by grim918
I'm a beginner programmer, I mostly work with PHP, but now i want to learn something else. I want to learn Assembly but everyone that I know tells me that it will be a waste of time
I wouldn't bother learning assembly unless you intend to do hardware work or have a need for it. Then it's very useful, but it's a "niche" skill in the sense the carryover is almost zero.

When you need to know it, it's useful. When you don't, it's useless.

Quote:
I would like to know what are some of the advantages of programming in assembly, if there is any, over programming in C++.
You're closer to the hardware.

Quote:
My goal is to eventually learn how to program some useful applications like programming a cd burner.
If you mean like cdrecord, you don't need assembly to do that. If you mean the kernel internals cdrecord uses, then you need to know C, not C++.
LordHunter317 is offline   Reply With Quote
Old February 21st, 2006   #10
Swab
Skinny Soy Caramel Ubuntu
 
Swab's Avatar
 
Join Date: Oct 2004
Location: Scotland
Beans: 636
Ubuntu 8.10 Intrepid Ibex
Re: Assembly vs. C++

Learning assembly will help you understand what is really going on inside your computer... There is a great free book called Programming from the ground up (pdf) Check it out!
__________________
Join the Ubuntu Forums Football League... please!! http://www.xperteleven.com/?lid=113057
Swab is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:37 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry