Jump to content

  • Log In with Google      Sign In   
  • Create Account


getting better at c++


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
10 replies to this topic

#1 geoteam   Members   -  Reputation: 113

Like
0Likes
Like

Posted 05 February 2013 - 02:22 PM

I want to get better at coding. I code in c++ and I know the language well but i need a tutorial or something that will help me get better at programming, (not the actual language but at programming part). any help would be greatly appreciated. 



Sponsor:

#2 Telastyn   Crossbones+   -  Reputation: 3726

Like
10Likes
Like

Posted 05 February 2013 - 03:04 PM

Tutorials and videos don't make you a better programmer - programming does.



#3 Radikalizm   Crossbones+   -  Reputation: 2823

Like
0Likes
Like

Posted 05 February 2013 - 03:24 PM

Your title is quite contradictory to what you ask for in your post, you say you want to focus on the programming part in your post while the title says you want to get to know the language better.

 

If you want to really get better at programming you should step away from the learning materials which try to hold your hand (ie. tutorials) and dive into the more serious stuff.

 

Assuming we're talking about actual programming concepts, there are some things I believe every beginner programmer should take a look at.

First of all it might be good idea to broaden your horizon when it comes to programming paradigms. Opposed to what many newer (and even more experienced) programmers seem to think, OO is not the perfect solution to every single programming problem out there, and it'll be definitely worth your while to look at other paradigms and what their positive and negative points are. Problems which would be perceived as difficult to solve in OOP can suddenly become really easy when using another paradigm.

I'd definitely recommend experimenting with languages like Lisp or Prolog (among others), as these can be real eye-openers for more OO-minded programmers.

 

Second of all, it can never hurt to learn about your basic algorithms and data structures, if you haven't already done so. Knowledge about algorithms for sorting, searching, shortest-path problems, etc. can be very valuable to you throughout your programming career as they'll allow you to solve a lot of common problems in an efficient manner.

 

All of this will only make you a better programmer if you constantly program though, so that should be priority #1.


I gets all your texture budgets!


#4 Fs02   Members   -  Reputation: 382

Like
0Likes
Like

Posted 05 February 2013 - 03:25 PM

If you feel you getting better on C++, it's time to learn some external API or Library wink.png


[my game in #ggj14 : http://www.indiedb.com/games/romance-stalker [my blog : http://surya.volge.net ]


#5 TheChubu   Crossbones+   -  Reputation: 4070

Like
0Likes
Like

Posted 05 February 2013 - 03:25 PM

It is better to make something before going any deeper. Because when you read about more advanced techniques, designs, or different approach  you need to know the problem they're trying to tackle, otherwise all you are going to think is "How the hell does this helps me? Where can I apply all of this?".

 

You won't know what they're talking about until you start coding larger projects and hit those rocks yourself. Then you can read more advanced topics that will help you solve those problems and since you know what details you have to pay attention to, you'll probably learn more too.


"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"

 

My journals: dustArtemis ECS framework and Making a Terrain Generator


#6 Bregma   Crossbones+   -  Reputation: 4976

Like
0Likes
Like

Posted 05 February 2013 - 03:35 PM

My suggestion is you cruise a place like sourceforge.net, looking for open source projects to contribute to. What you need is practice. Wax on. Wax off. Contributing to an open source project helps you and helps the project.
Stephen M. Webb
Professional Free Software Developer

#7 ~Helgon   Members   -  Reputation: 357

Like
0Likes
Like

Posted 05 February 2013 - 03:42 PM

I haven't read it but "Effective C++" shall be really good (to eliminate common c++ mistakes and improve)

When I have time I'm also going to read it.

 

http://www.amazon.com/Effective-Specific-Improve-Programs-Designs/dp/0321334876/ref=sr_1_1?ie=UTF8&qid=1360100498&sr=8-1&keywords=effective+c%2B%2B


from time to time i find time


#8 Servant of the Lord   Crossbones+   -  Reputation: 18491

Like
1Likes
Like

Posted 05 February 2013 - 03:59 PM

Code Complete (2nd Edition) is very good at teaching you how to improve the quality of your code. It's the single most important programming book I've read.


Edited by Servant of the Lord, 05 February 2013 - 04:00 PM.

It's perfectly fine to abbreviate my username to 'Servant' rather than copy+pasting it all the time.
All glory be to the Man at the right hand... On David's throne the King will reign, and the Government will rest upon His shoulders. All the earth will see the salvation of God.
Of Stranger Flames - [indie turn-based rpg set in a para-historical French colony] | Indie RPG development journal

[Fly with me on Twitter] [Google+] [My broken website]

[Need web hosting? I personally like A Small Orange]


#9 mk1x86   Members   -  Reputation: 442

Like
0Likes
Like

Posted 05 February 2013 - 04:10 PM

Something you should learn is design patterns (see gang of four). Then you could try to implement an advanced algorithm like A* pathfinding. While the basics are easy (this tutorial is excellent imo and covers all the basics) there's much room for optimization. You can also try to write an advanced number class, which supports imaginary numbers. That way you learn overloading operators.

 

When you're done with, try out some APIs, maybe get into game programming using a free game engine (irrlicht is a good engine for beginners). You'll learn a lot about good api architectures just by using others.



#10 NightCreature83   Crossbones+   -  Reputation: 2737

Like
0Likes
Like

Posted 05 February 2013 - 05:00 PM

Before starting either Lisp or Prolog, it is better to get a good grasp of the math logic they are built on. Concepts to look out for in math are:
Set Theory http://en.wikipedia.org/wiki/Set_theory, which will prepare you for the map and reduce(aka fold) techniques on which functional programming heavily leans.
First order Logic http://en.wikipedia.org/wiki/First_order_logic, which Prolog and any logical programming language are based on.

Algorithm design is another important field to focus on for which this book is an excellent introduction: http://www.amazon.co.uk/Introduction-Algorithms-T-Cormen/dp/0262533057/ref=sr_1_sc_1?ie=UTF8&qid=1360103335&sr=8-1-spell
It starts off with the normal search algorithms but will move into algorithm complexity analysis and more advanced algorithm construction after that and ending in graph theory.

Automatons and formal languages is also an interesting thing to look at, http://en.wikipedia.org/wiki/Automata_theory. These will teach the ideas in state based systems and language design (practical for the parser and lexer stages in a compiler).

Even though most of these topics sound utterly boring and abstract once you understand the abstract concepts the actual implementation of these concepts become far easier, at least that is what I found.

Edited by NightCreature83, 05 February 2013 - 05:02 PM.

Worked on titles: CMR:DiRT2, DiRT 3, DiRT: Showdown, GRID 2, Mad Max

#11 King Mir   Members   -  Reputation: 1948

Like
0Likes
Like

Posted 05 February 2013 - 11:21 PM

On-line tutorials are not good for learning to program. They can explain techniques, but don't explain what techniques you should know and apply in the first place.

 

A number of people have recommended books, and this is the right aproach. Practice is important too.


Edited by King Mir, 05 February 2013 - 11:21 PM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS