Home | Community | Message Board

Out-Grow.com - Mushroom Growing Kits & Supplies
This site includes paid links. Please support our sponsors.


Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Shop: Myyco.com Golden Teacher Liquid Culture For Sale   PhytoExtractum Buy Bali Kratom Powder   Bridgetown Botanicals Bridgetown Botanicals

Jump to first unread post Pages: 1
Invisiblesherm
sherman
 User Gallery

Registered: 10/02/03
Posts: 20,498
Loc: Euthanasia
learn C before C++.......or not?
    #4136539 - 05/05/05 06:33 AM (18 years, 11 months ago)

I want to get into programing
i was talking to my teacher about learning a language
he said to learn C just enough to understand it before I start on C++
would you agree with this?
Got any interesting programing resources?

I am going to teach myself, I would like to get a good book.
Have any recomendations?

any advice?

thanks


--------------------
shroomery.
not even once.


Extras: Filter Print Post Top
OfflineSeussA
Error: divide byzero

Folding@home Statistics
Registered: 04/27/01
Posts: 23,480
Loc: Caribbean
Last seen: 2 months, 7 days
Re: learn C before C++.......or not? [Re: sherm]
    #4136590 - 05/05/05 07:06 AM (18 years, 11 months ago)

I strongly disagree with that idea. Although C++ is an extension to C, the complexities involved with the two make both very difficult to learn. The programming methodology used between objective programming (C++) and functional programming (C) is also very different. When you mix the two up as suggested, you are going to cause a lot of unneeded confusion both at the language semantics level and at the programming methodology level.

Have you ever programmed in any language? If so, then the above suggestion isn't as bad as I am making it out to be though I still wouldn't recommend learning that way.

If you haven't ever programmed, then C and C++ are not the languages to be using to learn. Both languages are loosly typed, which means that the language wont protect you from making most mistakes. Think of C/C++ as a gun without a safety mechanism on the trigger... sure you can shoot fast, but you can also shoot yourself in the foot by accident much easier too.

If you want to learn functional programming, I would recommend starting with a strongly typed language such as Pascal. Once you learn the basics of programming, then move on to C.

If you want to learn objective programming, I would recommend starting with a strongly typed language such as Java. Actually, I think Java is a great learning language and this would be my recommendation as a starting point. The Java language is very close to both C and C++. The semantics of the language follow C, but the language is based upon a very strong object model rather than a functional model. Java will not really prepare you for the semantics of C++, but it will teach you objective programming, which is needed to understand how to program in C++. Java is also strongly typed, so you have a much harder time making mistakes than you would in C or C++.

Visit http://java.sun.com/ and look to the left side of the page. A little over half way down there are links to all kinds of online learning resources. The language is free to download and runs under most popular operating systems. There are tons of code examples, tutorials, and books on the subject as well.


--------------------
Just another spore in the wind.

Extras: Filter Print Post Top
InvisibleMushie_Man
Fuck Up

Registered: 05/21/04
Posts: 889
Loc: UK
Re: learn C before C++.......or not? [Re: Seuss]
    #4136726 - 05/05/05 08:15 AM (18 years, 11 months ago)

Visual Basic is an easy language to get you on the programming route .. Not much like C/C++ but it's quick to learn the basics, so it wont be a waste of time, it will help you get into the programming structure, such as how to use modules, scripts etc.. i find it more fun than C/C++. ALOT quicker to put program's together (hence "VISUAL" basic, its all drag and drop, then just add the code)

If your going to program, this is the best site to learn from:
http://www.planet-source-code.com/

Good Luck  :thumbup:

Peace,
Mushie Man  :mushroom2:


--------------------
Ecstacy got me standing next to you
Getting sentimental as fuck spillin' guts to you
We just met
But I think I'm in love with you
But you're on it too
So you tell me you love me too
Wake up in the morning like "yo, what the fuck we do?"

Extras: Filter Print Post Top
InvisibleSuffer
puter dork
 User Gallery

Folding@home Statistics
Registered: 03/05/99
Posts: 1,090
Loc: MA
Re: learn C before C++.......or not? [Re: Mushie_Man]
    #4136756 - 05/05/05 08:28 AM (18 years, 11 months ago)

I dont recomend learning visual basic... I use VB at school quite a bit. Its unpredictable... The software (vb studio) encourages poor coding practice (autocomplete syntax is nice and all, but you can also leave important things out and it assumes for you... thats bad IMHO). Also, VB is a MS ONLY language... thats kinda crappy no? Id recomend learning python or c++... or even VB if your so inclined, but the important thing to remember is they are all the same general concept, just the syntax is different. Start easy and work your way up... and PRACTICE GOOD SYNTAX! You will only be saving yourself 10000000000 headaches in the future.


--------------------

Extras: Filter Print Post Top
Invisiblesherm
sherman
 User Gallery

Registered: 10/02/03
Posts: 20,498
Loc: Euthanasia
Re: learn C before C++.......or not? [Re: Suffer]
    #4136817 - 05/05/05 08:50 AM (18 years, 11 months ago)

i was cheking out perl and python
would you suggest one over the other?


--------------------
shroomery.
not even once.


Extras: Filter Print Post Top
OfflineSeussA
Error: divide byzero

Folding@home Statistics
Registered: 04/27/01
Posts: 23,480
Loc: Caribbean
Last seen: 2 months, 7 days
Re: learn C before C++.......or not? [Re: sherm]
    #4137045 - 05/05/05 10:05 AM (18 years, 11 months ago)

> I dont recomend learning visual basic...

Nor do I. Horrid horrid language. Everything Suffer said and more.

> i was cheking out perl and python

I would learn python over perl. I call perl a "write once read never" language. In other words, it is great for getting things done, but if you ever have to maintain perl code you might as well give up. The language is really a mix of several differnt unix tools smashed together into a language. Extremly powerful, extremly cryptic, a zillion different ways to do the same thing, etc.

I haven't used python that much, but from what I have seen, the language is sound. It isn't used that much, but that doesn't mean that it isn't good... but it does mean you will have a harder time learning it because there will be fewer people that you can ask for help.


--------------------
Just another spore in the wind.

Extras: Filter Print Post Top
InvisibleautomanM
blasted chipmunk
 User Gallery

Registered: 09/18/03
Posts: 8,272
Re: learn C before C++.......or not? [Re: Seuss]
    #4138696 - 05/05/05 04:42 PM (18 years, 11 months ago)

you can ask any of the gentoo folk about python. i believe their portage system was written in it. python also has a great tutorial on their site. i think one of the first things it teaches you is how to program the fibonichi forumla.

i believe if it were to write a program, i might approach it from the same point of view that i approached learning a musical instrument. i would learn the fundamentals, then decide on a song to learn and learn it. in learning that song i amassed more tools to build upon. i bet the same approach would work in coding. after all, i look at it as an art form unto itself.


--------------------
No, no, you're not thinking, you're just being logical. ~ Niels Bohr

Extras: Filter Print Post Top
InvisibletrendalM
J♠
Male User Gallery

Registered: 04/17/01
Posts: 20,815
Loc: Ontario, Canada Flag
Re: learn C before C++.......or not? [Re: sherm]
    #4139695 - 05/05/05 09:03 PM (18 years, 11 months ago)

Yeah I also would recommend you stay away from the BASIC and VisualBASIC languages.

BASIC was really just that, a basic language. It will teach you a LOT of bad coding skills, though, things you will have to unlearn to really learn a good language like Java or C/C++. VisualBASIC is just a shittier version of BASIC in my opinion. Quick and simple for making dialogues and such in Windows...but absolutely useless for any real coding needs. It's slow, and requires proprietary Microsoft files to run on any machine.

When I learned programming I dove straight into C and had no problems at all. I would try to tackle Java though before you move to C++, as Java is a much better language for learning object-oriented models than C++ is. For most applications I would use C++ over Java though, given the choice, as C++ tends to run faster (no virtual machine to worry about).


--------------------
Once, men turned their thinking over to machines in the hope that this would set them free.
But that only permitted other men with machines to enslave them.

Extras: Filter Print Post Top
OfflineHugh_Jass
pantydealer
Registered: 04/25/02
Posts: 82
Loc: Northern Ireland
Last seen: 12 years, 11 months
Re: learn C before C++.......or not? [Re: trendal]
    #4143442 - 05/06/05 05:27 PM (18 years, 11 months ago)

Another vote for Java here.

We're tought Visual Basic and Java on our course at college and althought VB is a lot easier and immediate, its more like a toy I dont think it teaches you very much.

I find Java a lot more enjoyable and have started to get a good grip on the syntax. Im findind the concepts of objects a little tricky tho but we havent really got that far on yet.

Extras: Filter Print Post Top
InvisibleBoom
just a tester
Male
Registered: 06/16/04
Posts: 11,252
Loc: Cypress Creek
Re: learn C before C++.......or not? [Re: sherm]
    #4144178 - 05/06/05 09:23 PM (18 years, 11 months ago)

VB does make some nice looking executables though. :shrug:

I don't recommend assembly.  That was the worst (a bit interesting, however) language I've ever had to deal with.  God I hated that course.

C++ is a real nice way to learn about programming in my opinion.  I mean, you can do the same thing in any language (kinda), but the idea behind programming is to figure out good, logical algorithms.  C is a nice, straight-forward way to learn the basics of program design

Extras: Filter Print Post Top
Offlineummikko
sika joka eilenn? on pelkk?sika

Registered: 04/02/03
Posts: 1,222
Loc: Finland
Last seen: 13 years, 10 months
Re: learn C before C++.......or not? [Re: sherm]
    #4146491 - 05/07/05 01:04 PM (18 years, 11 months ago)

I agree with Seuss 100%, start with Java. Free, excellent online tutorials make it easy to teach yourself, good starting point for C/C++.

I can't recommend a Java book myself, but if you want to buy a C++ book later on I suggest Bjarne Stroustrup: The C++ Programming Language


--------------------
"All substances are poisons; there is none which is not a poison. The right dose differentiates a poison and a remedy." -Paracelsius

Extras: Filter Print Post Top
Invisibledjfrog
omgws!!!1!

Registered: 10/22/00
Posts: 3,710
Re: learn C before C++.......or not? [Re: sherm]
    #4149332 - 05/08/05 03:52 AM (18 years, 11 months ago)

Go to the bookstore and grab whatever interests you in the computer languages section.  You'll need to learn a couple languages before you can use any one effectively.  :smile:  I do recommend just looking for a book on a topic that interets you (graphics, networking, etc) in the computer languages section.  This way you learn some language, but you also learn some functionality.

If you have any specific questions on C/C++, I can probably help.  If there is a specific sort of software you want to write, I might suggest a book.  I'd also suggest searching amazon for topics of interest like "game programming" then learning whatever language is used for the subject.  Maybe get two books, one for the language and one for the subject.

Extras: Filter Print Post Top
Invisibletak
geo's henchman
Male User Gallery

Folding@home Statistics
Registered: 11/20/00
Posts: 3,776
Loc: nowhereland
Re: learn C before C++.......or not? [Re: djfrog]
    #4152664 - 05/09/05 07:50 AM (18 years, 11 months ago)

without reading too much of the posts. let me put in my advise.

never learn visual basic. ever.
it will teach you to code wrong, and while 99% of languages use simular syntax, basic does not. it will fuck you in the long run.

and i would just pick up a book for c++. while c++ is based off of c, its pretty specific to its own shit, whether it be basic syntax, or extreme stuff. If c++ is what you want to code, learn that. then when you learn c, you will already know most of it. dont get the 2 confused though.


--------------------
The DJ's took pills to stay awake and play for seven days.

Extras: Filter Print Post Top
Invisiblemantis
Male User Gallery

Registered: 01/26/03
Posts: 5,235
Loc: Bunker Alpha, GMC Flag
Re: learn C before C++.......or not? [Re: sherm]
    #4159361 - 05/10/05 08:19 PM (18 years, 11 months ago)

Take a look at some of my C++ programs... they're oh so basic :lol:

http://home.comcast.net/~texture/cplusplus.html


--------------------

Extras: Filter Print Post Top
Invisibledjfrog
omgws!!!1!

Registered: 10/22/00
Posts: 3,710
Re: learn C before C++.......or not? [Re: mantis]
    #4159949 - 05/10/05 10:58 PM (18 years, 11 months ago)

1 line of comments for every 5 line of code, you learn fast grasshoppah.

Hah though I read the "TODO" list of connect four and cracked up. I'm glad you're worried about nanoseconds of runtime in a calculation that will probably never consume a second of the universe. It means you're going to do well.

Extras: Filter Print Post Top
Invisibletak
geo's henchman
Male User Gallery

Folding@home Statistics
Registered: 11/20/00
Posts: 3,776
Loc: nowhereland
Re: learn C before C++.......or not? [Re: djfrog]
    #4166867 - 05/12/05 02:42 PM (18 years, 11 months ago)

on the note of comments!

comments are your best friend, learn to use them. Write your code as if you were going to have someone else look at it and have to use it. Not only will explaining what everything does help you if you take a break, and need to go back and have a look..

but its kinda like vocabulary class in grade school. You have to write the defenitions 5 times, and suddenly you remember them. Comments will do this for you, allowing you to break it all down in your head before you move on.


--------------------
The DJ's took pills to stay awake and play for seven days.

Extras: Filter Print Post Top
Jump to top Pages: 1

Shop: Myyco.com Golden Teacher Liquid Culture For Sale   PhytoExtractum Buy Bali Kratom Powder   Bridgetown Botanicals Bridgetown Botanicals


Similar ThreadsPosterViewsRepliesLast post
* Programming books or tutorials? Anonymous 1,271 8 06/12/03 01:09 PM
by Anonymous
* Scripting Languages: Ruby vs. Python Evolving 1,178 8 02/14/04 08:57 PM
by djfrog
* Got spyware? popups? hidden files? annoying programs? ShroomismM 2,454 9 04/13/04 04:39 PM
by SkorpivoMusterion
* LInux program install trouble monoamine 1,248 9 09/11/04 01:10 PM
by monoamine
* please help with spyware/virus protection programs Edge 2,100 19 04/06/05 09:26 AM
by trendal
* TV tuner card / Program to recieve digital signals... Cow Shit Collector 664 2 10/30/04 05:30 PM
by baraka
* The Best Website Language? Earth_Droid 947 3 02/02/03 09:00 AM
by minusrestraint
* Grow Rating Program teonacatl 961 3 08/06/03 09:03 AM
by teonacatl

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: trendal, automan, Northerner
1,355 topic views. 0 members, 0 guests and 0 web crawlers are browsing this forum.
[ Show Images Only | Sort by Score | Print Topic ]
Search this thread:

Copyright 1997-2024 Mind Media. Some rights reserved.

Generated in 0.025 seconds spending 0.007 seconds on 14 queries.