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

Pages: 1-

C Tutorial

Name: Anonymous 2009-04-09 5:50

Hey, I know some basics of Python, C++ and Lua programming - especially Python. But now I want to dive deeper into the world of C++ and therefore I thought that I definetely should start with C if I want to understand it completely and be able to read already available sources. Anyone got a good recommendation for a C tutorial? (Crash-course would be great, something I can read in 2-3 hours)

Name: Anonymous 2009-04-09 5:55

Brian W. Kernighan; Dennis M. Ritchie (March 1988). The C Programming Language (2nd ed.). Englewood Cliffs, NJ: Prentice Hall. ISBN 0-13-110362-8. http://cm.bell-labs.com/cm/cs/cbook/.

Name: Anonymous 2009-04-09 5:59

>>2
Doesn't look like a crash-course dude, and it isn't free either.

Name: Anonymous 2009-04-09 8:15

>>1,3
C++
understand it completely
in 2-3 hours
free

Name: Anonymous 2009-04-09 9:14

>>1
I want to dive deeper into the world of C++ and therefore I thought that I definetely should start with C
No. C and Sepples are two completely different languages with completely different methodologies. If you write C code in Sepples you are more of an idiot than he who writes Sepples code in Sepples.

If you're going to shove a monkey up your ass, you might as well do it the right way. Purchase a copy of Accelerated Sepples1, The Sepples Standard Library2, Modern Sepples Design3, and optionally Sepples Coding Standards4.
                            
References:
[1] http://www.amazon.com/Accelerated-Practical-Programming-Example-Depth/dp/020170353X
[2] http://www.amazon.com/C-Standard-Library-Tutorial-Reference/dp/0201379260
[3] http://www.amazon.com/Modern-Design-Programming-Patterns-Depth/dp/0201704315
[4] http://www.amazon.com/Coding-Standards-Guidelines-Practices-Depth/dp/0321113586/ref=pd_sim_b_2

Name: Anonymous 2009-04-09 9:35

Name: Anonymous 2009-04-09 10:12

Name: Anonymous 2009-04-09 10:25

XDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD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DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

Name: Anonymous 2009-04-09 16:28

>>1
I want to dive deeper into the world of C++
No, no you don't.

Name: Anonymous 2009-04-09 16:57

>>9
Auto mutilation can be rewarding for BSD users.

Name: Anonymous 2009-04-09 17:31

>>10
s/Auto/Self-
(づの‿の)づ

Name: Anonymous 2009-04-09 17:42

s/>>11//

Name: Anonymous 2009-04-09 17:47

>>12
0 matches

Name: Anonymous 2009-04-09 17:56

>>10
Let's not judge others. But only try to improve ourselves.

Name: Anonymous 2009-04-09 17:56

>>9
Hey 9, a serious question then. Is there any other language which compares to C/C++ in speed and functionality and is, according to your opinion "better"?

inb4("SICP", "LISP", "Scheme", "YHBT", "HIBT")

Name: Anonymous 2009-04-09 18:00

>>15
Well there's assembly ;), but seriously C and C++ are not the same thing so don't lump them together. Good C programmers are not necessarily good C++ programmers and vice versa.

Name: Anonymous 2009-04-09 18:02

>>16
C and C++ are not the same thing so don't lump them together.
This.

Name: Anonymous 2009-04-09 18:06

>>15
Define "speed" and "functionality."
Speed as in execution speed? Programming time?
Functionality as in standard libraries available? Or functionality from what the language provides?

My vote goes to Python either way. It's fast enough, it's easy and quick to program in, and trounces Sepples in the functionality department, from the point of view of both language and standard library features.

Name: Anonymous 2009-04-09 19:18

>>16,17
List some differences which aren't superficial syntactical changes. Go on

Name: cryzed !cRyzeDjBkQ 2009-04-09 19:22

>>18
I have to agree with you, I love Python aswell. Something that annoys me a bit though, is actually really the forced indentation of code. It's really not necessary, Lua-like scope-limiters would do the job aswell, you don't even need curly brackets. What's so bad about this

def function(parameter):
    x = do_something(parameter + 1, "Hello %s" % "/prog/")
    return x
end


or alternatively
def function(parameter)
{
    x = do_something(parameter + 1, "Hello %s" % "/prog/")
    return x
}


I don't think that will ever happen though.

Name: Anonymous 2009-04-09 19:29

>>20
What's so bad about this

def function(parameter):
    x = do_something(parameter + 1, "Hello %s" % "/prog/")
    return x

Name: Anonymous 2009-04-09 19:32

>>19
Uh, the massive amount of shit and fail haphazardly bolted on to C++?

Name: Anonymous 2009-04-09 19:32

Name: cryzed !cRyzeDjBkQ 2009-04-09 19:43

>>21
Well, the thing is, you can't really decide how you want to format your own code. Sure, you can decide between the amount of spaces/tabs you use, but that's as far as it goes. For example, if I posted your code on /g/ the formatting would be lost, that simply happens because the superfluous whitespaces are removed. If you had proper scope limiters you could

1. Post your code everywhere on any form without worrying that it may fuck up your code
2. Make your code extremely compact (That's rather useless though)

Name: Anonymous 2009-04-09 19:51

>>24
Well, the thing is, you can't really decide how you want to format your own code.
That's awesome. It significantly reduces the amount of unnecessary bikeshedding.

Sure, you can decide between the amount of spaces/tabs you use, but that's as far as it goes.
Unfortunately that's still possible.

For example, if I posted your code on /g/ the formatting would be lost, that simply happens because the superfluous whitespaces are removed.
Why the fuck would you want to post anything on /g/? If a site doesn't have a way to preserve source code in its original form, I see no reason to use it for discussing programming.

Name: Anonymous 2009-04-09 20:24

>>19
List some differences which aren't superficial syntactical changes. Go on

I shall, but first list some differences between C/python/brainfuck/x86 assembly/lisp/haskell/befunge/intercal/... which aren't superficial syntactical changes. After all, they're all Turing Complete.

Name: Anonymous 2009-04-09 20:30

>>26
Bringing Turing completeness into discussion about programming languages is about as clever as a typical xkcd strip.

Name: Anonymous 2009-04-09 20:41

>>27
It wasn't supposed to be clever, it was supposed to shut him up.

Name: Anonymous 2009-04-09 20:51

>>28
You're a moron. There have already been two more constructive replies to "shut him up".

Name: Anonymous 2009-04-09 22:00

>>26
Classic strawman. Go you.

Name: Anonymous 2009-04-09 22:04

TOURING COMPLETE

Name: Anonymous 2009-04-09 22:19

>>15
Well, I'd recommend Lisp, but it has too much functionality to satisfy your query. I don't know of anything as weak as C or C++ that I'd really recommend.

Name: Anonymous 2009-04-09 22:29

☻/
/▌
/ \
this is the sussman copy and paste the sussman and he will soon take over /prog/...

Name: Anonymous 2009-04-09 22:31

>>33
Shut the fuck up, and kill yourself.

Name: Anonymous 2009-04-09 23:33

>>34
That's not cool, dude. We were meant to be friends, and I can tolerate the occasional joshing around, but you've just crossed the line right there.

Name: Anonymous 2009-04-09 23:37

I agree with >>33 >>34 should end his life as soon as possible.

Name: cryzed !cRyzeDjBkQ 2009-04-10 4:42

>>25
Well, ok, those are sure some good arguments. I'll just leave it at that - thanks for your opinion.

Name: Anonymous 2009-04-10 5:21

>>37
The point is: why do you need to format your code in a specific way? Is it for the same reason you're a tripfag - lacking substance, you try to express yourself through superficial means?

The point about losing formatting on broken websites is pretty much moot. Any `decent' programming forum (as in ``a place, meeting, or medium where ideas and views on a particular issue can be exchanged'', not ``a shitty PHP-based wasteland for clueless fucktards with huge egos and even huger signature blocks'') has a method to transfer code segments verbatim.

Name: Haxus the Great 2009-04-10 8:18

Haxus the Great

Name: Anonymous 2010-12-24 22:04


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