0xF Rules

栏目: IT技术 · 发布时间: 5年前

内容简介:I have been writing articles on this website for twelve years. If you were to look at theearly versions, you would think it is a fresh-out-of-school project with icons drawn in Microsoft Paint. And that is exactly what it was.The site started in a world be

I have been writing articles on this website for twelve years. If you were to look at theearly versions, you would think it is a fresh-out-of-school project with icons drawn in Microsoft Paint. And that is exactly what it was.

The site started in a world before smartphones and tablets at a time where Apple products still used PowerPC processors. The hand-crafted framework to run it grew organically over the years and remarkably followed the path of most software. It became bloated and obsolete. In 2018, it was time to revise the engine.

I wanted to build something rooted in simplicity, responsiveness, and speed. I opted for a drastic approach where instead of starting from my existing framework and removing/fixing features, I started from scratch and added only what I needed.

It was an opportunity for introspection. I reflected about what I had liked and disliked in my browsing past. I also thought about why I wrote and what I wanted to achieve with these articles. Eventually, I drafted a list which became my guideline.

Guideline

0x0. I like blazing-fast websites.

0x1. I like minimalist websites.

0x2. I like responsive websites that render well on tablets.

0x3. I like when the author's name is clearly stated.

0x4. I like when the author leaves contact information.

0x5. I like when the publication date is easy to find.

0x6. I like monospaced fonts.

0x7. I like when quotes and citations are easy to find.

0x8. I like to learn core technology like HTML/CSS. Not frameworks (Wordpress).

0x9. I like RSS.

0xA. I dislike analytics which serve the author's ego and track me.

0xB. I dislike the comment area where people are rude and also serves the ego.

0xC. I dislike ads.

0xD. I dislike side menu which wastes horizontal real-estate.

0xE. I dislike visible reflow.

0xF. I dislike extra-clicks (Accept cookies?, splash, Use our app!, Medium paywall).

framework

0xF Rules 0xF Rules 0xF Rules

In the past two years, I have received numerous inquiries about the framework used for this website. Here is how it works.

The HTML pages are statically generated from php. There is a "master" script called "gen.php" which iterates over all sub-folders and searches for files named "article.php". Upon hit, the master runs the article script, wrapping it into a header and a footer, and redirects the output to a file named "index.html".

There is one helper function, footnote(), which stores references so they can be listed in the footer. It is something any programmer could write in an hour.

Authoring HTML is done with Sublime Text 3. Drawing is done with Inkscape. Syncing is done with CyberDuck. It is not the most engineered tool but it is dead simple and gets the job done.

*

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

互联网心理学

互联网心理学

雷雳 / 北京师范大学出版社 / 2016-6-1 / CNY 99.00

☆人为什么要使用互联网? ☆为什么越来越多的人更喜欢在网上畅所欲言? ☆网络行为背后的心理机制又是什么? ☆虚拟网络世界又是如何改变了我们? 当连接万物的互联网遇见无处不在的心理学,当虚拟空间生长出真实的“心理特性”,我们需要用心理学的方式,重新思考互联网背后的人与社会。这是一部汇集前沿学者智慧、充满探索精神的佳作,该书从心理学视角切入,透过文化多样性和环境多样性,详细解读......一起来看看 《互联网心理学》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

在线进制转换器
在线进制转换器

各进制数互转换器

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具