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: How should a software engineer go about making a website?

5 pointsby AgathaTheWitchalmost 11 years ago
I have been a professional software developer for four years now and must confess, I have never made a website. Mostly I have done systems engineering (Deployment, security, database infrastructure) but also some QA work and Java app development.<p>I wrote a fiction book in my spare time and would like to create a site to promote it and possibly develop the IP into other products. I already have a domain. The thing is, there are so many ways to create websites. I want a framework that is easy to use but also not too cookie-cutter. I&#x27;ve heard good things about Squarespace.<p>My best languages are Python, Java, and Ruby. Pretty solid with Unix (I&#x27;ve written hundreds of BASH scripts) and I wouldn&#x27;t mind writing HTML and CSS if necessary. I know Javascript a bit too.<p>Anyway what do you folks recommend?

9 comments

jqmalmost 11 years ago
Wordpress? (Kidding...). I like Python Flask or Python Bottle.<p>For a small site I would just write the HTML. I realize this isn&#x27;t a popular opinion nowadays, but sometimes it beats monkeying with frameworks in my opinion. Especially when you don&#x27;t need to. And easier to set up hosting on shared hosting services. Check the purecss.io post from earlier this morning. They have some nice layouts.
评论 #7812966 未加载
评论 #7812630 未加载
atmosxalmost 11 years ago
Hello,<p>Ruby should be your language of choice for anything &#x27;web&#x27;, among the ones you know. Might be helpful in the future for other projects as well.<p>As most people said, Sinatra (+HAML or LESS), is an excellent framework to build up a simple website really fast.<p>However, I&#x27;d say go a step &#x27;up&#x27; and use octopress[1]. It&#x27;s a Jekyll-based blogging platform. You can set it up on Github, to avoid hosting. If you&#x27;re not expecting extremely high traffic Github is fine for static content and JS. It&#x27;s flexible enough to do whatever you really wanna do and there&#x27;s plenty of documentation online.<p>You can find many of themes and howto&#x27;s on how to use &#x27;Liquid&#x27; in order to roll your own or modify one of the current themes. It shouldn&#x27;t take more than 2 days to have something acceptable, a little longer if you plan to design a theme from ground-up.<p>Good luck :-)<p>[1] <a href="http://octopress.org/" rel="nofollow">http:&#x2F;&#x2F;octopress.org&#x2F;</a>
DanBCalmost 11 years ago
FORM OVER FUNCTION.<p>You have a fiction book. People will want to know what genre it is; what the reviews say; what it looks like; a sample chapter; where to buy it; publisher and ISBN and etc. If you&#x27;re lucky they&#x27;ll want to discuss it with other readers or to ask you questions.<p>If I&#x27;m in a bookshop and I see a book, and I websearch it there are a few things that happen.<p>1) I get a great website. I am more likely to buy the book.<p>2) I get a terrible website. I am less likely to buy the book.<p>A terrible website is one that does a bunch of stuff before I get to the information I need.
inskyalmost 11 years ago
Well it seems to me that you are very happy to write scripts so wouldn&#x27;t be alergic to writing a little bit of code.<p>I&#x27;d suggest you pick out of your best languages the one you prefer. And go with that.<p>Write a few pages of text in something like Markdown or RST (python). Use a microframework like Bottle (python), that resolves a route (example.com&#x2F;about&#x2F;) to a function. In that function convert your micro-markup to html, that you then wrap further in a template.<p>You can find some free html templates available on-line.<p>Before that, plan the site, define what it is and jot down your expectations of what it will do. Look at similar sites. Note the ones you like.<p>Draw up how the pages will be connected. For what you describe, it sounds like you only need a few pages. With the homepage listing news&#x2F;updates. When you add something to the site (news) syndicate elsewhere, with links back (i.e. Twitter, Facebook).<p>If I was a fan, I&#x27;d probably want to join a community. Perhaps a newsletter and&#x2F;or fan forum would be a good addition. You may want to manage a mailing list and&#x2F;or a web forum.<p>If you have a web forum, you might want to stick that on another domain (or subdomain). You should be able to find an off the shelf solution for that. It doesn&#x27;t need to be in the same language as your main site. Or hosted in the same place.<p>Getting different web components (forums, etc) to match cohesively theme-wise is a bit of a challenge. But it&#x27;s not necessarily needed in my opinion. Personally as a fan I&#x27;m more interesting in content. You could however pay someone to theme the site after you have it working. That&#x27;s easier if you restrict yourself to a minimal amount of templates.<p>There are millions of frameworks out there to choose from. Start with something very simple like bottle, it will introduce concepts and if you want to take it further later on you can.<p>If you haven&#x27;t written a web page at all before, then basic html is a good place to start (elements: html, head, body, head, h1, h2, p, a, ul) page is a good place to start. Compose two html pages, link them back and forth to each other and try and add an image and text to both. You don&#x27;t need a fancy web server to do that, you can just open a text file and start writing, and test in your web browser.
评论 #7821725 未加载
canterburryalmost 11 years ago
Honestly, for what you are trying to do, I would go bootstrap or foundation framework, HTML5 and CSS3. Not even JavaScript. That&#x27;s it.<p>Skip the SASS, LESS, Python, WordPress, Flask or other stuff everyone here is talking about. You don&#x27;t need it.<p>Some plain static webpages. Period.
chriswesselsalmost 11 years ago
Ruby is a terrible choice. Use a Node.js based static site generator. You could even host on Amazon S3 (super low cost but globally distributed and redundant)! Look at Whitesmith&#x2F;Blacksmith&#x2F;etc.
评论 #7821734 未加载
YoAdrianalmost 11 years ago
You might start with Github Pages: <a href="https://pages.github.com/" rel="nofollow">https:&#x2F;&#x2F;pages.github.com&#x2F;</a>. It&#x27;s all Ruby and pretty easy to use.
mkobaralmost 11 years ago
This is what Tails is doing:<p><a href="https://tails.boum.org/blueprint/replace_truecrypt/" rel="nofollow">https:&#x2F;&#x2F;tails.boum.org&#x2F;blueprint&#x2F;replace_truecrypt&#x2F;</a>
adam419almost 11 years ago
Ruby + Sinatra