Is this book still reliable anons?
>>108274158probably out of date by now
Works on my machine.If I had one criticism, it's that it's a bit limited. There are other things the language can do that aren't discussed in this book. I remember having to find other resources when I wanted to set up a toy server with C, even though all the tools required were in the standard library.
>he's still coding manually
>>108274158No. AI is superior.
>>108274158Read the King
>>108274254it isnt.also: you drink sperm.from various species.out of a frosted glass, topped with a mini umbrella
>>108274245Nigga fuck off I'm going to learn C and not vibe code unsecure shit.
>>108274333Found this one pretty helpful to get me started. The notes for the standards are neat as well.
>>108274523>learn C and not vibe code unsecure shit.So you're gonna code unsecure shit the regular way.
>>108274333This is what I useAnd I use Firefox to highlight the PDF, thank you Firefox
>>108274409Different person, but AI is genuinely a great resource for learning a coding language. Asking something like "Show me a minimal example of how to use X()" can be very useful. That said, I do own and read the book in OP.
>>108274158yes, it's completely fine. teaches you literally everything you need to know except for some file stuff and more powerful preprocessor things and in that case you can switch to beej for that. just do the examples and you'll be fine
>>108274158What is the equivalent of this for C# and the Unity game engine itself.
>>108274576LMAO
>>108274158Is C a good language for a beginner?
>>108275309Honestly its probably the best language for beginners, you build super strong foundational skills that will carry over to every other high level language you'll use. If I was starting today I would start with C
>>108275309in the sense that is absurdly manual and you need to learn everything almost froms cratch? , yesbut note that c doesnt match with modern isas, it doesnt work the way x86 does, so out of pointers its not that low level
>>108275309i always recommend that people learn c first. its really simple and really easy to make mistakes. C teaches all of the important concepts and ideas. it is hard to build abstractions because of a lack of generics, but when learning this is not important.
>>108274158>stillIt never was.
>>108276582how was it not reliable at any point? it was basically the only usable documentation for the language available when it came out
>>108274158As shown on the cover, it applies to ANSI C, aka C89.There are other later revisions of the C standard: C99, C11, C23, with their benefits and drawbacks.However C89 is the simplest of these and is easily supported by hobby compilers.Since the later standards are all extensions of C89, you can't go wrong with this book.
>>108276598>it was basically the only usable documentation for the language available when it came outProbably, but it's not a good book and C is not a good language.
>>108274158i'm reading it rn and i'm almost finished, at chapter 8 what should i read after this?
>>108276654>i'm going to do only a few, you do the restWhy the fuck are all books so useless.Always some "we're only going to scrape the surface", "we can't show it all", "read those other books instead" cop out.Why isn't there one fucking book author with the courage to do it all?
>>108276681Start studying source code and understand what it does.
>>108276654what book is that from?
>>108276703that seems daunting but what code do you recommend i look at
>>108276707"Learn C the hard way" course by Zed Shaw, I had to look it up.>>108276654>literally who criticising the inventors of the language, who also wrote 3 operating systems in that language>criticises textbook examples for not being production-ready>just to shill his $30 online course
>>108276716a lot of the suckless programs are good for that because they are quite smallnot all of them have comments though
>>108276731You're ignoring the damage that C and UNIX have caused. Designing a system based on 1970s hardware in a time of rapid innovation is way beyond retarded.
>>108276792both were already backwards back then
>>108276792is there a modern language that fixes this? Rust? Zig? Any other? Genuinely interested.
>>108276654Only bad programmers say C is a bad language, lol.
>>108274158yes my world renowned university is still teaching C using a deceased professors video lecture course from the early 2000s and using this book. don't fall for redditor tier doomer talk, you wouldn't take advice from a random homeless person on the corner and anonymous posters on the internet are no different. this stuff is important to learn and know.
>>108276792>system based on 1970s hardwareand yet somehow in 2026 they are still faster than all other languages and OSscurious that in >50y nobody has been able to come up with anything better
>>108277017the problem is that most languages nowadays derive from c instead of the better ones we had back then, rust ios probably the best, but honestly a pascal derivative would have been way way better, they are just not really used
>>108277017No, ZIG and Rust are incremental improvements.>>108277035Quite the opposite, sir. I can't negate the pragmatic nature of C but those pragmatic hacks are also a nuisance.
>>108277135pascal and C are basically the same language, they only differ in ways that are irrelevant. Stop parroting shit you read online well poisoning troon.
>>108277142>Quite the opposite, saarpicrel summarised:"C is terrible because it lets programmer do what they want and allows them to make really efficient simple systems."
>>1082771720 base count, null terminated arrays and many other shit are really bad designsread the unix haters handbook, i though it was a joke of lispobsessed old farts until i actually started to code in c
>>108277142what is that article or book?
>>108277197An article. A Brief History of Software Engineering b.https://mediaweb.saintleo.edu/Courses/COM430/M1Readings/A%20Brief%20History%20of%20Software%20Engineering.pdf
>>108275309Not really. The standard library is archaic and confusing and the need for manual memory management probably isn't the best thing to spend your time on when you're just starting out. For getting something useful done, Python is a better language. For purely learning (and thus having to build a lot of your program from scratch), Lua is probably better.
>>108277216thanks
>>108277135rust is best in absolutely nothingit's just another mess
>>108277194issues that are only issues for people who shouldn't be touching C. Like learn once shit, spending 5 seconds to check for eof or null, being cognizant of n-1, page aligning, using stdint, nulling freed pointer, etc. There's plenty of other languages with type safety and gutter bumpers if you require them. It's lack of safety is it's strength, yes it comes at a cost of needing to be careful. safetyfags lose a finger on a table saw and start blaming table saws, ironic really.
>>108275309honestly I would suggest you learn the basic concepts in a garbage collected language first and I don't recommend java/C# for this simply because they have their own shit that you "should" learn when you use them (OOP crap)what to use instead? maybe Go?
>>108275375>so out of pointers its not that low levelExplain.Other than system calls, and excluding shit that gets swept aside by the compiler preprocessor and types, I was under the impression that a C program had a pretty straightforward mapping to assembly?Actually curious, not trolling.I am aware that while oldfags even older than I (88fag here) consider C to not *strictly* be a low-level, it is still for all intents and purposes extremely close to low-level (especially when put on a spectrum with Python, C++, Java, C#, Visual Basic etc.)
>>108275309I wouldn't say so. You'll learn a lot of bad habits which you'll have to unlearn later when moving to more modern languages. Especially if you plan on learning C++ - start with modern C++ right away, otherwise you'll be a horrible C++ programmer with the legacy C baggage and no clue you could do much better. Otherwise, Python is pretty popular as a first-time language - much simpler than C++, yet still relatively powerful.
>>108277194>The UNIX-HATERS Handbook, by>Simson Garfinkel>Daniel Weise (Microsoft employee)>Steven Strassmann (Apple employee)>yes goy, don't use UNIX, just go back to using Windows like a good goyI have actually read it btw. It's drivel.>Complain that 'rm' removes files,>In chapter 1, complain that 'rm' doesn't ask for confirmation. In chapter 2, complain that another program (I forget which) asks for confirmation,>Complain about locking files (which is a problem on all OSs),>Complain about crashes (which ironically were way more common on Windows, even back then),>Complain that man pages exist,>Complain that error messages exist,>Complain that the command line exists,>Complain that programs do exactly what you tell them to,>Complain that sometimes the only way to fix a problem is to turn it off and on again (ironically only Windows has this feature),>Complain that root exists (even though Windows also has admin users)>Complain about Usenet and C++, which aren't part of UNIX,>Complain about X, which was designed at MIT, Garfinkel's alma-mater, not at Bell Labs (and ironically is faster than Windows desktop today)
>>108277277it maps to assembly, but the pdp11 one, not x86. x86 or arm have way more advanced shit that C natively doesnt map tonow the optimized compilers do make that c code to use a more optimized assembly, but that is exactly not being low level language, c being fast is bc of the extensive development of its compilers, not because of the languageif C was assembly like low level shit like ffpmeg wouldnt need to be 80% assembly
>>108277390Ah I see, much obliged
>>108277390you quite literally have a fundamental misunderstanding of what you're talking about.
>>108276731Have you read the original UNIX code? It does not hold up to today's standardshttps://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/mkdir.c
>>108277861>code from 40 years ago is not le heckin like todayexplain whats wrong with mkdir src.
>>108277883Buffer overflows
test
>>108277142Man, whoever wrote that slop deserves a reality check in the form of a beat down or a bullet between the eyes.
>>108278015maybe you need a reality check, its a historian article, people who knows software history all concur that c is shit and fucked up the software trends. c was the first slop language
>>108274158For the syntax but it's outdated, maybe using flags with gcc work .
>>108275309It's a hard language to learn but it's the most worth learning. Besides directly writing in assembly, C is about as close to the metal as currently relevant programming languages get and you should learn it for that reason. You will actually have to learn something about how programming works without abstracting things away with library function calls that hide huge amounts of operations. If you don't start with C, you will eventually have to come back to it so that you can understand the things that other languages hide from you.
>>108274570>GUYS LOOK AT ME I'M RETARDED AND UNWILLING TO BECAME BETTER AT SOMETHING, SO ARE YOUthis is how you sound
>>108274333hot garbage
>>108279992Too many pages for you?
>>108274333This book is far superior to OP's because it's written to actually teach people C, as opposed to being an impenetrable textbook that just dryly lists its features.
>>108274333Anyone recommending K&R over this is memeing you
>>108276688Nobody wants to read a book that's 2000 pages long. I have a whole folder of pirated ebooks that are like that, and I don't read them.
>>108275307Now that describes the code I’ve been seeing but haven’t been able to explain until now.
>>108277194> 0 base countEven C64 and gwbasic had zero-based arrays.You’re a Fortran-likker
>>108277390Inline assembly. Every year there are new instructions and new extensions. Not evry new instruction needs a new keyword… at best a new intrinsic.
>>108274576>>108274158KEK, which is better?! ANONS HELP!
>>108274576That was over a year ago. Even if it’s a couple of days, it’s obsolete. New models, new agi factor, etc.
>>108281022Doesn't save the user asking braindead questions
>>108276688>Why the fuck are all books so useless.>Always some "we're only going to scrape the surface", "we can't show it all", "read those other books instead" cop out.>Why isn't there one fucking book author with the courage to do it all?If you want to see for example a math book that tries to be dully self contained, see Differential Geometry from:topology.org
>>108281370>differential geometry>topologyHow about something that wasn't deprecated the minute computers were invented
Man if you codefags spent the effort from arguing about languages on actual work we'd have AGI by now I swear to god. There is no other field with nearly as much pointless duscussion about tools, standards, OSs, and other bullshit as the software field does.They should make an entire board for this codefaggotry if not for the fact that /g/ has been completely taken over by codefags and retarded codefaggotry is 90% of the traffic nowadays.
>>108276688Who cares about books? AI replaces them fully.
>>108280627In 2026 recommending a dead tree to learn C is asanine and is a path to failure. Plenty of better free material online by this point and you're better off learning something else anyways. Reading that book won't teach you any C that is used IRL
>check in on the esteemed 4chan technology board on this fine nigger Monday>People who've never written a line of production code who are 100% sure "C is dead">An edgelord post from Zed Shaw like anyone gives a shit because apparently we're in 2008>Retards who literally cannot read a physical book extremely angry that others partake in ancient arts>Talk about Rust and Zig like they're anything other than the Haskell of the 2020's (OCaml is coming back any day now too guise, Jane Street btw)>AI Dipshits who can't code assuring us coding is dead, proving that there is no justice in the universe as they are typing comfortably at their keyboards instead of burning alive in keroseneThe vast majority of you should find a sharp piece of glass and eat as much of it as you can.
>>108281923Coding died with unix code monkeywhose gonna write allat when I can just tr | tr | sort | uniq | sortIf I really need a new command (YAGNI) an AI can write it for you