• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 22:04
CET 04:04
KST 12:04
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Greatest Players of All Time: Addendum - Dark11Team Liquid Map Contest #2312[ASL22] Finals Preview: Sweet Victory!12[ASL22] Ro4 Preview: Mirror Mirror6[ASL22] Ro8 Preview: Within Reach5
Community News
[BSL23] ProLeague RO83Serral wins 2026 RSL Season Finals12Weekly Cups (Nov 16-22): MaxPax doubles, Dark heats up0BSL 2v2 ProLeague Season 44Weekly Cups (Nov 9-15): Clem and herO take over6
StarCraft 2
General
Greatest Players of All Time: Addendum - Dark About rush maps Best SC2 Parody Song about 2v2? Serral wins 2026 RSL Season Finals How do you feel about the mass reverts in the 5.0.17 PTR?
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament Kung Fu Cup - 2026 Grand Finals (Nov 24-29) RSL goes to London! 2026 Offline Finals Nov 21-22 soO & FanTaSy return! SC2 Kevin Scrim 4v4 (Nov 16) ISSL:Premier#2 Announcement
Strategy
[H] ZvP Mid-Late Game: Stalkers Collossi HT
Custom Maps
[G] How to playtest arcade maps Starcraft 2 Advance [D] the control group Simple Questions/Answers
External Content
Mutation # 553 Undermined The PondCast: SC2 News & Results Mutation # 552 Secret Storm Mutation # 551 Robotic Revival
Brood War
General
New ASL23 Maps Fantasy Interview 2: Internal Rankings,SC2 swap BW General Discussion List of top players active on ShieldBattery SOOP Announces New Women's Monthly Tournament
Tourneys
2v2v2v2 Tournament Stage 2: Players [BSL23] ProLeague RO8 BSL 2v2 ProLeague Season 4 Ultimate Battle Event
Strategy
Request - 3-factory/fast timings as Terran Pluto's TvP 5Marine 2Medic Push Simple Questions, Simple Answers Infested Terran strategies in 2026
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread The PlayStation 5 Warcraft III: The Frozen Throne Free Space RTS Game, optimised f. Phone/Tablet etc
Dota 2
League of Legends
[TL LoL EUW IHs] Teemo shall perish
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread
Community
General
Artificial Intelligence Thread US Politics Mega-thread The Chess Thread The Games Industry And ATVI Russo-Ukrainian War Thread
Fan Clubs
INnoVation Fan Club Fan Club Resource Thread
Media & Entertainment
Anime Discussion Thread Movie Discussion!
Sports
Football (Soccer) Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
[Kickstarter] The Roman E…
LUCKY_NOOB
On Parallel Lives in Fascis…
p4NDemik
The time I organised my…
AssyrianKing
Why I built Repalyzer (1.1.…
BlueStar
Innovate or Game Over?
TrAiDoS
ShieldBattery on Mac
Kraekkling
James Bond movies ranking - pa…
Topin
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1112 users

Learning C++ my first week

Blogs > blade55555
Post a Reply
1 2 3 Next All
blade55555
Profile Blog Joined March 2009
United States17423 Posts
Last Edited: 2012-11-08 09:33:39
November 08 2012 09:31 GMT
#1
Hey all. So recently I have decided to get back into programming. While this is something I was originally going to delay until school was over, I decided I didn't have to. I have plenty of free time (a lot more since I kinda stopped playing sc2) and I can easily start learning programming.

So a brief history is I have always been fascinated by programming. I took some classes about it which was only HTML/Java. I built a website, I built a few basic things in Java, but I don't remember any of it as I kinda found how we were being taught was stupid. The way we were taught java was some program where we dragged code, didn't type any of it and I mean it was kinda cool I guess, but I really found it dumb for the most part.

I attempted to learn C++ when I was younger at like 13-14, but I was teaching myself wrong. I just wrote the code in the book or watched videos, but I never learned. I eventually would just stop for whatever reason, whether it was because I got into a new game or got bored (was both). Now that I am older (20) I have been learning C++ again off of a tutorial set up by bucky (http://www.youtube.com/user/thenewboston).

For starters this guy does a great job on his videos explaining everything and I am actually understanding what I am doing. It's a lot more fun and again now that I know how to actually use what I am watching and understanding why x happens when you do something is awesome. For some reason whenever I hear his voice though I think of Artosis as a random thing I thought I would throw out there. This can't be just me who thinks so either, maybe I am just dumb but swear to god everytime I hear him I think it's Artosis :D.

I am on lesson 20 on his youtube videos and I have been able to program extremely basic programs, but being able to do my own small thing is awesome.

So far it's only been a week which isn't very long, but I plan on typing a blog every week or 2 with my progress for anyone curious. Now for long term my goal would obviously be to program my own games which is obviously a long way off. I know this, while it would be awesome to start now I know this will take a long time before I can start doing that, but that's my long term goal.

I don't plan on ever working for a game company or anything, it's just going to be a hobby of mine. I am also writing these blogs as a thing I can look back on. While right now I'm not really going to share anything I have made, some point in the future I will be and it would be awesome to look back on as well. If anyone has any questions or anything feel free to ask or not either works!

Thanks for reading! If anyone wants to share their programming of what they have learned or anything feel free, I like to read what other programmers have done (mainly in game development) or their journey!

***
When I think of something else, something will go here
Integra
Profile Blog Joined January 2008
Sweden5626 Posts
November 08 2012 09:46 GMT
#2
To actually program your own game isn't really that hard.

Even with the most fundamental knowledge in C++ you still can make a text based game where the input is simple commands from the user typing "Move up", or "take candle". You could even make a simple event driven game such as nibbles fairly quickly since there are plenty of examples and explanations on how to this once you mastered the C++ fundamentals.
"Dark Pleasure" | | I survived the Locust war of May 3, 2014
Random()
Profile Blog Joined August 2004
Kyrgyz Republic1462 Posts
Last Edited: 2012-11-08 10:55:12
November 08 2012 10:24 GMT
#3
I would suggest to drop C++ until it's too late and switch to an easier language. C++ does not seem so bad when you are writing small practice programs, but when you have to deal with a reasonably large project it becomes a nightmare, and it is very difficult to write a good, robust program with no serious bugs or resource leaks.

If you want a taste of what C++ really is like, just take a look at this.

If you are still not convinced, here Tim Sweeney (the person behind Unreal Engine) explains why it is very difficult to use languages such as C++ (take a look at slide #29 in particular :-) ), and here John Carmack (Quake, Doom, etc) talks about the incredible amount of bugs his company had found in their C++ code by using 3rd-party code analysis tools.

Just take up any other simpler, higher-level language (Python, Java, C#, whatever). Not only that, but also take some time to understand why functional programming style is very helpful (I think those slides by Tim Sweeney explain that very well) and try to keep to it in your language of choice even if the language is not functional.

If you really want to finish a game project this will immensely increase your chances of success.
s.a.y
Profile Blog Joined October 2007
Croatia3840 Posts
November 08 2012 10:36 GMT
#4
If he learns C++ well, he can easily switch to Python.

Good luck with programming, just dont give up early, it takes time to become good at it.
I am not good with quotes
Unshapely
Profile Joined November 2012
140 Posts
Last Edited: 2012-11-08 12:33:20
November 08 2012 11:58 GMT
#5
Let me persuade you to learn a language other than C++. It is not a language that will aide you in development of programmes as a "hobby", though it could help if you decide to take it as a profession.

Learn Python, and try to do some research on functional programming.
LISP is a better language for a nearly pure functional programming approach that can be applied to real programmes as well.

Good luck. I would still ask you to change your opinion on C++ and switch to a different language.


Edit: If you do decide to further your knowledge in C++, or any language, I would be glad to help.
Feel free to ask for support or assistance if you get stuck.
That is not dead which can eternal lie; and with strange aeons even death may die.
Cambium
Profile Blog Joined June 2004
United States16368 Posts
Last Edited: 2012-11-08 12:03:46
November 08 2012 12:02 GMT
#6

I don't plan on ever working for a game company or anything, it's just going to be a hobby of mine. I am also writing these blogs as a thing I can look back on. While right now I'm not really going to share anything I have made, some point in the future I will be and it would be awesome to look back on as well. If anyone has any questions or anything feel free to ask or not either works!


Then there is absolutely no reason for you to learn C++. C++ is a great language (my first), but it's a very difficult one to master, nay, to even be proficient. There are so many things you need to understand about C++ to even use it correctly, and I highly doubt the youtube tutorials would be sufficient. I've used it extensively in school as well as my previous jobs, and I've had professional training in C++, and I'm still not comfortable using it.

I would strongly recommend Python if you just want to write simple utility programs. For a beginner, Python is a lot more friendly, and it's highly unlikely for you to encounter something that you cannot do due to Python's language features.

If you are keen on studying the C++ language, then I would recommend C#. C# is actually an extremely well designed language that incorporated the strengths of both Java and C++. You can learn tons of pointers, references, object inheritance, object life cycles, scopes, etc. just like you could in C++, and they are a lot more obvious than Java. Linq is also very cool.
When you want something, all the universe conspires in helping you to achieve it.
dartoo
Profile Joined May 2010
India2889 Posts
November 08 2012 12:12 GMT
#7
Like the others above, I think it's a better idea to learn an easier language first, and then if you really see the need to learn c++ do it. You could also get into creating games real quick with C# and xna(though you wont be going deep into the actual engine side of things), you'll be able to something up. Yes Linq is very cool!

I'd advice you to get a book, youtube is nice, but it's no substitute for a book.
Tobberoth
Profile Joined August 2010
Sweden6375 Posts
November 08 2012 12:45 GMT
#8
If programming is just a hobby, I would definitely recommend going for Python or Ruby rather than C++, possibly C# or Java if you want to make some GUI heavy applications quickly.
y0su
Profile Blog Joined September 2011
Finland7871 Posts
November 08 2012 12:57 GMT
#9
Just started an into to programming class... I have to say that I found thenewboston (yt) to be very helpful also!
Smancer
Profile Blog Joined December 2010
United States379 Posts
November 08 2012 13:00 GMT
#10
I've worked for software companies as a programmer, engineer, database miner, and loads of other things. I minored in computer science. I got a 5 the first year that they offered AP Comp Sci.

Programming isn't about learning a language. Its about learning how to find how to.

Stack Overflow.
Google.
Technet

Learning how to find what you need to solve a problem is what its all about in my opinion. Do I know C++? No. Could I write a program in C++ for a business task if asked by my employer? Yes.

I think you definitely need to learn the basics of one language. It doesn't matter what. Then you essentially know all other languages. Because for any task X that you know how to do in C++, then you can simply google "how to X in Java". There you are now a Java programmer.

A good way to threaten somebody is to light a stick of dynamite. Then you call the guy and hold the burning fuse up to the phone. "Hear that?" you say. "That's dynamite, baby."
Mirosuu
Profile Blog Joined December 2010
England283 Posts
November 08 2012 13:15 GMT
#11
Hah, what are the odds all these c++ topics come up as I'm picking up the language myself.

I've found that watching videos and just going "uh huh, i know that now. get on with the next topic!" to most of the videos of the concepts they're trying to teach you is the wrong approach to be looking at for programming.

My reasoning for this is that you're not actually doing ANYTHING about the knowledge they're telling you.

I'll tell you what my experience has been recently:

I've been picking up on c++ classes and how they differ from their java counterparts (I work as a Java dev).
I knew already the structure of how c++ classes work, what they're supposed to look like syntactically, but semantically, I had no fucking clue.

When it came to instantiating said class, I was lost. I got confused greatly by the usage of header files, file management (when to use *.h files and when to use *.cpp files) and just general simple things like creating objects and having them linked correctly in the language.

After sitting down and trying out coding classes and having them instantiated in different files, I feel like I've learned a great deal MORE than the silly little tutorial on how to write a class. They don't ever tell you the little quirks like when to use headers vs when to use .cpp files or header guards, they just give you the raw data.

The only real way to really pick this up (this applies to anyone who wants to pick up any language, not just c++) is to just code something simple (my coding program I've worked on is a console, text-input based game of casino black jack) and use help when necessary. Once complete, submit your working program's code to a community that cares for code and have them critique your program to learn valuable insights into what you're doing right and what you're doing wrong, and use that knowledge for your next, and more expansive and more difficult program. Eventually you'll be able to competantly do the basics and even some of the advanced stuff without worrying about whether you're doing it right or wrong, because of all the valuable feedback, you know the best (or better) practices of how to do something.

It is usually a good thing to post your program onto multiple different communities that can help out, as some communities may not give as good advice as others, or they may frown upon a certain coding style etc etc. The more places you can get feedback for it, the better. There's countless "learn programming" communities on reddit for instance if you search for them. They would always be willing to critique. :D

Hope this helps.
The more things change, the more they stay the same.
McFortran
Profile Joined October 2010
United States79 Posts
November 08 2012 14:24 GMT
#12
If you like technical details and abstract math you should definitely stick to c/c++ (or even try assembly). They're easily the most fun programming languages. If you get frustrated easily you might want to consider switching to an easier language though.
XythOs
Profile Blog Joined February 2005
Germany520 Posts
November 08 2012 16:06 GMT
#13
Wow so many comments that you shouldn't do C++..
Its up to you if you want to switch languages, but if you want to stay with C++, I would recommend you the book "C++ Accelerated" by Andrew Koenig and Barbara E. Moo. I got it recently as I'm learning C++ beside my CS Degree(we learn Java).
It teaches you the language in an other way than you would expect. Instead of trying to teach you all the little details, it gives you the basics you need to know(while still giving you an explanation of why and how something works) and then goes on to use the all the good stuff and tools in the standard library of C++ to enable you to write useful programs right from the start. And only later on comes back to the tiny details of the language.
As you say you want to do programming as a hobby, I think this approach would suit you really good.
Otolia
Profile Blog Joined July 2011
France5805 Posts
November 08 2012 16:12 GMT
#14
On November 08 2012 22:00 Smancer wrote:
Learning how to find what you need to solve a problem is what its all about in my opinion. Do I know C++? No. Could I write a program in C++ for a business task if asked by my employer? Yes.

Then you are probably a bad programmer and a even worse code maintainer. It's like saying you can create a professional software without knowing a modelling language. Everybody can but it's not about being good enough, it's about being efficient enough and not understanding the solution you copied from someone else is bad. BAD.
Recognizable
Profile Blog Joined December 2011
Netherlands1552 Posts
November 08 2012 16:49 GMT
#15
On November 08 2012 20:58 Unshapely wrote:
Let me persuade you to learn a language other than C++. It is not a language that will aide you in development of programmes as a "hobby", though it could help if you decide to take it as a profession.

Learn Python, and try to do some research on functional programming.
LISP is a better language for a nearly pure functional programming approach that can be applied to real programmes as well.

Good luck. I would still ask you to change your opinion on C++ and switch to a different language.


Edit: If you do decide to further your knowledge in C++, or any language, I would be glad to help.
Feel free to ask for support or assistance if you get stuck.


I'm learning Javascript as my first coding language, but I see many here promoting Python, should I switch to Python?
Ao
Profile Joined July 2009
Korea (South)19 Posts
November 08 2012 16:54 GMT
#16
On November 09 2012 01:12 Otolia wrote:
Show nested quote +
On November 08 2012 22:00 Smancer wrote:
Learning how to find what you need to solve a problem is what its all about in my opinion. Do I know C++? No. Could I write a program in C++ for a business task if asked by my employer? Yes.

Then you are probably a bad programmer and a even worse code maintainer. It's like saying you can create a professional software without knowing a modelling language. Everybody can but it's not about being good enough, it's about being efficient enough and not understanding the solution you copied from someone else is bad. BAD.


I thought exactly this when I read that guy's post. Especially when talking about C++. If you think you know C++ pretty good, you're just kidding yourself. It's impossible to intimately learn as a hobbyist.

My opinion on programming language choice is also not C++ because of the complexity and pointlessness.

As a hobbyist you should really look at Ruby/Java/C#.

Java if you like mobile development, Ruby if you like linux/web development, and C# for Windows Gui programs. I've programmed in dozens of languages but I find the level of productivity of these languages for their respective listed tasks quite nice. If you choose Ruby send me a PM and I'll get you up and running. By far my favorite language these days.
Ao
Profile Joined July 2009
Korea (South)19 Posts
Last Edited: 2012-11-08 16:58:36
November 08 2012 16:57 GMT
#17
On November 09 2012 01:49 Recognizable wrote:
I'm learning Javascript as my first coding language, but I see many here promoting Python, should I switch to Python?


Depends what you want to make. Python is a great all around interpreted language. You can make basic games, library support is great. But if you're learning Javascript, you are probably interested in web, and for that I'd highly recommend Ruby / Ruby on Rails over python.
Fyodor
Profile Blog Joined September 2010
Canada971 Posts
November 08 2012 17:21 GMT
#18
Xzibit would be tripping balls if he learned C++

"yo dawg we put functions in your pointers so you can return pointers to arrays of pointers to class objects whose constructors are passed references to pointers to other functions."

I'd pass something I coded but I'm in a state where I learn so fast that as soon as I write something down it'll be obsolete the next day.
llllllllllllllllllllllllllllllllllllllllllll
LastWish
Profile Blog Joined September 2004
2015 Posts
November 08 2012 17:36 GMT
#19
With some tricks and knowledge + if you make a bunch of utility classes that are intuitive and reusable you can code as well as in C# but more effectively.
1. Use stl - great library, has many useful collections(vector, set, map...)
2. If you need some other library for string operation/file/date operations use boost library. I know it's not super effective but it's standard and multi-platform.
3. Learn to use const and reference(&) properly.
4. Avoid using pointers(*) whenever you can. Instead learn to use shared pointers boost/std::tr1 shared_ptr, they work similarly to how standard objects behave in Java/C#, but without garbage collection.
5. Read a book called Effective C++, small book but with all the essential knowledge inside.

If you need any help or directions just PM me and I will assist you.
- It's all just treason - They bring me down with their lies - Don't know the reason - My life is fire and ice -
sundersoft
Profile Joined November 2011
91 Posts
November 08 2012 17:37 GMT
#20
IMO if you're going to learn C++, you should read The C++ Programming Language:
http://www.stroustrup.com/3rd.html

However that book isn't intended for people who have no programming experience, so you may want to learn a different language first and then read that book while learning C++. Also, there is a 4th edition coming out in 2013 which deals with C++11.

Stroustrup also has a book intended for beginning programmers which uses C++, but I haven't read it: http://www.stroustrup.com/programming.html

It's easy to misuse C++ and wonder your program has memory leaks and crashes. In addition to that book, you should learn either Boost or the C++11 standard library. I'd recommend ignoring Boost for now and learning the C++11 features first after you have a good understanding of C++98. This is because many of the Boost libraries have been incorporated into the C++11 standard library. Right now there is little writing about C++11, but there should be more in the next few years. When learning C++11/Boost, you'll want to make sure you are using RAII where it is possible and that you are not reimplementing parts of the libraries unless you have a good reason to do so (so, use vector instead of allocating an array with new; any use of new should be in a class whose purpose is memory management).

In addition to learning the language, you'll want to learn how your tools work and what the compiler, assembler, and linker actually do. This is important because using C++ effectively requires you to use 3rd party libraries, but doing so is unintuitive without a good understanding of how C++ code is compiled and linked.

Having a good understanding of various types of libraries is also important. Designing code requires you to understand what good code is, and this understanding comes partially from using and evaulating libraries. Learning a library will also teach you about the problem the library solves, but to fully understand this it is also important to know how the library is implemented and which algorithms it uses. Finally, knowing many libraries will allow you write many types of programs quickly.

It would probably take you a few years to learn enough C++ features to be competent at the language; it's difficult to write maintainable C++ code without having a full understanding of its standard library and features. C++ is also difficult for beginners to learn because it requires a good understanding of how computers work in order for you to reason about the performance and behavior of your program.

In addition to learning C++, I would recommed learning a RISC assembly language such as ARM (I don't recommend x86 because it is difficult to reason about the performance of x86 assembly code) and the IEEE floating point standard and some basics about numerical computing. After learning the RISC assembly, you may also want to read about how x86 CPUs work and how caching and memory access is done. This can be ignored but it is difficult to write efficient code without a firm understanding of the architecture you are developing for, and many of the bugs that occur in C++ code are difficult to understand without knowing how stack frames are stored in memory or what a segmentation fault is.
1 2 3 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 7h 56m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 157
ProTech104
StarCraft: Brood War
Rain 688
NaDa 36
Terrorterran 28
LuMiX 3
Dota 2
NeuroSwarm123
Other Games
summit1g10173
Doublelift3202
JimRising 409
WinterStarcraft369
Mew2King35
Organizations
Other Games
gamesdonequick719
[ Show 14 non-featured ]
StarCraft 2
• Hupsaiya 98
• Light_VIP 9
• OhrlRock 1
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• Azhi_Dahaki8
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Stunt274
Other Games
• Scarra1112
Upcoming Events
Kung Fu Cup
7h 56m
Solar vs Rogue
herO vs TBD
BSL
16h 56m
Kyrie vs JDConan
Dewalt vs eOnzErG
Replay Cast
19h 56m
WardiTV Weekly
1d 8h
Ultimate Battle
1d 8h
Sparkling Tuna Cup
2 days
PiGosaur Cup
2 days
The PondCast
4 days
KCM Race Survival
4 days
Replay Cast
4 days
[ Show More ]
CranKy Ducklings
6 days
Liquipedia Results

Completed

Sijosae Cup
RSL Offline Finals
Underdog Cup 2026 Div 2-3

Ongoing

Acropolis #5
KCM Race Survival 2026 Season 4
International ShieldBattery League
BSL Season 23
IPSL Winter 2026-27
CSL Season 23: Qualifier 1
Sector 591
CSL Season 23: Qualifier 2
Kung Fu Cup 2026 Grand Finals
Calamity Cup Div. A Season 8
PGL Major Singapore 2026
Stake Ranked Episode 6
BLAST Rivals Fall 2026
IEM Beijing 2026
PGL Masters Bucharest 2026
Stake Ranked Episode 5
1win Private Club #2
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026

Upcoming

YSL S4
SC4ALL II: Brood War
CSL 2026 Winter (S23) - 3v3
CSL 2026 Winter (S23)
NBSL 2026 Xiamen LAN
BSL 23: Non-Korean Championship
BSL 2v2 Season 4
HSC XXX
Stellar Fest 2: Lunar Cup
StarCraft2 Weekly Open Tournament 2026 Grand Finals
SC4ALL II: StarCraft II
PGL Cluj-Napoca 2027
IEM Kraków 2027
PGL Bucharest 2027
BLAST Bounty Winter 2027
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.