TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Web programming for a C++ server developer?

8 pointsby jknuppalmost 16 years ago
I've been programming low-latency, high throughput C++ systems for more than 5 years now, but I wanted to try my hand at some simple web development. Compared to 5-10 years ago (I'm 26 and haven't programmed for the web in a while), the sheer number of frameworks and add-ons to those frameworks is a bit overwhelming.<p>I've started to implement my site using Django as I'm a moderately proficient Python programmer but would be open to switching to another framework for a compelling reason. Also, where can I find resources to learn the more client facing stuff (AJAX, CSS, basic layout and design, etc)?<p>As an aside, has anyone else been through this before (i.e. much more comfortable with back end work but want to implement an idea you've had)? What did you do in that situation?

4 comments

wheelsalmost 16 years ago
I went through that jump about a year back, so here are some of the things that I've gleaned:<p>- You'll be doing a lot of JS. Just use jQuery. It's the most popular of the JS / AJAX frameworks, so even if you decide not to use it later on, it's a good starting point.<p>- I dig Ruby / Sinatra. Never really got into Rails or Django. You can learn how to use Sinatra + Haml + Sass in a few minutes. I've also learned that, somewhat to my surprise given my previous perception of their fan-bases that I don't really like Python and much prefer Ruby.<p>- For novelty there's Wt (<a href="http://www.webtoolkit.eu/wt" rel="nofollow">http://www.webtoolkit.eu/wt</a>), haven't brought myself to actually use it for anything though.<p>- CSS grid layout "frameworks" make things easier. I used (<a href="http://code.google.com/p/blueprintcss/" rel="nofollow">http://code.google.com/p/blueprintcss/</a>) for our new site, but can't say that I had much love for it -- though still much better than doing all of the layout by hand.
评论 #765586 未加载
评论 #765629 未加载
huhtenbergalmost 16 years ago
&#62; <i>I've been programming low-latency, high throughput C++ systems for more than 5 years now</i><p>You <i>will</i> cringe at the web stuff then. Lots and lots of CPU cycles are wasted to shorten the development cycle and simplify (dumb down) the life of the developers. Layers upon layers of abstraction. Using PHP to generate a <i>static</i> HTML page is not a big deal. This sort of thing.<p>It certainly makes a lot of business sense as the hardware is cheap, and the labor is not. But if you are used to squeezing every last drop of performance from you code, it will be painful to look at some of the web stuff.
nwatsonalmost 16 years ago
I'm in the same situation. I've never really written a DB-backed web-based application, so I'm starting down that road. Been working mostly on C++ distributed multi-threaded servers with lots of asynchronous network communication.<p>I'm a big Perl fan and am comfortable with its object-oriented model so I've chosen to use it. Here's the environment/tools I've settled on so far: Apache on Linux (primary platform, might try to make sure works on Windows too); mod_perl 2 in Apache pre-fork; PostgreSQL 8.x for back-end; Rose::DB for DB persistence layer (apparently easy-to-use ORM, allows many-to-many relations unlike various other Perl-based DB layers); Template-Toolkit 2 for web template environment; going to layer on JavaScript later ... not sure which library to use yet.<p>To some this may not be the ideal environment or the most current or most up-to-date set of tools. For me though it seems the quickest way to seriously explore and understand web issues.<p>I have a big hole in my software experience where several web apps should be, and I need to fill it with something. Might try Django or some other Python tool later. I'd actually like to try Twisted some time (asynch Python network engine, not web-specific).
laurent_balmost 16 years ago
Coming from C++, if you do not want to become crazy using untyped languages you might be interested by the haxe programming language.<p>A nice inference typed language which can be compiled down to neko bytecode (much like java bytecode), JavaScript (for the client side), Flash movies (idem), and even C++<p>Plus, haxe has a mod_neko for apache and lot of libraries to manipulate databases and templates.<p><a href="http://www.haxe.org" rel="nofollow">http://www.haxe.org</a>