Let me hear your incredibly roundabout reasonings for why it's useful to know the stupidest language in existence that sits on its ass spitting out an error if you don't tell it that the variable you assigned to a string is a string and shits the bed making your computer consume an ever ballooning amount of memory if at any point you forget to tell it to free the memory space for a piece of data after it's moved onto something else.
We don't write code on wood-panelled computers anymore. And even when they did people didn't like it.
(You). I couldn't even be bothered to finish reading your post.
Liam Reed
gotta go fast
Aaron Price
>C >strings get out
Elijah Rogers
...
Grayson Young
>implying $20 every 6 months is a lot of money to spend on haircut
Grayson Ortiz
C BTFO
Justin Brown
Okay, whats the language used to write the compiler/interpreter of your favorite language?
Jackson Roberts
Rust or C++
Joshua Evans
Because I'm not a cock-guzzling web dev that thinks Javascript is real programming. I work on embedded systems where performance matters and most other languages don't cut it.
Luis Bennett
>every 6 months Wow. You shower once a week too?
Dominic Walker
>Why are you writing in your language of choice? >YOU should write in MY language of choice, because... uh... Consider your average 100-IQ person. They are kinda stupid, no? Then consider that 50% of the world's population is even stupider than that. And then comes OP.
Jace Scott
>t. webdev
Isaac Turner
I smell webdev
Caleb Bennett
>"C is the BEST!!" >Didn't have a native bool type until the year 1999
Noah Walker
utterly disgusting
Isaiah Lee
>Embedded shit >Real programming Writing "write-only" procedural synchronous crap and incrementing variable to loop =/= real programming, pajeet.
Benjamin Fisher
>strings wat >not liking static typing go away webshit
Christopher Sanders
>t. Rajesh incrementing variable to loop
Ryan Barnes
>Baby couldn't understand pointers. Point and laugh people
Jaxon Nelson
>not shaving your head with a foil shaver
Lol @ skull-lets and necklets who can't pull off a skinhead. The way modern men cling to their hair is a fucking disgrace. They tie it to their confidence for some reason.
Alexander Martin
brainlet
Austin Sanchez
I'm in HPC and writing my code in C saves tens of thousands of hours of CPU time a pop.
Ayden Long
>can't even create his own foreach macros
Thomas Martin
>Rajesh using foreach or for You're now Bombay IT specialist, right?
Adam Perry
Are you an FP weenie? >can't even optimize his recursive algorithm into an iterative one
Ethan Sullivan
>Rajesh can't into FP D33P Bombay it specialist knowledge about programming and computer science.
Chase Diaz
Yeah, I'm very impressed with your CS knowledge which consists of "FP is da best!!!111" First year CS, such an innocent time...
Jason Campbell
Yeah, yeah, FP is shit, Rajesh. Because of with FP you need to think and with imperative style you can poo in ide. Now go to shitting Street, Rajesh, no one welcome's pajeets here.
Brayden Hughes
>man recursion is like totally a mind fuck bro phear my mad skillz It makes it easier to design algorithms not harder. And it's just the first step before you turn it into an efficient DP version if you care at all about efficiency unlike webshits.
Eli Miller
Rajesh, this is not board for brown people, go away and increment variable to loop.
Jaxson Brooks
Amateur millennials complaining about the best procedural language to-date... Expected.
Let me tell you, my dear n00b, there's a reason that so many people are still using C, and it's not because of habit or nostalgia. It's because it doesn't hold your hand like you're some kind of retarded person. You make a mistake, you pay for it. This notion is unfortunately lost at your pampered generation...
David Ross
C is fun. You have to know what exactly the computer and OS are doing but it's not as onerous as assembly.
Isaac Nguyen
>Let me hear your incredibly roundabout reasonings for why it's useful to know the stupidest language in existence Because the interpreter for whatever your favorite language is, is written in C or C++ most likely. You will not understand how it works and how everything is laid out in memory if you do not understand C.
>that sits on its ass spitting out an error if you don't tell it that the variable you assigned to a string is a string Not a fan of static typing?
>and shits the bed making your computer consume an ever ballooning amount of memory if at any point you forget to tell it to free the memory space for a piece of data after it's moved onto something else. Well let's look at the alternatives to this. You could use a garbage collected language, but garbage collectors have their own problems. Many of them are "stop the world", meaning that every thread has to stop executing so that memory can be cleaned up. Furthermore, there is a degree of intolerable non-determinism involved. I must confess that I have had to invoke the garbage collector in Java manually at least once when processing a large file, because it actually crashed due to being unable to allocate new memory. Incidentally, if you want to use a garbage collector in C, go look up Boehm's GC.
The other alternative is RAII. Here, you're replacing manually deallocating at every function with manually deallocating in a destructor. Fortunately, in both Rust and C++, you don't really have to do much writing of destructors if you use smart pointers and vectors everywhere. Unfortunately, you still have to do manual deallocation when you're dealing with cyclical data structures.
Regardless, no matter what the language, if you peel a few layers out, you'll see some manual memory management going on. Computer programs aren't magic. Someone has to write the code to deallocate resources like memory.
James Edwards
>Procedural language >Best
Tyler Johnson
>native bool Get out
Samuel Thomas
Procedural programming is one of the simplest paradigms out there. I honestly think it needs a renaissance.
>thinks incrementing a variable for iteration is a bad thing How the hell do you think this crap works under the hood? You're doing the same shit; it's just hidden from you.
David Hall
Because you're pajeet who can't into architecture?
Landon Powell
Epic troll, mate. Now please stop Dunning-Krugering all over this thread.
Samuel Jones
>C is fun.
This. For work I can use other, supposedly more modern languages. But for hobby projects, I absolutely low C.
Plus it allows easy mixing with assembly when needed...
Liam Sanchez
As someone who've programmed C for a living for 6 years, anyone claiming that "programming C is fun" is either new to C or full of horseshit.
You program C because you have to, not because it's fun.
Julian Clark
Rajesh, go away
Brayden Butler
I feel sorry for you man, you must have worked on some shit projects. I genuinely enjoy well written C (btw. I'm writing C for over 10 years, but never for a living, it can change a perspective).
Matthew Phillips
"I'm a shitty web developer who would rather write his websites in Flash and I've never ever used C in my life, but I hate it because it actually requires me to understand the underlying system and that would actually involve effort" the post.
But your kind literally drive up the wages for high end programming jobs after employers get burned by your shitty code (usually literally), so whatever.
John Rodriguez
>Everyone who thinks differently from me or has different preferences than me is an Indian user, a desire to keep things simple is not a sign of simple-mindedness, nor of an inability to engineer complexity. But strictly speaking, is it not ideal to reduce complexity to make a program easier to read, write, and maintain?
In any case, have a red pill on Object Oriented Programming being basically useless.
pls gib font and color scheme and terminal settings.
Noah White
I think at this point you might just be talking out your ass.
Kevin Richardson
>at this point
Elijah Morales
>Sites on flash Is this true that all c pajeets are stuck in the 90's?
Alexander Richardson
Is OP one of those poor kiddos who was forced to learn C as unnecessary prerequisite for C++ in some absolutely shit course?
Levi Bailey
You realize that booleans are just a 1 bit integer right?
Parker Morgan
Yes, it is not a language made for idiots and codemonkeys. You are describing a use case C was not designed for, it is NOT a highlevel scripting language. It was always used as a general purpose high performance language. And if you care about performance you NEED to have some drawbacks, like the typing in C. You wouldn't want to use on OS written in javascript, it would be insanity and probably not work very well.
If you don't realize that different languages have different strengths then I suggest that you learn a bit more about Computers.
Luke Wood
#include #include
int main(void) { printf("%ul\n", sizeof(true)); return 0; }
>> 4
Wasting 31 bits by using shitty GNU extension that causes issues when porting on other systems. Sounds like win to me.
Nicholas Myers
Weak and forced
Hunter Ortiz
1. I do not see any GNU extensions in here. I just see standards compliant ISO C99 or C11. 2. Since true and false are defined to integer constants, of course they are going to be by default the size of an int despite the fact that they can be stored in smaller data types. If you take sizeof(bool), however, you will get 1.
John Mitchell
...
Luis Foster
Even if it was an actual single bit, it wouldn't matter, registers in modern x86 computers are 32 or 64 bit wide.
Justin Watson
if you don't know C, then you don't really know what you're doing as a programmer. Learn C, or stay Pajeet.
Dominic Brooks
Is C really unnecessary to learn C++ though?
Luis Sanchez
>what is alignment
Oliver Lopez
Yes and no. Pretty much every bit of it will come up sooner or later when writing C++, particularly when dealing with libraries which tend to be either intended for C or styled after it.
That said however, you don't need to learn it and it's irritating quirks separately to use C++ effectively and you would be best off not introducing people to C++ through C, lest you turn them all off low level development forever and create even more Electron-app-creating idiots.
Ryder Cruz
>brainlets don't programm in c for fun
Xavier Gray
/thread
Grayson Gomez
>rigged tests >C still fastest SAD
Sebastian Long
ATS IS FAST
Ryan Cox
Well, it's two-sided. One thing is shitty code made by horrible people, the other is the pain of never having any higher-level constructs available at your disposal, so you have to deal over and over again with menial shit such as copying buffers.
But yeah, you wouldn't even know some of the horrors I've seen in the different places I've worked. The Sup Forums meme that embedded is supposedly the best of the best is just plain wrong, electrical engineers can't program software for shit even though they are absolutely convinced they are at the top of the game.
Carson Thomas
The sad thing is that the person who made this obviously don't understand how to plot distributions.
I mean, they went for a boxplot, which is fine for giving some sense of distribution, but then you notice that the fucking Y axis is logarithmic.