LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


View Poll Results: Which programming language do you prefer to use?
A 1 5.26%
B 0 0%
C 8 42.11%
C++ 6 31.58%
C# 0 0%
Other 4 21.05%
Voters: 19. You may not vote on this poll

Reply
  Search this Thread
Old 05-25-2017, 12:28 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Do you prefer B, C, C++, or C# ?


Hello,

Which programming language do you prefer to use for programming, between the famous programming languages: A, B, C, C++, or C#?

Here few examples of syntax:

Code:
/* A TUTORIAL INTRODUCTION TO THE LANGUAGE B
B. W. Kernighan Bell Laboratories, New Jersey,
January 1973 - first documented "hello, world!" */
main( ) {
 extrn a, b, c;
 putchar (a); putchar (b); putchar (c); putchar ('!*n');
}
a 'hell' ;
b 'o, w' ;
c 'orld' ;
Code:
/* C: "Hello, world!" */
#include <stdio.h>
#include <stdlib.h>
int main()
{
   printf("Hello world \n"); return 0;
}
Code:
// C#: "Hello, world!"
using System;
class HelloWorld {
 public static int Main(String[] args) {
 Console.WriteLine("Hello, world!");
 return 0;
 }
}

Code:
// C++: "Hello, world!"
#include <iostream>
int main() {
 std::cout << "Hello, world!" << std::endl;
}
 
Old 05-25-2017, 03:25 AM   #2
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 360

Rep: Reputation: 199Reputation: 199
I'm not a computer science historian and not even that old, but which language do you mean by A? I can only find early members of ALGOL family (ALGOL 58, ALGOL 60), then CPL, BCPL, B, and finally C. I don't see A anywhere.

Why include language like B which is almost extinct and only interesting to those learning history of computer science? Wouldn't it be better to list modern languages like D, Go and Rust instead? After all, your poll is about preference in using languages.

Also why mention C# in this list? Because of its name? C# is Microsoft's alternative to Java (at least that's how I see it), so why Java isn't listed?
 
Old 05-25-2017, 04:09 AM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Because C# was recommended by a friend of mine into the above list.




Quote:
Originally Posted by audriusk View Post
I'm not a computer science historian and not even that old, but which language do you mean by A? I can only find early members of ALGOL family (ALGOL 58, ALGOL 60), then CPL, BCPL, B, and finally C. I don't see A anywhere.
A was before B. It wasn't well documented.
There might be eventually some historical data in Bell lab museums...

Edit: B is still being used today.

Last edited by Xeratul; 05-25-2017 at 04:24 AM.
 
Old 05-25-2017, 04:16 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
One may assume A refers to Assembly or Autocode.

Last edited by NevemTeve; 05-25-2017 at 04:17 AM.
 
Old 05-25-2017, 04:25 AM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Which is your favourite human language?

Sumerian

Phoenician

French

Canadian French

Japanese

Other

 
Old 05-25-2017, 04:28 AM   #6
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
@hydrurga: lol, excellent joke and comparison of the list of choices. I fully agree with you. Sumerian was a brilliant idea in the list. What about Mesopotamian also? Latin?

Quote:
Originally Posted by NevemTeve View Post
One may assume A refers to Assembly or Autocode.
Have you ever heard of W?

@hydrurga:
The vote "A" is really fun. No one can even run it, except if you have a PDP in your museum Maybe you still have a PDP at work...

Last edited by Xeratul; 05-25-2017 at 06:51 AM.
 
Old 05-25-2017, 04:56 AM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Xeratul View Post
@hydrurga: lol, excellent joke and comparison of the list of choices. I fully agree with you. Sumerian was a brilliant idea in the list. What about Mesopotamian also? Latin?

Have you ever heard of W?


Without wanting to derail your thread any further, apart from my little silly quip, there wasn't, as far as I can see, any language that we call Mesopotamian - they spoke Sumerian, Akkadian and other languages (https://en.wikipedia.org/wiki/Mesopo...ge_and_writing).

For those interested in a list of languages by first written account, see https://en.wikipedia.org/wiki/List_o...itten_accounts

And, to get the thread back on topic, here's a very interesting timeline of programming languages:

https://en.wikipedia.org/wiki/Timeli...ming_languages

Last edited by hydrurga; 05-25-2017 at 05:02 AM.
 
Old 05-25-2017, 05:03 AM   #8
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by hydrurga View Post


Without wanting to derail your thread any further, apart from my little silly quip, there wasn't, as far as I can see, any language that we call Mesopotamian - they spoke Sumerian, Akkadian and other languages (https://en.wikipedia.org/wiki/Mesopo...ge_and_writing).

For those interested in a list of languages by first written account, see https://en.wikipedia.org/wiki/List_o...itten_accounts

And, to get the thread back on topic, here's a very interesting timeline of programming languages:

https://en.wikipedia.org/wiki/Timeli...ming_languages
On wikipedia it gives:
Quote:
The history of written Sumerian can be divided into several periods:
Archaic Sumerian – 31st–26th century BC
Old or Classical Sumerian – 26th–23rd century BC
Neo-Sumerian – 23rd–21st century BC
Late Sumerian – 20th–18th century BC
Post-Sumerian – after 1700 BC
What was the language before Sumerian? How long spans the time of Sumerian civilization? I read that archeos have difficulties to read find it out.
 
Old 05-25-2017, 05:32 AM   #9
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 360

Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by Xeratul View Post
Edit: B is still being used today.
Can you give an example of B being used in real world? Is it used mostly in legacy systems or, more importantly, are there any new projects started in B?
 
Old 05-25-2017, 05:46 AM   #10
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by audriusk View Post
Can you give an example of B being used in real world? Is it used mostly in legacy systems or, more importantly, are there any new projects started in B?
Yes, I can give few examples. Of course, today, C* is being used for new projects.
 
Old 05-25-2017, 05:49 AM   #11
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
My first choice would be Pascal, but I also like D, rust, and Oberon II.
Ruby, Python, Perl, LISP, ALGOL, FORTRAN, MicroFocus Object Oriented COBOL, and Smalltalk have a place here also.
It really depends upon the project.
 
Old 05-25-2017, 06:14 AM   #12
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by wpeckham View Post
My first choice would be Pascal, but I also like D, rust, and Oberon II.
Ruby, Python, Perl, LISP, ALGOL, FORTRAN, MicroFocus Object Oriented COBOL, and Smalltalk have a place here also.
It really depends upon the project.
Also a very nice set of choice.
(except Python)
 
Old 05-26-2017, 03:22 PM   #13
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Please remember that the Programming forum is intended for seeking answers to programming questions.

As this thread and poll are intended to ask opinions rather than specific programming related question it has been moved to the more appropriate General forum.
 
Old 05-27-2017, 12:29 PM   #14
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,140

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Quote:
Originally Posted by NevemTeve View Post
One may assume A refers to Assembly or Autocode.
No: it's a derivative of APL and (as far as I know) replaced by A+. I learned the rudiments of APL back in the 80s, only to find that it wasn't suitable for what I intended to do — £100 wasted, if I remember rightly. I'm still using the Basic code I wrote instead, though.

Quote:
Originally Posted by audriusk View Post
Can you give an example of B being used in real world? Is it used mostly in legacy systems or, more importantly, are there any new projects started in B?
It's still used under the GCOS operating system, which Bull say they'll support until at least 2025, so it's legacy. But legacy languages can survive for years: think of COBOL.
 
Old 05-27-2017, 01:08 PM   #15
Mill J
Senior Member
 
Registered: Feb 2017
Location: @127.0.0.1
Distribution: Mint, Void, MX, Haiku, PMOS, Plasma Mobile, and many others
Posts: 1,258
Blog Entries: 2

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
C is my favorite. But I prefer to use C++ for Gui. But this poll should have the current most popular languages for better comparison. It would than be very useful for beginners deciding which language to learn.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which *NIX you prefer fbsduser Other *NIX 12 03-27-2011 05:53 AM
Why does everyone prefer Slackware? necbrownie Slackware 22 08-27-2004 04:35 PM
IT'S OK! to Prefer your Distro zegos General 12 04-08-2004 10:50 AM
Which OS do you prefer? digiplaya General 24 12-14-2003 06:24 PM
Why we prefer Linux! aiims1777 Linux - General 4 12-10-2003 08:11 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 04:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration