Could this be true about the C language ?

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
codewalker
Enthusiast
Enthusiast
Posts: 331
Joined: Mon Mar 27, 2006 2:08 pm
Location: Spain

Could this be true about the C language ?

Post by codewalker »

Hi,

I found this interesting article about the C language growing in popularity.
It says that Java is losing ground and C is on the rise.

http://www.tiobe.com/index.php/content/ ... index.html

C is mostly used as a procedural language like PureBasic. Think about that one
if you consider that Windows, Linux and Mac are for the most part written in C.

greetings
cw
There is a difference between knowing the code and writing the code.
May the code be strong in your projects.
User avatar
Blood
Enthusiast
Enthusiast
Posts: 161
Joined: Tue Dec 08, 2009 8:34 pm
Location: United Kingdom

Re: Could this be true about the C language ?

Post by Blood »

This isn't news, it's always been the case.

The reason C is used a great deal even today is that there's so much legacy code to maintain and that C is very small and fast but everyone knows this already!
C provides the infinitely-abusable goto statement, and labels to branch to. Formally, the goto is never necessary, and in practice it is almost always easy to write code without it. We have not used goto in this book. -- K&R (2nd Ed.) : Page 65
Zach
Addict
Addict
Posts: 1677
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: Could this be true about the C language ?

Post by Zach »

I welcome any upswing in use of C and other procedural languages.

I am sick of hearing about OOP everywhere I go on the web. I have nothing against it, it can be useful and make life easier in certain cases..
I've said it before, but I feel OOP is not taught to people, it is indoctrinated. It would not surprise me to learn of people harping about the wonders of C / Procedural after they almost killed themselves trying to write a program in C++/Java.

OOP is a great tool; but it is only one of many.

It would be nice to see PB on that list one day, even if it were in last place... :oops:
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8452
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Could this be true about the C language ?

Post by netmaestro »

I see Powerbasic is one that they track, but it's not in the top 100. Usage is probably barely measurable at all given that language #50 has less than 1/4 of one percent of the market.
BERESHEIT
User avatar
GWarner
Enthusiast
Enthusiast
Posts: 605
Joined: Fri Jul 24, 2009 1:34 pm
Location: USA

Re: Could this be true about the C language ?

Post by GWarner »

Zach wrote:I am sick of hearing about OOP everywhere I go on the web. I have nothing against it, it can be useful and make life easier in certain cases..
Agreed, I know C++ because we use it at work, but that doesn't mean I like it. To me OOP just adds unecessary complexity and bloat to the program. I, for one would love to see OOP get tossed in the circular file and a return to good old easy ot read and understand C.
netmaestro wrote:I see Powerbasic is one that they track, but it's not in the top 100. Usage is probably barely measurable at all given that language #50 has less than 1/4 of one percent of the market.
PowerBasic probably made it on that list only because it's been around since the DOS days. I would guess the reason it's usage is so low is because it's still largely a DOS basic with a few pieces of C added, variable types for instance, and some Windows trappings added so they can sell it as being for Windows. For example if you wanted a modulo function you had to use the modulo statement in a user defined function. A common practice that should not have been necessary, there are other similar "failings."
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: Could this be true about the C language ?

Post by Danilo »

Zach wrote:I am sick of hearing about OOP everywhere I go on the web.
On the same site you will find:
Categories of Programming Languages
In the tables below some long term trends are shown about categories of languages.
Object-oriented statically typed languages have been most popular for more than 5 years now.

Code: Select all

Category                     Ratings Oct 2011    Delta Oct 2010
Object-Oriented Languages    55.9%               +0.7%
Procedural Languages         38.0%               -1.5%
Functional Languages          4.1%               +0.4%
Logical Languages             2.0%               +0.4%
I don't know why it makes you sick. It's just how it is. Most developers seem to find
the OOP concept useful, so it is logical you see it everywhere on the web.
That does not mean you have to use it for yourself, but you could try to accept it. ;)
xorc1zt
Enthusiast
Enthusiast
Posts: 276
Joined: Sat Jul 09, 2011 7:57 am

Re: Could this be true about the C language ?

Post by xorc1zt »

java is really useful for team projects. you develop more faster and more easier for less costs with java than C or even C++. the OOP and packages system is a real benefit for huge team projects. OOP is a must for all modern languages but the user should have the choice to use OOP or not.
Zach
Addict
Addict
Posts: 1677
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: Could this be true about the C language ?

Post by Zach »

It's not about my personal feelings of OOP. Which by the way, I do accept and have no problem with. As I've said before I had a lot of fun learning Python.

What I am sick of is the OOP mentality of zomg everything must be done in C++ u lamerz, C++ rawks!!

Which goes back to my opinion on OOP not being taught but indoctrinated into people. They try and use it for everything, even when it adds unneeded complexity and coding to even a simple program. Because it is all they were taught, it is all they know how to use and all they believe in.
User avatar
idle
Always Here
Always Here
Posts: 6037
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Could this be true about the C language ?

Post by idle »

c will remain popular simply because it's generally faster and more portable than C++
If MS adopted objective c it'd probably end up toppling c and c++
Windows 11, Manjaro, Raspberry Pi OS
Image
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Could this be true about the C language ?

Post by freak »

My guess is that the wide use of C comes from the embedded world. When programming micro-controllers, its still the best tool. There is not much point in writing business applications in C anymore.
quidquid Latine dictum sit altum videtur
Post Reply