Forum Thread
by member
  Posts  
C Programming advice (Forums : General Banter : C Programming advice) Post Reply
Thread Options
Jan 15 2013, 12:10pm Anchor

Hey guys, I am new to programming and joining this site is my first step outside of programming and am just looking for ways to widen my knowledge of writing code. I have just recently started to dabble around with Bloodshed to get a feel around and it has been slow but fun! I have a pc and a mac but primarily use the pc. My mac is the laptop which I would like to use on the go and possibly avoid having to buy parallels and another copy of windows. I have been eyeing Xcode, but am looking for something similar to Bloodshed that I can use on my mac to continue practicing even when I'm not at home. I have just started and its like I just wanna learn and try to code all the time now. Any information or advice you have would be greatly appreciated! Thanks!

Jan 15 2013, 12:39pm Anchor

You use Dev-C++ voluntarily? :O
I'd say forget about Dev-C++ and get a proper IDE. Go with Eclipse or Netbeans since they're available forĀ Linux, OSX and Windows. Eclipse is powerful but the UI is complex and not intuitive at times. If you want something more intuitive, use Netbeans. I don't know how the setup-processes under Windows and OSX are though. I use Linux for developing, because it just provides the best environment for developing software. Under Windows I use Visual Studio, because as a computer-science student I have access to VS Professional.

As for the coding itself.
If you're learning it yourself, make sure that you have some reliable source of knowledge. The difference between a programmer and a "programmer" is that one of them writes code that not only works, but also is optimized. There are many ways to do the same thing, but not every way is a good way.

Have you any prior experience in programming? Do you learn OOP?

Jan 15 2013, 3:04pm Anchor

I don't have much of any experience programming and no OOP, obviously this is something I should be looking into! I will be starting my computer science major this fall so I'm trying to get a head start on some things. I will definitely check eclipse and netbeans out!

Jan 15 2013, 5:21pm Anchor

You won't get around OOP, because it's THE way of programming nowadays. The more complex your program is, the easier OPP makes programming, because it brings structure inside.
That being said, I do not recommend trying to learn the ideas of OOP with C++. That language is hard enough to learn by itself already and breaks even experienced programmers necks quite often.
I think that you shouldn't learn OOP with a language that puts rocks in your way at every turn.
Java and C# are my recommendations for learning OOP. Just choose one. They are both much easier to learn than C++ so they won't stand in your way when learning OOP. After that you can apply the principles to C++.
The point is that you have to rethink your idea of how a program is made entirely when working with OPP. The structure is just completely different.

Jan 15 2013, 10:06pm Anchor

Thanks for replying again Sniper.

I have been using Dev C++ but have been looking up and learning C# on it. I've followed a few tutorials (I will post a link of it at the bottom of here and maybe you could tell me if it is worth it?) And would you have any books or anything else you would suggest? I'm trying to be a sponge and learn the basics as you said, I guess I'm just trying to find where to pry open the knowledge bucket. I really appreciate you answering my questions!!

I forgot the link haha. here it is!

Youtube.com

Jan 16 2013, 11:09am Anchor

It's a good start in my opinion. It's simplified so it doesn't blow your mind (Part two: "Variables are designed to hold a value." <- Not necessarily). It's 7 videos, which should do fine in the beginning, since he explains everything quite nice.

Jan 16 2013, 11:14am Anchor

ok great! and doing C# on bloodshed is going to just fine? or would you use something else to start off like you said before?

Jan 16 2013, 3:45pm Anchor

Since C# is from Microsoft, you'd usually go with Visual Studio. However the free "Express edition" doesn't have the features SharpDevelop has.
I'd recommend you to get MonoDevelop though, since it is cross platform and you can have the same IDE under Windows and OSX. They're both free.

Jan 16 2013, 6:13pm Anchor

Oh good, you are studying C, I like this language as the first one. Try to study well the memory management part and also study some basic data structures like binary trees, linked lists, arrays and stacks. Even if you have all this already implemented in some languages like Java it'll help you to make better programs. Also try to read something about good practices in programming ( modularity, cohesion, etc ) and some basic Design Patterns.

Jan 22 2013, 10:35pm Anchor

use the right tool for the job i guess

c++ is like c, just a lot easier, c++0x
and ignore memory management, learn threading and syncrinisation, and serialisation, who cares about memory. just learn early how to make what you program thread safe, and you good

strust d {
d *next;
d *prev;
d(po &parent){po.next = (*this); this->prev = &d; next = NULL; return}
}

im a bit rusty this is basik linked list?

make defualt creation throw an error, and its the basic linked list

i stopped programming a long time ago

thwn you go 4d linked lists, you start to go a bit funny

struck d{
d *prev;
d *next;
...

class mind{
d *

can go into recurtion forever
without doing anything

Reply to Thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.