Easy for C, getting shit done (tm) is something for pros. The subtlety of getting malloc, free, and pointer arithmetic in general, right just isn't easy for a novice coder.
C++ suffers from the same problem, just to a lesser degree.
node.js on the other hand has the advantage that nearly everyone who knows a bit of JS from his latest website gig can also do a node.js application.
Well isn't that really because nodejs has the V8 engine behind it which has created enough helper functions and libraries to make it easy to make a webapp on. Otherwise there isn't much on the barebones JS language itself to build a webapp is there? If C/C++ got those frameworks wouldn't they have had these libraries built as well.
C definitely - strlen() not binary safe, you have to deal with malloc()/free()/strdup() etc. by hand instead of letting a highly optimized GC do the job...
In a way, all web frameworks are written in C - at least, the Python, Ruby, and PHP interpreters are written in C, and the V8 engine is written in C++ :)
16 comments
[ 2.1 ms ] story [ 52.0 ms ] threadC++ suffers from the same problem, just to a lesser degree.
node.js on the other hand has the advantage that nearly everyone who knows a bit of JS from his latest website gig can also do a node.js application.
Does using C really benefit the average new business with this task?
I'd love to do more C web-development, but it's sort of logical that C web frameworks aren't as common as other languages.
This is a C++ web framework I wrote. It's a work in progress. I could beat go and nodejs in some simple perf test.