← Home ← Back to /g/

Thread 107158245

37 posts 2 images /g/
Anonymous No.107158245 [Report] >>107158262 >>107158276 >>107158278 >>107158286 >>107158413 >>107158570 >>107158872 >>107161824 >>107162087 >>107162908 >>107163604
should i put effort into learning C or C++?
Anonymous No.107158262 [Report]
>>107158245 (OP)
C is bar none the most fun programming language i've ever worked in, especially doing low level stuff on microcontrollers, the book is good and you can get a bundle discount on programming socks
Anonymous No.107158276 [Report]
>>107158245 (OP)
C is the latin of computer languages, except it is actually still used
learn it, and most other languages become trivial to learn, barring different types of languages like lisp or haskell
Anonymous No.107158278 [Report]
>>107158245 (OP)
Learn both...you don't have to be hella proficient but you need to be familiar with it PERIOD
Anonymous No.107158285 [Report] >>107163604
also, those old unix books are surprisingly readable, interesting, and to the point
Anonymous No.107158286 [Report] >>107158298
>>107158245 (OP)
effort required to learn C (not sepples) is minimal, if you find the core language to be hard you're probably medically retarded
Anonymous No.107158298 [Report] >>107163490
>>107158286
core language and libc*
Anonymous No.107158345 [Report] >>107158363
Nah, learn Javascript instead. Far more useful, and might actually land you a job. C is for smelly nerds
Anonymous No.107158363 [Report]
>>107158345
if you can program C and adhere to it's rules, then you can immediately program javascript
it doesn't work the other way around because of how fucking retarded javascripts design is
Anonymous No.107158413 [Report] >>107158979 >>107159458 >>107159472
>>107158245 (OP)
No, but you should know a bit of C on a theoretical level. Don't listen to NEETs, Vibe coders and boomers. If you really want a Job in todays cloud world, learn Golang instead of C and Rust instead of C++. COBOL could also bei VERY useful, if you have to maintain boomer code.
Or get a Mac and learn Swift.

But if you are not interested in making money, be a hobby fag, learn c++ and get into reverse engineering and contribute to Emulators and get into Linux and support FOSS Projects like KDE.
Anonymous No.107158570 [Report]
>>107158245 (OP)
C is one thing, but do you have a reason to learn C++? i'm not sure it's worth the effort, and i say this as a fan of the language. the learning curve is very steep and unless you have a goal in mind it's not going to stick
Anonymous No.107158729 [Report] >>107158849
Nah, learn C instead. Far more useful, and might actually land you a job. Javascript is for brainless normaltards.
Anonymous No.107158735 [Report] >>107158749
depends what you want to do
HFT is all C++
Anonymous No.107158749 [Report] >>107158770
>>107158735
>HFT
human female testosterone?
Anonymous No.107158770 [Report]
>>107158749
High Femboy Technology, like Fortnite / Unreal Engine.
Anonymous No.107158849 [Report]
>>107158729
What kind of jobs let you write C? I've looked into embedded development before and the job listings I've seen wanted an electronics engineering degree or similar as opposed to a CS degree.
Anonymous No.107158856 [Report] >>107158888 >>107160322
Dumb niggers. C++ is valuable because of its OOP. Try writing a game or anything substantial over about 5k lines of code without using OOP, it's a fucking nightmare.
Anonymous No.107158872 [Report]
>>107158245 (OP)
>should i put effort into learning C or C++?
Yeah, but that K&R book isn't going to provide you with enough information and it'll take you a lot of time to master it. Learning all of the ways to avoid undefined behavior is difficult enough and the way you type expressions to define processes is also difficult because the same keywords and types can be used in many ways to mean more than one thing due to the small size of the codebase. There is a lot of figuring shit out yourself rather than handholding tutorials, documentation and youtube videos. Debugging seems to be the only reliable way to really understand how to write good C code and that takes a considerable amount of time as well. People hate using C for these exact issues, but its very barebones design is what gets it put on ICs and it also enables people to write anything with outstanding reliability whereas any newer language that is used to make programming easier tends to create its own problems that in turn hinders performance and severely limits the potential areas where they can be deployed. What do you plan on making with C anyways? It's not like python at all, you know.
Anonymous No.107158888 [Report]
>>107158856
You can do OOP in C just as well, with ADTs.
Anonymous No.107158979 [Report] >>107159018
>>107158413
>and Rust instead of C++
AHAHAHAHAHAHAHAH
yet another clueless fresh grad without a job giving "career advice"
Anonymous No.107159018 [Report]
>>107158979
>yet another clueless fresh grad without a job giving "career advice"
Occam's racer, anon. It's just a tranny.
Anonymous No.107159458 [Report]
>>107158413
>If you really want a Job in todays cloud world, learn Golang instead of C and Rust instead of C++
Even the Rust subreddit often says to consider C++ instead of Rust if your goal is employment.
Anonymous No.107159472 [Report]
>>107158413
Tranny
Anonymous No.107160000 [Report]
K&R is a great book. It's worth going through the book even if you don't plan to devote a lot of energy to C. Same with SICP and Scheme.
Anonymous No.107160322 [Report]
>>107158856
the current buzzword for game dev is data-oriented design, not OOP
Anonymous No.107161737 [Report]
lol
Anonymous No.107161824 [Report]
>>107158245 (OP)
C is very simple so its very easy to pick up
Anonymous No.107162087 [Report]
>>107158245 (OP)
learn c then throw in the c++ class and template system at the end
that covers 99% of what you'll do with either language
most codebases haven't bothered to use features from c++11 onward so a "c with classes" perspective is what you'll encounter most of the time
Anonymous No.107162908 [Report] >>107163501
>>107158245 (OP)
Generally, people that learn C as their first language have little difficulty picking up C++ (or most other ALGOL-descended languages), but people that learn C++ first have trouble learning anything else.
Anonymous No.107163490 [Report]
>>107158298
the best way to learn C is to recreate its standard library. especially if you want to know the language but don't have any project ideas. it's how I'm doing it. its also a good way to learn pointer arithmetic. e.g.
```
int strlen(char *str)
{
int i = 0;
while (*str++)
i++;
return (i);
}
```
Anonymous No.107163501 [Report] >>107163527 >>107163551
>>107162908
```test
test
test```
Anonymous No.107163527 [Report] >>107163541 >>107163543
>>107163501
why isn't it working
Anonymous No.107163541 [Report]
>>107163527
Read the sticky.
>>105076684
Anonymous No.107163543 [Report]
>>107163527
read the fucking sticky
Anonymous No.107163551 [Report]
>>107163501
<code>printf("retard\n");</code>
Replace <> with []. 4chan doesn't use Markdown.
Anonymous No.107163604 [Report]
>>107158245 (OP)
there is no 'learning C'
you can learn general principles of base software constructs (branching, loops) and you can learn about pointers. C is just the application of these most basic ideas. to learn C for someone who understands these basic ideas is equivalent to teaching a classically trained orchestra musician how to hum, or an olympic athlete how to jog.
to learn C++ is a never ending and rewardless struggle, the syntax is designed to be non intuitive and confusing. learning (modern) cpp is akin to teaching a monkey to fly a rocket to the moon; a task that many cretins on this board will teach you is simple after all we already went to the moon, we already put a monkey in space, monkeys can already communicate via sign language. so yes of course at first glance it seems like an excellent idea, until you realise that each of these facts are lies and the project was doomed to fail from the start.
so to answer your question more succinctly: 'no'
>>107158285
i find this true of any subject. to learn the principles of any subject at all simply find an old book about it.
Anonymous No.107163873 [Report]
you can learn from him, he's doing some C now
https://www.twitch.tv/tsoding