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.

Hand Coding A Personal Website

50 pointsby petewailesover 11 years ago

11 comments

nmcover 11 years ago
Nice tutorial, I just disagree on two small points.<p>First, there are very sound arguments for not using CSS preprocessors [1].<p>Second, for a website that you own, using &quot;.htaccess&quot; is discouraged for performances reasons. The Apache 2.4 docs [2] say:<p><i>&quot;You should avoid using .htaccess files completely if you have access to httpd main server config file. Using .htaccess files slows down your Apache http server. Any directive that you can include in a .htaccess file is better set in a Directory block, as it will have the same effect with better performance.&quot;</i><p>[1] <a href="http://blog.millermedeiros.com/the-problem-with-css-pre-processors/" rel="nofollow">http:&#x2F;&#x2F;blog.millermedeiros.com&#x2F;the-problem-with-css-pre-proc...</a> [2] <a href="http://httpd.apache.org/docs/2.4/howto/htaccess.html" rel="nofollow">http:&#x2F;&#x2F;httpd.apache.org&#x2F;docs&#x2F;2.4&#x2F;howto&#x2F;htaccess.html</a>
评论 #7136523 未加载
评论 #7136479 未加载
评论 #7136525 未加载
评论 #7136526 未加载
评论 #7136626 未加载
评论 #7137006 未加载
评论 #7137162 未加载
dlwiestover 11 years ago
I was about to link this to a friend, who has been using Wordpress and expressed interest in learning more about how websites work, and then OP got into installing a local Apache server and using LESS to compile CSS, and I&#x27;m afraid it might intimidate her, since she&#x27;s already hesitant about her capacity for learning this sort of thing. I&#x27;m not sure why either was brought up though. If OP is comfortable with these tools and wanted to write about his own experience, I could understand, but for the sake of a tutorial, what benefit does adding these complications, which present a risk of alienating some segment of the tutorial&#x27;s audience, provide? Unless you need a back end language, you don&#x27;t need to install a local Apache server; you can run html files directly from whatever folder they&#x27;re stored in, and if you link with relative paths, you can transfer the whole directory to a live server and it will still work fine, and for the amount of rules a beginner will probably write for a small, personal website, using LESS is probably overkill. Furthermore, anyone who&#x27;s comfortable with either of these practices would have no problem adapting them to a basic &quot;building a website with a grid framework&quot; tutorial, and everyone else can pick them up later, when their value becomes more apparent.<p>It reminds me a little of the way every Javascript tutorial I find lately seems to assume that you&#x27;re running a Node.js server. Outside of maybe the HN crowd, are most people running Node servers? I doubt it. And it&#x27;s almost never necessary; you don&#x27;t need Node to configure routing or build some custom directives in Angular, for example, so why insist that people use it?
评论 #7137385 未加载
评论 #7137427 未加载
ozhover 11 years ago
I&#x27;ve rarely seen such an off topic introductory image, but I&#x27;m more surprised to see that kind of very beginner info land on HN front page. Nicely written and everything, but... HN?
评论 #7137279 未加载
pyalot2over 11 years ago
Having written pages, by hand, for ages now (like 15 years or so), I recently took this to a new level. I&#x27;m now hosting my site on my own hand coded webserver and no other server in front (please don&#x27;t make me explain).
评论 #7136576 未加载
评论 #7136929 未加载
评论 #7136884 未加载
sdegutisover 11 years ago
The title made me think this was gonna be minimalistic, something like &lt;html&gt;&lt;head&gt;&lt;title&gt;My Great Website&lt;&#x2F;title&gt;&lt;&#x2F;head&gt;&lt;body&gt;&lt;h1&gt;Hello world!&lt;&#x2F;h1&gt;&lt;p&gt;Find ye great content yonder.&lt;&#x2F;p&gt;&lt;&#x2F;body&gt;&lt;&#x2F;html&gt; so I was surprised to see it using LESS and delving into .htaccess
walshemjover 11 years ago
So your hand coding but using in OpenDAWS doesn&#x27;t that defeat the purpose of doing it all yourself from first principals?
评论 #7136597 未加载
mox1over 11 years ago
I came to the same conclusion as the author recently, which spurred me to write a simple, no frills lightweight CMS. For those interested you can see it at <a href="https://github.com/mox1/webpy-bootstrap-blog" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mox1&#x2F;webpy-bootstrap-blog</a><p>Personally, I think there&#x27;s a middle ground somewhere between writing everything yourself and using hosted Wordpress. I want to control the HTML &#x2F; CSS of the pages on my site, but I don&#x27;t want to end up in a WYSIWYG environment where all the details are hidden.
binarymaxover 11 years ago
Good for you - keep learning! Knowing how things are built from scratch will give you a level of understanding that will help in all sorts of situations.<p>However, I am at the opposite end of the spectrum. I have never used a template or boilerplate or anything. Every time I&#x27;ve tried to use a prefab site I end up spending hours tearing it apart and feel like I am going backwards.<p>That being said, I cannot really recommend my approach - find a happy middle, and your productivity will soar.
mailarchisover 11 years ago
I did something similar few months. I&#x27;ve been developing webapps using django for a while now. But my frontend skills (html&#x2F;css) had always been very rusty. I decided to improve it by building a personal website without using any frontend framework or doing any server side development.<p>It was an interesting exercise. The output is here - <a href="http://archisman.com/" rel="nofollow">http:&#x2F;&#x2F;archisman.com&#x2F;</a>
adavover 11 years ago
I haven&#x27;t developed for the front-end web in a while, but is it considered hand-coding if a boilerplate this-or-that is used at every stage?
评论 #7137384 未加载
footpathover 11 years ago
Just like to add that if you&#x27;re using FileZilla as your FTP client, make sure to not let it save your passwords, as FileZilla stores them in plaintext on the computer.<p><a href="https://forum.filezilla-project.org/viewtopic.php?t=30765" rel="nofollow">https:&#x2F;&#x2F;forum.filezilla-project.org&#x2F;viewtopic.php?t=30765</a>
评论 #7137794 未加载