Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Get Good at Programming

Name: Anonymous 2013-11-16 1:58

Serious question. How do I get good? I know C and Java but I don't really know programming outside of loops and pointers and simple programming exercises and shit. When I try to read source code from a small open source C project, I get daunted and just stop before I even begin because everything just looks alien to me. There are stuff like makefiles and shit. It makes me sad. I don't even know data structures yet. I want to read SICP but I'm not comfortable with it yet so I'm reserving that book when I've amassed enough background.

Name: >>20 2013-11-16 2:09

Read K&R.

Name: Anonymous 2013-11-16 2:38

>>2

Well yea I have

Name: Anonymous 2013-11-16 2:39

How do you get good at building with legos?

You learn how to use pieces, and you build things. You learn how to use more pieces, and you build more things.

Same with programming - learn how to use some aspect of the language, and make a small program that showcases that thing.

Name: Anonymous 2013-11-16 3:26

>>1
You could try "Land of Lisp" and see if it works for you. The zeroth law of teaching is that not everyone learns the same way, so it's better to try various (good) textbooks/approaches and see which works best.

Name: Anonymous 2013-11-16 7:38

>>4
I know about that. I always break my programs (read: programming homeworks) in to very small and manageable components but I lack the advanced stuff that I normally see when I browse github or HN.

Name: Anonymous 2013-11-16 12:40

>>6
Try making a ``big'' project for the first time in your life.

Name: Anonymous 2013-11-16 12:51

>>7
That's the problem. I can't.

Name: Anonymous 2013-11-16 13:22

>>8
You can. Here are the building blocks you need.

http://mitpress.mit.edu/sicp/full-text/book/book.html

Name: Anonymous 2013-11-16 14:04

Name: Anonymous 2013-11-16 20:21

>>8
Are you retarded or something? Let's say you want to make a text game.

* You start by making a grid of randomly put #s, which will be the walls. Make it so you are a * that can move around the grid, obviously without walking through walls.

* Put some $s there. You will add 1 to the variable money every time you pick one. You surely can do that, or is that too big and scary for you?

* Add other player, ^. Make it move under the same rules using other controls.

* Add little things until you realize you have created a full-fledged console game.

Is it that hard? Looks like you don't even have enough motivation to program. Maybe you should scrub toilets, vaccinate horses or have epic raves with your epic friends.

Name: Anonymous 2013-11-16 20:49

>>1
Read SICP and K&R, seriously. Then go with Learn You a Haskell. After that the classic Data Structures and Algorithms.
When you finish all those books you may start with some problem sets like Project Euler, IPSC, ACM ICPC, etc.

Name: Anonymous 2013-11-16 21:37

I want to read SICP but I'm not comfortable with it yet
Why not?

Name: Anonymous 2013-11-16 23:57

>>12
Haskell: A turdcoated turd is still a turd

Name: Anonymous 2013-11-17 0:48

>>14
How does it feel to be too dumb for a powerful language?

Name: Anonymous 2013-11-17 2:38

>>15
I am already well-versed in Lisp, so I don't know, you tell me.

Name: Anonymous 2013-11-17 18:34

>>15,16
Haskell
Lisp
GC is shit.

Name: Anonymous 2013-11-17 21:08

>>17
Manual memory allocation is greaSegmentation fault.

Name: Anonymous 2013-11-18 22:08

>>18
Toy language lover tsk.

Name: Anonymous 2013-11-18 23:09

>>19
Promoter of unsafe languages NSA shill tsk.

Name: Anonymous 2013-11-19 0:59

>>20
How could the NSA possibly exploit a segmentation fault?

Name: Anonymous 2013-11-19 2:09

>>1
The people that tell you books are the way to go are right. I wish they weren't, but even relatively clean open source projects are not well commented (nor do they need to be). K&R is a start; after that, sit down with a function from some random project and figure out what it does. If you find a function call, then go and look at that function, and so on until you are working with stdlib calls. Hopefully you won't pick two mutually calling functions ha ha.

Name: Anonymous 2013-11-19 5:10

>>21
How do you break into shell prompt?

On the topic of Go:
Too many things wrong with it, that Scheme and Common Lisp already solved. Why create another ALGOL syntax, when you can roll your own?

Name: Anonymous 2013-11-19 5:23

>>22>
I wish they weren't
FUCK YOU

Name: Anonymous 2013-11-19 8:14

>>23
Too many things wrong with it, that Scheme and Common Lisp already solved. Why create another ALGOL syntax, when you can roll your own?
The answer, my friend, is blowing in the wind, the answer is blowing in the wind.

Name: Anonymous 2013-11-19 11:55

>>1
You don't know how to use make files?!!!

Name: fortune -h baby 2013-11-19 13:08

>>26
touch love

Name: Anonymous 2013-11-19 23:23

>>24
I find your boundaries confining.

Name: Anonymous 2013-11-23 7:16

>>28
I find your confinement arousing.

Name: quantum dot 2013-11-23 23:10

>>29
I have no mouth and I must scream.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List