Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!


Forgot your password?
Get HideMyAss! VPN, PC Mag's Top 10 VPNs of 2016 for 55% off for a Limited Time ×

Comment Re:As a C programmer (Score 1) 302

The people producing Python or C++ libraries abandon those libraries when they move to a new language - they don't have a choice.

That's certainly true of Python. Hell, you practically need to abandon your Python libraries when you move to the next version of Python.

But it's not true of C++. Binding well-written C++ libraries to other languages sometimes takes a little work (you do need to write a glue layer if there's a serious impedance mismatch, but then you need to do that with C too), but it does work and largely works quite well. Python, Java, Rust, Go, Haskell, O'Caml... you name it, you can The only languages which don't work well with C++ libraries are old languages like Tcl.

Look at LLVM as an instructive example. It's a large complex beast written in heavy C++, but there are bindings for every language you'd ever want to seriously write a compiler in.

Comment Re: As a C programmer (Score 1) 302

I see you do not understand what a mobile app is. There is no real logic in the app, it's just UI for a web service.

That's true in many cases, but it's far from the whole story. Well-written mobile apps try to minimise network communication because that can drain battery life much faster than a modest amount of computation.

Even badly-written mobile apps, like the Facebook client, do DSP on the device for things like its spyware voice recognition feature.

Comment Re:As a C programmer (Score 1) 302

(ok, C++ does too but C is where you get all the amazing well written, optimized libraries you'd want on most devices).

You have clearly never had to support on very many third-party C libraries. The standard open source ones that have been around for decades (e.g. zlib, Berkeley DB) are indeed well-written and high-quality, but they are not the common case.

Comment Re:As a C programmer (Score 1) 302

I recall from my C class that the language only has 34 keywords and that one of its advantages is that it doesn't come with unnecessary baggage.

What that typically means in practice is that for anything beyond a certain scale, you need to write the unnecessary baggage yourself. And believe me, you will.

As an embedded engineer, I appreciate this and also have never had to use a string package, or library, in my professional career.

Some embedded devices do have complex UIs which might find it useful. I've never written the firmware for a modern digital TV or DVR might need to do some of that. But yes, most firmware (and I have worked on some) doesn't need to manipulate strings.

Comment Re:Country? [Re:As a C programmer] (Score 3, Informative) 302

No. Let me try to rephrase it.

The increase and/or popularity of C may be a result of embedded programmers working for manufacturing companies, who are mostly NOT in the USA or Europe. (At least manufacturing is not growing in here.)

Thus, if you live in the USA or Europe, you probably should NOT take these numbers (popularity) as a sign that C is a good employment opportunity. The growth is not where you live.

Being Slashdot content is written in English, I assumed mostly USA or UK readers. Perhaps I should have stated that. At least that's who my target audience for the location warning.

Clear now?

Comment Re:C is the best (Score 1) 302

C and assembly are all you need to know. The rest is just syntactic sugar.

That's what the Lisp folks usually say: it can be any paradigm you want, even one you made up.

(Which can back-fire when you use it to model how your head works, leave the company, and the new guy discovers you are insane by his/her standards.)

Comment Re:As a C programmer (Score 1) 302

People struggle with pretty much every language, it's just that the bugs are different in each.

It's usually not the language that throws me for a loop (no pun intended), but the screwy poorly-documented API's and Web UI stacks (DOM, CSS, etc.), which seem to break whenever a new browser version comes out and have to be tested on gazillion devices and browser brands. Time to rethink web UI (non) standards: it's a fscking time sink. [Insert the rest of my usual UI rant here.]

Comment Country? [Re:As a C programmer] (Score 0) 302

Being more devices and consumer goods probably have embedded programming in them, I suspect that accounts for most of the C increase, and it's probably being done overseas, where the manufacturing hubs are.

Keep that in mind before jumping on the C bandwagon.

I purchased a fairly basic electric fan, and it has a digital control for level and a timer. It's probably programmed in C. I even saw a toilet seat in one store that glows via an LED light that turns on when you sit on it, if the light is off. Could be C in that controller also. You may be sitting on C now and not even know it.

Slashdot Top Deals

Top Ten Things Overheard At The ANSI C Draft Committee Meetings: (8) I'm on the committee and I *still* don't know what the hell #pragma is for.