tags:

views:

107

answers:

3

Can C/C++ be choice of keeping all your logic (business/domain) for web application?

Why?

I've two resources (cousins) having knowledge on C/C++ and me also good in C/C++, Python, HTML, CSS and JavaScript.

We like to utilize our free time to work on our some good ideas we developed together. The ideas require knowledge of web application development. And I'm the only one who has it.

Is there a way they developed the core in C/C++ and I do the rest of scripting for front-end development?

Thanks.

+2  A: 

C/C++ and Python can be integrated fairly easily, but Python really should be a snap for anyone that knows C well to pick up in a week.

Ignacio Vazquez-Abrams
@Ignacio keep things in C/C++ will increase the application performance? I heard once google keep its all core in C/C++ and use python for interfacing? Is this correct?
Ramiz Uddin
I can't speak as to what Google's doing, but most of a web application's time is spent waiting. It makes sense to speed up the slow parts, but profiling should be performed before anything is done regarding speed optimization.
Ignacio Vazquez-Abrams
what is more efficient with application performance if c/c++ will interact with database. will there be any speed efficiency or it will be same as you access through other server-side scripting or other languages?
Ramiz Uddin
Database access is not the place to optimize. The slow parts of database access are the network, and of course the database engine itself. The bindings for most languages are likely to be only a tiny bit slower than the C library.
Ignacio Vazquez-Abrams
A: 

I don't think you should use a compiled language (at least not c++) for web programming. I thought about doing this once too but remember that for any change you'll have to compile etc.

Facebook uses php and it's hip hop application changes php into c++. Maybe you should take a look at that.

Of course c++ (or any compiled language) will be faster than an interpreted language, but you also have to take in account the development time of the web site/app.

Hope this helps :)

AntonioCS
A: 

cython http://wwww.cython.org is a nice way to interface python and C/C++

Xavier Combelle