Wolvix Forums
August 01, 2010, 02:14:38 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Wolvix GNU/Linux 2.0.0 Beta2 is released
 
   Home   Help Search Login Register  
Pages: [1] 2   Go Down
  Print  
Author Topic: Learning C++  (Read 3265 times)
Wolvrik
Gamma Wolf
***
Posts: 180



View Profile
« on: April 09, 2009, 05:08:39 PM »

I used to work with COBOL a long time ago.  I am thinking it might be fun to learn a little C++.  What is the best program for that in Wolvix?  What (programming) language is most useful for working with Linux?  Any recommendations?
Logged

Howl At The Moon
oithona
Developer
Alpha Wolf
*****
Posts: 751



View Profile
« Reply #1 on: April 09, 2009, 05:13:17 PM »

I used to work with COBOL a long time ago. 

Wow, wolvrik you must be nearly as old as me!
Wouldn't recommend C++ as a first language (unless you want to do some systems programming), and cobol certainly won't prepare you for it.
Try Python - or failing that perl or ruby.
Logged

"How should I know if it works? That's what beta testers are for. I only coded it." (Attributed to Linus Torvalds, somewhere in a posting)
Wolven
Administrator
Werewolf
*****
Posts: 1472



View Profile WWW
« Reply #2 on: April 09, 2009, 05:15:53 PM »

HEY! That was post 667.   Angry

You used to be cool oithona, you used to be evil. Now look at you...

Now, seriously. I'm not much of a programmer, but I know oithona likes to work in SciTE. I like medit as my text editor and Geany is in the repo. I guess real men would use either Vim or perhaps Emacs.

Cue editor flame war...
« Last Edit: April 09, 2009, 05:19:37 PM by Wolven » Logged

Give a man Debian, and he'll learn Debian. Give a man SUSE, and he'll learn SUSE. But give a man Slackware, and he'll learn Linux
oithona
Developer
Alpha Wolf
*****
Posts: 751



View Profile
« Reply #3 on: April 09, 2009, 05:19:29 PM »

D'oh!!!

Edit: Real men use ed !!!
« Last Edit: April 09, 2009, 05:21:01 PM by oithona » Logged

"How should I know if it works? That's what beta testers are for. I only coded it." (Attributed to Linus Torvalds, somewhere in a posting)
brotherinbluejeans
Gamma Wolf
***
Posts: 170



View Profile
« Reply #4 on: April 09, 2009, 05:53:15 PM »

Quote
What (programming) language is most useful for working with Linux?
bash, bash, bash..
or if you meant for working with gui's my vote would go for python.
Logged

asi es la vida.
Tom
Gamma Wolf
***
Posts: 203


View Profile
« Reply #5 on: April 09, 2009, 06:43:48 PM »

I like SciTe but only really used it in Windows.  Since those dark and stressfull days ended i find myself pretty happy with just about any text-editor. 

I wrote a really short 'program' in pascal but mostly just used Basic (speccy).  Since then the closest i've got to doing stuff like that was with a html site i modified quite heavily with a fairly awesome webmistress.  So that's no programming since my speccy days, unless fiddling with logic gates and machine-code counts but the machine-code was pretty incomprehensible at best.  You think python's a good way in again?

Oithona's still pretty darn cool Wink
« Last Edit: April 09, 2009, 06:45:40 PM by Tom » Logged
Wolvrik
Gamma Wolf
***
Posts: 180



View Profile
« Reply #6 on: April 09, 2009, 07:57:52 PM »

Thanks for the suggestions.

Oithona, sold your soul did you?  I knew there had to be some kind of Faustian twist to this whole Wolvix thing, Well at least it was for a good cause.  Oh the irony.  Am i as old as you, you old Mephistopheles? Cheesy 

I am going to go with Python.  There was an article in October 2008 issue of Linux Format Magazine dealing with making games in Python with Pygames.  I might start with that.  Bash looks like it is going to be really useful too.  So much to learn, so little time...maybe I could make a little deal myself...
Logged

Howl At The Moon
jbskaggs
Delta Wolf
**
Posts: 90


View Profile
« Reply #7 on: April 09, 2009, 08:33:13 PM »

Python is a great choice.  Though C++ is fast the programming is sometimes counterproductive such as when expected results get reversed from their normal. 

To be honest though there are a good deal visual programming out there as well for Gambas including C++, Python, Ruby and others.

I come from a basic background and so I like Gambas.   

But for portability I would say Python and Java across OS's and Handhelds.

Seriously what language you use should be based on what you enjoy and the things you like to make, and what you want to make it on.  No matter what, somebody will always find fault with what you do:)

For me I have dyslexia and ghostvision(a slight double vision) and python and C++ are difficult for me because of the similarities in much of the naming and formatting structures.   I find that if I do not use a format and variable structure that is very easy to understand my dyslexia jumbles the characters.

This happens to me in Gambas too, especially in SDL programming which is very C++ like but it's less than what I go through in C++.  PLus if I have to have a C or Py script I just make it as a component and call it.


If though you were going to do 3D stuff C++ is the way to go.   If for no other reason they have ten thousand open source examples of 3d code you can use for free.  Where as Python just doesn't have that level of use as a 3d graphics language yet (but they are gaining ground!)

Have fun thats what matters.

Concerning script editors- real programmers have already made their billions and have some young techie coding for them on whatever the techie uses while the programmer sips cappucinno's and plays World of Warcraft.

JB
Logged
Midnight
Contributor
Gamma Wolf
*****
Posts: 155



View Profile WWW
« Reply #8 on: April 16, 2009, 05:46:27 PM »

Hah. I use three editors; nano, mousepad, and geany (when I work with html, mostly). Nano does my bash editing, my text file editing, everything. Mousepad is when I copy/paste heavily, am lazy, or work with bigger files.

As for languages, I know none but the basics of bash, so I'm not your man.
Logged

jbskaggs
Delta Wolf
**
Posts: 90


View Profile
« Reply #9 on: April 17, 2009, 02:18:20 AM »

I know a couple of programming languages but I dont know bash.

I have written a couple of text editors and a lot of work goes into writing a good one!

I really like Mousepad though I prefer writing in an IDE that highlights and colors my code per it's function.

JB Skaggs
Logged
mike0liver
Wolf Cub
*
Posts: 2


View Profile
« Reply #10 on: April 17, 2009, 04:31:20 PM »

Hi from the latest member!

I go back even further than C++. My first prgramming language after good old basic was Pascal. I then moved to GFA basic for my Atari ST (very much like Pascal) and on to Visual Basic once I bought a PC.

Now I've graduated to Linux (Ubuntu V8.10) I'm looking for something similar to VB6 - I've not splahed out on Visual.net - to write the odd thing for my Linux machine (a Toshiba NB100 notebook).

Can anyone point me in the right direction? I'd prefer something that had a downloadable manual which contains all the reserved words and correct syntax. I've looked at KDevelop Designer, which appears to be OK but I can't find any manual or tutorials.

Here's hoping there's something around I can use.

Cheers,

Mike
Logged
jbskaggs
Delta Wolf
**
Posts: 90


View Profile
« Reply #11 on: April 17, 2009, 07:52:11 PM »

Gambas is very much like visual basic!  And it is the wolvix repository.

Gambas strengths: very easy and with a strong support forums.   Has a very well designed IDE and form makers.

weaknesses: Many Linux programmers frown on Gambas becuase it is a Basic language- so it can be harder to get collaborators from outside of Gambas communities.  And it has the same weaknesses as VB vs. C++.  ANd the same strengths.  Also it is not visual basic so though the commands are very similar they are slightly different.

You goto my site www.gambas.wwmkr.com  where I am building a gambas school- it also has all the links to the official sites etc.

Currently I am making a gamemaker, and a chess/card game.

JB SKaggs
« Last Edit: April 17, 2009, 08:11:11 PM by jbskaggs » Logged
mike0liver
Wolf Cub
*
Posts: 2


View Profile
« Reply #12 on: April 17, 2009, 08:31:53 PM »

I loaded Gambas on to my machine but couldn't install it - the error message read: "Gambas2 could not be installed on your computer type (lpia). Either the application requires special hardware features or the vendor decided to not support your computer type".

I am running a Toshiba NB100 Notebook with Ubuntu Linux V8.10.

Any further suggestions would be welcome.

Cheers,

Mike
Logged
jbskaggs
Delta Wolf
**
Posts: 90


View Profile
« Reply #13 on: April 17, 2009, 10:02:29 PM »

Hmm I haven't had that error before.

Did you install gambas from the Ubuntu add / applications?  The wolvix package isn't for windows.

I would load Wolvix and try installing gambas for it.

Try going to the Nabbles Gambas forums and posting the error- the actual creator of Gambas (Benoit) will I am sure be interested in that.

JB
« Last Edit: April 17, 2009, 10:05:08 PM by jbskaggs » Logged
Tom
Gamma Wolf
***
Posts: 203


View Profile
« Reply #14 on: April 18, 2009, 01:00:19 PM »

Are there easy places for a noob programmer to get a sandbox and start tinkering?  Any links to good look-up tables or manuals would be great - please bear in mind that my last programming was with spectrum basic, and that would have been a few years ago now.  Some of us are a bit longer in the tooth than we might appear by lack of knowledge Wink

Thanks and regards from
Tom Cheesy

Edit, a project i would like to see but have no skills to put it together
http://forums.wolvix.org/index.php/topic,1160.msg6340.html#msg6340
A kind of "Extreme themes package" to make it easy to switch between different WM's with the cool themes & setups that people have developed in the forums Cheesy
« Last Edit: April 19, 2009, 12:14:34 PM by Tom » Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!