d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > How To Get Deeper Into C/c++? > I Dont Really Know How To
12Next
Add Reply New Topic New Poll
Member
Posts: 10,000
Joined: Nov 17 2013
Gold: 13,531.27
May 20 2014 09:20pm
I learned the basics of C++, but dont really know how to get better.. :(

github etc..i have no clue...where to get good sourcecode? its so confusing.

Where can i find advanced projects that are understandable? that i can download, and study the source code..

If i download projects for MVisualstudio, they often just dont work, cuz developped years ago etc..(or am i just doing it wrong?)..its annoying.



To make it short: I think the best method to get better after learning the basics is to study and execute sourcecode from pros..but where the hell do i get that sourcecode?

really would be thankful for suggestions, or code-sharing-websites which guys who are good at programming are using :)



Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
May 20 2014 09:46pm
Quote (moosedoesmeow @ May 20 2014 11:20pm)
I learned the basics of C++, but dont really know how to get better.. :(

github etc..i have no clue...where to get good sourcecode? its so confusing.

Where can i find advanced projects that are understandable? that i can download, and study the source code..

If i download projects for MVisualstudio, they often just dont work, cuz developped years ago etc..(or am i just doing it wrong?)..its annoying.



To make it short: I think the best method to get better after learning the basics is to study and execute sourcecode from pros..but where the hell do i get that sourcecode?

really would be thankful for suggestions, or code-sharing-websites which guys who are good at programming are using  :)


why dont you think of a project you'd like to make and make it? how about a notepad clone? then add new features (formatting text, highlight, find/replace, etc)

a project i started a while back was my own front end for youtube metadata. the channels i followed had a LOT of playlists, and it was too difficult to use the standard youtube site to find what i wanted, so i used the APIs to build my own playlist browser. that eventually turned into a subscription manager and a general video browser for certain channels.
Member
Posts: 10,000
Joined: Nov 17 2013
Gold: 13,531.27
May 20 2014 10:00pm
Quote (carteblanche @ May 21 2014 04:46am)
why dont you think of a project you'd like to make and make it? how about a notepad clone? then add new features (formatting text, highlight, find/replace, etc)

because i have no idea how to do that.

additionally, id like the sourcecode of notepad more than writing it myself. writing applications that alrdy exist is not what i want
Member
Posts: 1,995
Joined: Jun 28 2006
Gold: 7.41
May 20 2014 10:13pm
Quote (moosedoesmeow @ May 20 2014 11:00pm)
because i have no idea how to do that.

additionally, id like the sourcecode of notepad more than writing it myself. writing applications that alrdy exist is not what i want


Why is it that every newcomer to programmer's asked the exact same question. And when we give them the exact same answer we always do, they respond like this.

Start small. Learn by doing.
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
May 20 2014 10:20pm
Quote (moosedoesmeow @ May 21 2014 12:00am)
because i have no idea how to do that.

additionally, id like the sourcecode of notepad more than writing it myself. writing applications that alrdy exist is not what i want


then what are your goals? how are you defining "get better at c++" if you're not writing code?

i would not recommend a beginner looking into someone else's source code for a semi-complex app. too many things can go wrong. a few examples:

- source was poorly written, you'll end up confused
- no comments, so you won't know what's going on
- it's fairly well designed, but you don't understand enough about design to know what's happening
- it's very robust. you would write 1 line of code to accomplish something, but you see 10 lines to do it in a safe way, but you have no idea what exactly they're accomplishing
- it's highly optimized at the cost of readability, and you won't know what's going on
- as you found, a lot of projects involve other parts, and can be difficult to build yourself.

assuming you want to improve, i suggest you learn more programming in general and focus less on c++ as a language. learn some design patterns and use them. you need experience. also look into popular libraries to use.
Member
Posts: 10,000
Joined: Nov 17 2013
Gold: 13,531.27
May 20 2014 10:28pm
Quote (carteblanche @ May 21 2014 05:20am)
then what are your goals? how are you defining "get better at c++" if you're not writing code?

i would not recommend a beginner looking into someone else's source code for a semi-complex app. too many things can go wrong. a few examples:

- source was poorly written, you'll end up confused
- no comments, so you won't know what's going on
- it's fairly well designed, but you don't understand enough about design to know what's happening
- it's very robust. you would write 1 line of code to accomplish something, but you see 10 lines to do it in a safe way, but you have no idea what exactly they're accomplishing
- it's highly optimized at the cost of readability, and you won't know what's going on
- as you found, a lot of projects involve other parts, and can be difficult to build yourself.

assuming you want to improve, i suggest you learn more programming in general and focus less on c++ as a language. learn some design patterns and use them. you need experience. also look into popular libraries to use.

I appreciate your suggestions, but again..arent good programmers not only learning by doing, but by looking what others do?

I dont believe that learning by doing works so well. I worked well at the beginning as complete noob, yeah...

Well obviously i have to continue to read some random code since you dont provide any.

Learning by doing is a good thing, but you cant learn everything. You have to look at good coders to see whats possible to accomplish.
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
May 20 2014 10:37pm
http://forums.d2jsp.org/topic.php?t=63460879&f=120

that's a blog i follow. he has various code snippets. he's been improving over time.

This post was edited by carteblanche on May 20 2014 10:39pm
Member
Posts: 10,000
Joined: Nov 17 2013
Gold: 13,531.27
May 20 2014 11:57pm
Quote (carteblanche @ May 21 2014 05:37am)
http://forums.d2jsp.org/topic.php?t=63460879&f=120

that's a blog i follow. he has various code snippets. he's been improving over time.


a bit higher niveau, if its possible :)

2nd code in this topic isnt even working as intented
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
May 21 2014 06:55am
i don't deal with c++, but you might be interested in java's source code for the standard library.

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

install the jdk, and you'll see a src.zip file in there. the standard library is open source (concurrency, collections, io, etc)

there's also javascript if you're interested in it. loads of plugins you can look at. stay away from minified code unless you want headaches. for example: http://underscorejs.org/underscore.js vs http://underscorejs.org/underscore-min.js
Member
Posts: 1,241
Joined: Jun 25 2011
Gold: Locked
May 21 2014 11:16am
Quote (moosedoesmeow @ May 21 2014 06:28am)
I appreciate your suggestions, but again..arent good programmers not only learning by doing, but by looking what others do?

I dont believe that learning by doing works so well. I worked well at the beginning as complete noob, yeah...

Well obviously i have to continue to read some random code since you dont provide any.

Learning by doing is a good thing, but you cant learn everything. You have to look at good coders to see whats possible to accomplish.


In my opinion the most reliable way to learn a language is to practice it. Idc if that program has already been done. Running into obstacles is what makes you think and ultimately know said language, not just passively looking at other people's solutions
Go Back To Programming & Development Topic List
12Next
Add Reply New Topic New Poll