Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I give C a lot of credit, after all most of the currently most popular programming languages are based in C. But damn it was hard learning C in college!!! :P
I don't know how many times I cried at the sight of "Segmentation fault, core dumped." error message. -
@ulaikamor c is really easy if you just pay attention to your pointers
You kids nowadays with your automated garbage collection... -
I think C is number one in its category. it is more like choosing the right weapon in a war for maximum and efficient impact.
-
shasha3448y@ulaikamor you probably had bad teachers. I've learned C in high school and only then I really understood programming. In mid school it was pascal (ugly language).
-
You forgot, there is something ahead of C. Didn't you learn that arrays starts with index 0 ?
-
crisz82368yI thought that C was the best language for a lot of time. I changed my mind when I noticed that you need to write a function in different ways for each system also for simple tasks, for example to generate a random number (and no, srand is not good).
I understand why you love so much this language, but I don't understand why it has to be so asshole when it may not be -
@crisz C is an unforgiving language, but it's not an asshole.. It's a language that cannot be beaten in terms of performance and commands a certain level of proficiency in return. I think it's fair.. I think the reason it's still used as a starter language in schools is because it teaches you discipline. Unfortunately unworthy teachers with piss poor attempts at teaching the language spoils the show and discourages everyone..
Source - I use C/C++ at work and I love it.. Been 6 years now -
@manrock007 assembly is faster than c, but it's the only language that is and I wouldn't suggest learning assembly just for the slight speed difference unless you're either a glutin for punishment or working on a operating system at its lowest possible level
-
@jckimble you know that you can embed assembly code in C, right? So you can write parts of your code in assembly, the parts where you are sure the compiler wont make a good translation. And writing assembly language manually, that is actually more optimized than what the C compiler generates is not easy, so yeah in practical cases C is faster
-
@liveCoder while what you say is true, as in inline assembly in c and usually the compiler does it better then we can, I have seen assembly code from gcc that had alot of repetition but I believe that was a while ago about 2008 when osdev.org was an awsome community. so gcc might have gotten better since
-
@jckimble I'd argue that writing straight machine code is gonna be faster than assembly
Assembly works by generalising instructions, so a move instruction will output a different string of digits depending on the architecture you're on.
If you just code in straight binary however, you can do things like recycle instruction bit patterns as data, which is a bit more difficult to do in assembly. You do lose a bit of the freedom assembly would otherwise give
(freedom here with a grain of salt, of course c abstracts away even more details and makes you even more architecture independent, but that's not the point) -
azzuwan1818yWhy do people treat programing language like a religion? Is C number one in everything? Is X number one in web programming? Is X number one in natural language processing? Is X number one in statistical analysis? Is X number one in genetic modelling? Is X number one in parallel processing? Is X number one in telecom switching? Is X number one in data warehousing analytics? Howbthe fuck can it be number one in everything? Grow up it is just a tool just use it where it is good and use another one when it doesn't fit and shut thell up don't make yourself look like an idiot and move on. You dont brag about a hammer do you?
-
crisz82368y@manrock007 I expected the downvote lol for a lot of people C is more a religion. Anyway don't misunderstand me, I love C, I couldn't appreciate it in high school but I loved it in university, and thanks to it I understood how a computer works and I can manipulate it to do anything. So maybe you misunderstood me, I just said that a so famous programming language deserves more coordination and more evolution. Regarding the episode of random numbers, I needed a simple software to be used on windows and Linux and I was developing it, but the things went worse than they had to go so I said "fuck everything let's do it with java" lol
-
@crisz ma man, that downvote ain't mine! You pissed off a bystander lol.. As language as a religion, that's not how I look at it.. It certainly isn't mine I'm just good at it and yet I love the simplicity of java.
C is still no. 1 programming languge
undefined