The 2018 Top Programming Languages, According To IEEE (ieee.org) 192
New submitter rfengineer shares a report: Welcome to IEEE Spectrum's fifth annual interactive ranking of the top programming languages. Because no one can peer over the shoulders of every coder out there, anyone attempting to measure the popularity of computer languages must rely on proxy measures of relative popularity. In our case, this means combining metrics from multiple sources to rank 47 languages. But recognizing that different programmers have different needs and domains of interest, we've chosen not to blend all those metrics up into One Ranking to Rule Them All. [...] Python has tightened its grip on the No. 1 spot. Last year it came out on top by just barely beating out C, with Python's score of 100 to C's 99.7. But this year, there's a wider gap between first and second place, with C++ coming in at 98.4 for the No. 2 slot (last year, Java had come third with a score of 99.4, while this year its fallen to 4th place with a score of 97.5). C has fallen to third place, with a score of 98.2.
Python? (Score:2)
Re: (Score:1, Interesting)
Yeah, no shit .. let's make whitespace significant and other dumb things.
I first saw Python about 15 years ago, and immediately thought "what the hell were the people who designed this shit smoking?"
The quality of the fanboi's I've encountered since has done little to change my mind. I've never understood the appeal other than lazy people can write a bad demo in a few hours.
Re: (Score:3, Insightful)
Every time that Python is mentioned someone raise the point about whitespace. Yes it is annoying when first learning the language, but within a few hours you have totally forgotten about it. Python has other issues, but whitespace is the one people always initially focus on, unless you are in the habit of cut and pasting code from any or every where without using discrete code blocks, then it really is not that much of an issue.
Re:Python? (Score:4, Insightful)
Re:Python? (Score:5, Informative)
For example, I like 2 spaces for tabs for tighter indentation, but I can't do that in Python because the language designers decided that 4 spaces is exactly right for everyone
That is not the case. 4 is recommended, but you can use any number of spaces in Python.
Re: (Score:3)
you can use any number of spaces in Python.
Just hope that nobody who prefers tabs tries to use your code.
Re:Python? (Score:5, Insightful)
Why should I have to care how many indents there are? ... For example, I like 2 spaces for tabs for tighter indentation
Nowhere a hint of irony. *sigh*
You shouldn't have to care about indentation. And when there's a standard, you don't have to.
Complaints about whitespace are literally the most superficial complaint about a language possible. And honestly, when people start in with complaints about whitespace, I know immediately that they aren't going to have anything of value to contribute.
Arguing about how much your code should be indented is nothing more than bike-shedding. People express opinions about the things they understand. Arguing about indentation tends to illustrate the extent of your understanding.
Re: (Score:3)
Re: (Score:2)
I do most stuff in python, and largely I don't have problems with the whitespace...
Until I want to try something out by pasting into a python interpreter.... Errant leading space in statement due to miscopy? Error. A function with some sort of line continuation that is perfectly legitimate in an actual script? indentation error...
Re: (Score:2)
Re: (Score:2)
The only syntactic part of white space in Python and other similar languages is whether a line has more or less indention than the line before and after it. So as long as you keep the SAME indentation as the block of code you are adding a line to then you're fine. Why would you evern consider adding two extra spaces in the middle of a block, it would look bad in any language. This is the most trivial of problems (the only real snag being tabs vs spaces).
This isn't really semantic per se, it's syntactic.
Re: (Score:2)
Pasting your code into interactive python terminal on a remote system to try something out... whitespace causes a challenge more often than it doesn't in that specific case....
Otherwise I don't mind it so much...
Re: (Score:2)
It is a nit in Make, but generally it's because most editors don't highlight the differences between spaces and tabs, so a makefile may "look" ok until you try to use. Some editors, especially those common in unix and not Windows abominations, will highlight errors in makefiles or show tabs and spaces differently.
On the other hand, even though everyone and their great aunt will complain about how terrible Make is, there really hasn't been a replacement that just works as simply and straightforward and with
Re: (Score:2)
The old-school Windows build system (the one that came with the SDK and DDK, not the one that came with Visual Studio) was better. It was just an enhancement to make, of course, but it fixed some of the problems with make and added a bunch of good default behaviors.
Naturally, MS dropped it years ago in favor of some xml-based trash.
Re: (Score:2)
Have you ever worked on an old-school make file? Tabs mean one thing, spaces mean something else. It's a nightmare.
Get better tools. There are editors that make tab characters and spaces visible.
Ah, so you agree that significant whitespace is a problem you need a tool to solve. Good to know.
> Think of the fun with a python file that mixes tabs and spaces for indention,
Get better tools, or configure them appropriately. eg editors that convert tab key to appropriate spacing.
Which has nothing to do with the problem I highlighted. When you inherit crappy legacy code, it's too late to apply a convention, and you're left guessing how much indention the author had in mind for a tab character.
One more problem you need a tool to solve. But only with terrible legacy code, and that almost never happens, right?
> It's not about how code should be indented, it's that python forces you to care how it is indented.
Yes, it forces you to care so that 'the next programmer' can understand more easily the crap that you wrote.
No, and that's the entire point: it doesn't force you to care when you write it
Re: (Score:1)
For example, I like 2 spaces for tabs for tighter indentation, but I can't do that in Python because the language designers decided that 4 spaces is exactly right for everyone. That type of thing shouldn't be inherent in the language design.
You can use however many spaces you want to indent with in Python, so as long as you are consistent. Unless you are one of those folks who indent using 4 spaces one minute, then 8, and then drop down to 2 just for the hell of it all within the same function, I can't see how this is that big of a deal.
Re: (Score:2)
Why should I have to care how many indents there are?
"Why should I have to care how many braces there are? How many semicolons? How many equals signs?"
Python has a single, unambiguous way of expressing block structure. Just like C. You have to care about it because it's part of the syntax.
What it doesn't have is a redundant second way of expressing block structure.
You can't search for missing whitespace.
Imagine you're staring at an expression where you accidentally deleted the binary operator. Your code goes "a b" and you have forgotten if that was supposed to be "a + b" or "a - b" or "a * b". H
Re: (Score:2)
but my main problem is that whitespace is significant.
Eh, I think there's two fundamental things that programming languages need to do:
1) Help people understand them, and help people understand how to write proper code. "This is the way child".
2) "Get the fuck out of my way, I'm getting shit done". Where the language does it's best to cobble together some productivity from whatever garbage you dump into it.
C has this. Without the -Wall blocking your way, C gets stuff done. (and -Wextra [and -Wpedantic because we make million dollar systems that must not fail])
Re: (Score:1)
Lack of types is also unhelpful. I'd rather a compiler tell me I'm trying to equate integers and giraffes than having to completely rely on a test harness that might not try to pass in a giraffe until the fifth hour of the testing process.
Python 3 has standardized type hints now. So a linter can yell at you if you try to equate integers to giraffes.
Re: (Score:3)
Re: (Score:2)
Lack of explicit types goes back decades to the earliest interpreted languages (for the earliest languages, types were not there to detect errors but to provide hints to the compilers). Python is a relatively late language to this game. Then go and look at some typed languages like C/C++ where many developers just do not fundamentally understand types and where it might even be better to just let the compiler figure them out (like some compilers do).
Re: (Score:2)
Re: (Score:2)
I've seen that done with a script. These don't gain more traction because the whitespace problem really isn't a concern.
Re: (Score:2)
Re: (Score:2)
unless you are in the habit of cut and pasting code from any or every where
Or having to maintain code originally written by some idiot who doesn't follow your (obviously correct) dogmas of tabs vs spaces, tab stops, etc.
Re: (Score:2)
Which is worse?
Re: (Score:2)
Which is worse?
Catering to OCD.
Re: (Score:2)
Re: (Score:2)
force those who wouldn't be otherwise
Or, you know, you could use a language that didn't allow a bunch of crybabies to slip hidden logic bombs into their code in the first place.
Re: (Score:2)
Re: (Score:2)
I have had to use some files that were indented with 4 different settings for tab stops! I could tell because with each different tab stop a different section of code would suddenly become readable (ie, long continuation lines would line up). Tab stops would even change within a function, a nested loop would use a different tabstop than the outer loop. I have no idea how it managed to get into that state in the first place other than a lack of a style guideline combined with lazy programmers. Probably th
Re: (Score:3)
Complaining about whitespace is a pretty certain sign that the poster doesn't know squat about Python. Python has plenty of issues. Here's one -- https://xkcd.com/1987/ [xkcd.com] In point of fact Python use of whitespace is (unlike say bash's) just a straightforward formalization of a pretty reasonable style rule for readable code in any language that allows some (by no means all) nested parentheses to be omitted.
The only genuine problem I'm aware of with Python indentation comes when trying to embed python in a s
Re: (Score:2)
I will say that it's not just python that is afflicted by that phenomenon in xkcd. Java is notorious for having every app bundle their own JRE, for example.
This is also 'just the way it is' for nodejs.
'frameworks' for every little damn thing... yeah... welcome to most languages...
virtualenv is one double-edged sword. On the one hand a respectable mechanism to tame the monstrous ecosystem. On the other hand, people start *requiring* it to just make the ecosystem even more monstrous...
Re: (Score:2)
Yes! +1 Please.
People tend to forget that whitespace is significant in all languages since we use it to make the code readable. Errors in whitespace make the code hard to understand at best and easy to misunderstand at worst.
Also, complaints about being "forced" to use something other than your preferred spaces/tabs apply to all projects with more than one developer regardless of language. Like it or not, you should use whatever the original author used (or what the coding guidelines say if you are the orig
Re:Python? (Score:5, Funny)
Correct.
Who the hell thought a language which is ambiguous when printed out was a good idea?
Re: (Score:2)
In what way is it ambiguous?
This on the other hand... [wikipedia.org]
Re: (Score:2)
Occam used this feature in the 80s. The snag with it was that the editors at the time were not very customizable. I had a vi that insisted on replacing a string of spaces with tabs, and no one I knew had ever seen a manual for vi so I could try to fix it. But over time editors got a lot better or more accessible. Whitespace in python are not a problem for anyone who was programmed in it for more than a few hours and who either avoids tabs or else uses a smarter editor.
Re: (Score:2)
People get used to not having arms. Doesn't make it a positive.
The problem is that this was such a stupid, and OBVIOUSLY stupid idea that it undermined any faith in the language creator - who knows what other crap is lurking in there? Then you have the whole Python 2 Vs 3 thing and basically I've got better things to do with my time.
Occam had many things going for it; this wasn't one of them. Generally speaking, any language which requires a special editor is a broken language - indeed, it isn't really a la
Re: (Score:3)
Correct.
Who the hell thought a language which is ambiguous when printed out was a good idea?
Probably people who managed to move out of the eighties and stopped printing all their shit.
Re: (Score:2)
Only really ambiguous if you have tabs and spaces intermixed and you print the raw text file. People that do this often use IDEs though and most IDEs have a print function that prints formatted text instead of the raw text. However with online tools like Jira, Reviewboard, Gitlab, etc, the tabs do have a tendency to make things less readable.
Re: (Score:2)
Python is popular as a language itself, but often other factors should be considered. For example, we were looking at PHP versus Python as a possible alternative to Microsoft dotnet. These factors seem to override language-only issues in PHP's favor:
1. Easier web deployment on test, staging, and production because it's built for the web.
2. More web-oriented functions, libraries, and related tutorials/forums.
3. Built-in HTML-embed templating language. This is important if designers are separate from app cod
Re: (Score:2)
>Easier web deployment on test, staging, and production because it's built for the web.
Being "built for the web" is entirely a non feature for everything I do.
Re: (Score:2)
PHP is a web language. Python is a general purpose language.
Re: (Score:3)
Re: (Score:3)
Oh no, not this shit again.
(facepalm)
Here's the methodology: https://spectrum.ieee.org/stat... [ieee.org]
Basically they do a google search for "X programming" (where X is the name of a language) and count the number of hits. That's it.
All that means is that Python is the most "talked about" language.
It may be that Python has more hits because it causes more problems and more people go looking for answers. Who knows? Certainly not the people who do that survey.
IEEE says "Dice is a clueless, lost company" (Score:3)
"one less source this year, as the Dice job site shut down its API"
(https://spectrum.ieee.org/static/interactive-the-top-programming-languages-2018)
node.js, baby (Score:5, Funny)
Does python have rockstars? Does C++ have ninjas? Does java have 10x rockstar ninja? No!
Javascript is a 10x rock star ninja. One moment, you're sitting there, alive, than POW you're dead. And there's an asian guy with playing some sweet riffs on his guitar/sword, teabagging your mouth.
And if you're only a 1xer, that's cool too. npm has tons of high quality javascript one-liners written by the industries best 10xer and/or bootcamp homework projects. How do you know if something is the number 3 in c++? You don't! But npm has probably 30 or 50 packages to check for the number 3.
Re: (Score:2)
*slow clap*
Bravo you glorious sonnovabitch. I lost it at guitar/sword.
Re: (Score:2)
Re: (Score:2)
Anytime you've got a rockstar at your company it's time to update that resume. Anytime you've got a rockstar in a language then it's a sign that the language is more about status than in getting work done. Rockstar is the way kids say "douche" these days.
Always not representative of the real world (Score:3, Insightful)
> So what are the Top Ten Languages of 2018, as ranked for the typical IEEE member and Spectrum reader?
Their membership must be a very niche market for R to outrank JavaScript in "popularity".
Re: (Score:2)
Yes, engineers instead of script kiddies.
Oh, yeah, the old "script-kiddies" addage. (Score:2)
Yes, engineers instead of script kiddies.
AaaaahahahaHAHAHA!
Well at least we have sex on a regular basis and get to go home when workhours end. And I also hear a little envy in there, over the fact that "script-kiddies" get more done in 3 months with their Plone Appserver / CMS than you Java/C++/C/Whatever lot in 5 years. But hey, at least you have neat specs!
Top? Most popular, perhaps (Score:5, Insightful)
The article admits that different languages are used for different things. It's like making a list of "top vehicles", including cars, trucks, ferries, cargo container ships, and airplanes. Yet they go right ahead and still create a master ranking, because they can't help themselves. And we can't help but froth about it, which is the entire damn point for all of this.
It's hard to get too frothy when my own language of choice, C++, is near the top, but my own view tends to be incredibly myopic, as I work in the game industry, and C++ absolutely dominates there.
Re: (Score:3)
One thing a list like this is helpful for is anyone looking to learn a new language, or learning programming or computer science without prior experience... if your school is teaching their mainline classes in a language not on this list, that is a major red flag. Probably should be in the top 5, to be honest, given what's in the 6-10 slots.
Or, if you don't really know what you're looking to get into, other than being able to make your computer do stuff, then this might be a good guide. Start by defining
Re: (Score:2)
C++ is a pretty good language. It's main problem is it's trying to be the five top languages. Just about nobody uses more than a small subset of C++ plus the underlying commonality of C (with, admittedly a dialect difference from standard C).
The problem with this is that it makes all the features obnoxiously ugly, because it really needs to squirm to maintain compatibility with all the features when it wants to handle something new.
E.G.: I want a language with a built-in garbage collector and hash tables
Re: (Score:2)
Interestingly enough, annoying syntax is one reason why C/C++ tends to be faster.
In python, it's equally easy to do while curr != 'sentinal' versus while curr != 1'. In c, you get annoying doing memcmp or strncmp and quickly go to the numeric based sentinal. This maps to what is *much* easier to do for the computer.
Same with hash tables versus arrays. mydata= {} is as easy as mydata = [] and I have actually seen the former and then the programmer do mydata[0], mydata[1].
And of course there are structs.
Re: (Score:2)
Sorry, but no. The annoying syntax is necessary to make the language fast only because of maintaining historical continuity AND remaining a swiss army knife. It's true that the language would have needed to change in other ways to allow the speed without the incredibly ugly syntax. And this basically would have required the language to split into syntactically incompatible subsets, probably, as I guessed earlier, about five.
That said, I will agree that if you are going to make the language maximally comp
Re: (Score:2)
The comment about non-standard libraries was WRT garbage collection.
Representative of Electrical Engineers (Score:3)
Yes, this is yet another "What's the best/most popular Programming Language" and I suspect that for most people, it's not very representative.
But, as an EE I can see that this list (especially the top ten) is very accurate for the development work that I do (embedded and web apps accessing the embedded devices) and I suspect that it's pretty good for other EEs.
If you're a web, app, database developer or even involved in IT, this list will NOT be accurate.
Re: (Score:2)
I think the ranking is BS- but they do expose the methodology if you click into it. AFAICT the ranking is about what languages people are *interested* in. Not necessarily being used by experienced programmers (EE or CS)
Forth (Score:2)
Re: (Score:2)
The original book is available as a free PDF. https://www.forth.com/starting... [forth.com] The second programming book I ever read... 5th or 6th grade was it... after my TI-99/4A's "Extended Basic" manual.
What about all the other top dev.tool lists (Score:5, Insightful)
https://www.tiobe.com/tiobe-in... [tiobe.com]
https://insights.stackoverflow... [stackoverflow.com]
aah, language holy wars. (Score:3)
BOW DOWN MORTALS Before the one true language. The Ur-language that ushers in all the false idols. The Most Holy of relics...
C
The old gods are calling. Can you hear them? It's the sound of inevitability as the young usurpers weep into their transient drinks feeling their lifeblood leak away like so much memory. What pidly followers they amassed will blow away like so much dust. And where do they turn when all they hold dear is cast about on shifting sands? The stable bedrock of C.
LOOK UPON IT'S MAJESTY and look upon your EVERYTHING and you will see it staring back at you. Your Linux, your arduinos, your Rasberry Pis, your toaster, your fridge. We are the ones who cook your food. We are the ones who drive your cars. We are the ones who hand-carry your garbage when your program closes. DO NOT fuck with us.
Just high enough above the metal to be portable as all fucking get out and low enough slide through that silicon like greased lightning. This IS your grand-daddies programming language because he knew his shit. The experience of GENERATIONS is out there and honestly eager to help. Ask on stack overflow about how the shareponit widget gets shuffled by the flub API in the .WHORE framework and you'll have a couple crickets for company. But ask for some fluent C and the fucking CHOIR comes out to play.
C is the language to learn my friends. It gets you where you need to be. It's not the last language you want to learn, but it's certainly the one you want to sharpen. Hone that to a razor edge and you can cut any problem down to size. And that's no Turing tarpit. I may program in Brainfuck and Malbolge for shits'n'giggles, but C is the workhorse of solving real meaningful problems. Bash glues yesterday's solutions together, and some pretty GUI-maker can make yet another button for a clueless suit, but you whip out C for the hard cases.
#include
int main(int argc, char** argv)
{
printf("Bro, do you even code?\n");
return 0;
}
Re: (Score:2)
Typical code review bitched about some minor style thing while missing the blatantly obvious: #include that would break everything and fail to pick up stdio because I didn't escape the "" ...The "" ""! GodDAMNIT |,\.|,>|,.||>.,.,>..,>
There we go.Yes. Mashing the keyboard in anger is indeed how a percentage of coding is done.
I'd start counting flaws but I don't have all day. (Score:4, Informative)
I'd start counting flaws but I don't have all day. At least these are readily apparent.
HTML is not a programming language. It's a markup language, and although one might be able to coerce HTML5 and CSS3 together into being Turing complete that's an emergent property best thought of as a bug.
SQL is a query language. Fairly sophisticated data manipulations can be done with it, but it's typically used with an actual programming language to develop applications.
Arduino isn't a language at all. It's a hardware device which can be programmed in various languages. There is an approved IDE but more than one language supports the platform.
Cuda is not a language, but a toolkit for GPU programming that's used from multiple different languages.
Shell and assembly are each more than one language. May as well by that logic call Clojure, Scheme, and Racket part of Lisp. Call JavaScript and ActionScript both ECMAScript.
The method of looking at searches for "X programming" specifically gives an advantage to languages that don't lend themselves to search or need disambiguation like C, Go, Python, Ruby, R, S, D, shell, assembly, or Crystal. Languages with distinct names like Perl, Erlang, JavaScript, Smalltalk, ActionScript, or Matlab don't generally need such qualification.
Re: (Score:2)
SQL is Turing complete. Which is somewhat terrifying, but far less so than C++ template meta-programming (talk about an emergent property best thought of as a bug!).
Re: (Score:2)
That it is, but it's not generally used to develop actual standalone software. Apart from the odd one-off ad hoc query it's wrapped by another language and often has a stored procedure or several in another (possibly different still) language.
Re:I'd start counting ?! Write code to do that! (Score:2)
... in Python
Re: (Score:2)
SQL/PSM isn't SQL. It's a second, optional language added to the SQL standards and competes with the likes of TSQL, PL/SQL, and PL/pgSQL. It's an optional extension with different syntax. If you're arguing (by just mentioning it) that SQL/PSM and SQL are the same thing, then we may as well say C#, C++, Objective-C, Cilk, and C-with-classes are all C. Lump Delphi and Ada into the Pascal bucket. Call SML and OCaml both just ML.
Yes, Arduino has a special preprocessor for C++. Many projects have their own prepr
The rise of C++ is due to Microsoft? (Score:2)
and its marketing of it?
Assembly is at 75/100? (Score:2)
I am very suspicious of a methodology that puts all of the values so close together and where assembly language even registers... That's like saying a huge portion of development work is being done on MS-DOS!
This seems more like a ranking of which languages people have the most problems with :-)
Re: (Score:2)
Re:Rediculuous (Score:4)
By the time they graduate, all the languages-du-jour will have changed.
The only things that will always be there are assembly, C, C++, javascript*.
* until all the major browsers switch to something else, but they'll never agree to that.
Re: (Score:2)
If anything this list proves that the languages du-jour aren't actually very popular and people tend to stick with the decades old ones.
Re: (Score:3)
Most of the things in the top 10 list of 2018 have been around and popular for a decade at least. The exception would be Go which is only 9 years old.
Re: (Score:1)
The take the list from each year for the past 40 years and graph (or animate) the rise and fall of each language over time. It should be pretty obvious which languages stick around long term, and which ones come and go, and of those that come and go, what trends they have in common.
Re: (Score:2)
* until all the major browsers switch to something else, but they'll never agree to that.
They already did! It's called webassembly. :-) There's probably 10 languages that compile down to it now.
I'm being a bit tongue-in-cheek here. It will be a while before developers start switching and we will see what they move to. Probably decades before javascript seriously wanes. It could even get good in the mean time. But the path is open now.
Re: (Score:2)
You forgot Bourne shell script... 30 years of observing the world says that everything will be rewritten into one of those five, unless it is already 20 years old and in Fortran or Cobol, in which case someone will keep it going, because they are too scared to rewrite it.
Re:Rediculuous (Score:4, Interesting)
I actually worked with those old 20000 line plus Fortran programs and they were surprisingly easy to work with. One quickly learned that in order to maintain some semblence of sanity, one had to block line numbers by function -- e.g. 0-1000 are global stuff, 1000-2000 are input ... Sounds dumb, but it worked. In a few cases I saw both the 1960s monolithic Fortran code and the 1980s modern style code with roughly sixteen zillion tiny subroutines. Personally, I think the older style was often easier to work with.
I don't know much about Cobol, but the one time I had to debug an issue in a Cobol subsystem, I found it to be surprisingly readable. I don't think I have the patience to write Cobol code, but I think it probably deserves more respect than it gets.
Re: (Score:2)
By the time they graduate, all the languages-du-jour will have changed.
The only things that will always be there are assembly, C, C++, javascript*.
* until all the major browsers switch to something else, but they'll never agree to that.
Rust is a new language, not in the list. Sigh...
Re: (Score:3)
Keep in mind that an awful lot of meaningful programming is done by folks who are capable, but are not "computer scientists" They tend to prefer "scripting languages" (Python, Perl, Javascript). to glorified assembly languages. But even though they don't and maybe can't write device drivers, their needs and preferences are important too.
If you're trying to make sense of 10 million data points, do you really want to write a C++ program to filter, manipulate, join sets, etc. Probably not. Even if you
Re: (Score:2)
Funny enough, I've seen people write terribly complex 'scripting' code that is clearly more sophisticated than a lot of C programmers, and yet the people writing that will still be intimidated by a compiled language.
Also seen it in shell scripting. People who go through pretty tortuous stuff to make complex code in shell script, but won't even touch python or perl or anything like that, because *that* would be programming, and they don't feel like they could 'program', despite already programming heavily..
Re: (Score:2)
Interesting thought -- seriously. Back around 1980 or so, I decided that if I was going to be doing computer stuff for most of my career, I should learn the basics, so I read Hamming, and Knuth and Tannenbaum and Dijkstra and ...
All the important books and papers available at the time I think
I came away with the feeling that there were solid pieces of foundation here and there. But no body of knowledge that constituted a "science". My feeling is that things haven't really changed all that much. But wha
Re: (Score:2)
Re: (Score:2, Funny)
Re: (Score:3, Insightful)
And likely creating all the security holes that make the internet the wild, wild west that it is. Thanks bud.
Handing a good language to a bad coder doesn't result in better code. I've seen plenty of security holes in any language.
Re: (Score:2)
And likely creating all the security holes that make the internet the wild, wild west that it is. Thanks bud.
The security holes that matter on the internet are XSS and SQL injection. C is entirely innocent of the former, and rarely in the latter It's been many years since buffer overruns and the like were real security issues on the internet.
Re: (Score:2)
"Like the actual hardware doesn't have flaws as well.. Intel.."
Personally, I think the Intel x86 instruction set is all the evidence that anyone could need that being utterly and completely incompetent is not an imprediment to achieving overwhelming success. Even at the 8088 level it was a shambles compared to say the Motorola 6809. And it has only gotten worse over time.
Re: (Score:3)
Actually, I hate C because it's so difficult to send data between executing parallel processes and, secondarily, because it such a beast to handle unicode in. C was probably my third programming language, and the second was assembler. (Fortran was my first.) There are a few other reasons, the dangerous way it handles pointers, etc., and it's ugly when you start needing multiple layers of indirection. But most of those can be gotten used to. The first two, however, ... shudder...
Re: (Score:2)
Use UTF-8 and it's trivial in C. Can use all the normal string functions unlike the abomination of wide characters. The only time you need to convert a multibyte format into a fat character format is just before you actually display it, the rest of the time just treat it as a normal string and it just works. Of course, on the project schedule you can claim and extra two weeks so that you have time to head to the beach.
Re: (Score:2)
If you think utf8 is trivial in C, you must not have used it for text containing non-ascii characters, or done only very simple processing. I'm guessing that it's the "only very simple processing" choice, because that is actually not unreasonable.
FWIW I *do* prefer utf8 for file storage, but when a chunk contains non-ascii text I usually transform it into codepoints as that's easier. But it's far easier to just pick a different language. Choices that work are Python, Go, Vala, D, and Racket (i.e. Scheme)
Re: (Score:2)
It was trivial because you rarely need to look at the text. Ie, internationalization of constant text that doens't need parsing, only displaying. That is zero text processing. I have seen programs that used wide character support just to handle that case, and they'd convert the multibyte format to wide characters as the first thing to do.
Now if you're doing something like parsing that string, then yes, that's harder. But not necessarily that much harder. If you need specific dellimiters, then strchr will
Re: (Score:2)
It was trivial because you rarely need to look at the text. I
You are making invalid assumptions about the kind of processing I was doing. Different tasks demand different tools. I was doing a bit more than just parsing the string. And C's handling of unicode is not satisfactory. (Actually, I also don't like the way it handles, or rather doesn't handle, variable name hiding either, but since I don't really expect the language to protect access I could learn to live with names like: NodeA_instance1_id_prefix. It's hideously ugly, but it can be lived with. Much wo
Re: (Score:2)
Re: (Score:2)
Python is a pretty advanced language. I don't use it much but it's not at all like the Python from the 90s. The only thing really stopping it from being "mature" is that version 2 and 3 are incompatible. I whipped up a simulator for a board with it so we could work with it before the board was ready, and no way could I have done this with C without adding a few months effort, and easier than Perl even though I know Perl better than Python.
Lisp is a great language. It's probably too abstract for some peo
Re: (Score:3, Funny)
I do not like your hat.
Re: (Score:2)
Re: (Score:2)
In most contexts, you have a choice in languages. If I don't like perl, I ignore perl. If I like C, I can write in C. My language choice in general purpose world is free and I can ignore the ones I disagree with.
Javascript in part has a problem because developers that need to do something inside a browser have *no choice*. So people who dislike it and would ignore it cannot get away from it, and so hate it as they work on it.
I personally am not big on Javascript. Two big issues for me:
-The 'standard li