现在的位置: 首页 > 综合 > 正文

三个重要理念:DIY-DRY-DRTW

2014年04月05日 ⁄ 综合 ⁄ 共 2261字 ⁄ 字号 评论关闭

今天突然想小结一些对技术人员来说很重要的几个概念。

Do it yourself.

这个,不动手的话,什么技术都出不来。

Don't repeat yourself.

这是在程序设计时特别重要的,从Productive Programmer学习到的。重复的东西写太多,那么每一个都要修改一次,出错几率特别大。

Don't reinvent the wheel.

这是节约智力资源的明智之举。在设计制造东西时,首先要尽量多找前人的成果。不要把精力用到重复发明已有的东西上。

以下是对HTML编辑的尝试,感觉还效果还可以,至少色块和排版都出来了,我没有深入学HTML,而是充分利用了工具,算是对上面的几个理念的一个注解吧。下面的示例持续更新:
现在是用这个网站来可视化编辑的: http://plugnedit.com/

Plug N Edit
PlugNedit allows for rapid styling of objects, the editor does most of the styling for you in a layers based design.
HTML editors are typically hard to work with when building layers and design. PlugNedit is designed on a graphic editor style layout with a layers palette which allows you to quickly control the layering of objects.
 
PlugNeditcan be used to create complete pages or just part of a page. If you need something special in your web
page like text on a picture or a frame around a picture, you can build it quickly in PlugNedit and then insert into your HTML where you would like it to display.
 
PlugNedit uses a object base design, this box is one of the objects in the page design. Objects can be sized and
placed on top or behind each other. Each object can be quickly styled in the editor, the layers menu controls what items are placed on top of other items.
 
PlugNedit allows for transparency to be set on each object making objects to appear see thru. You can set the transparency of a object in the layers palette or by right mouse clicking the object and using the quick menu.
 
As you work, you can undo any mistakes you make in the options menu by clicking the undo button.
 
You may have to click the undo several times because the editor records every click.
 
PlugNedit uses Double Click in the editor, Double clicking a object changes from select text to move.
 
PlugNedit includes a inline editor for greater formatting of objects. you can load the inlined editor in the text menu.
 
When your work is complete select the main menu and click finished.

Web Designers: PlugNedit is great for inserting a layers based item into your web pages. The program does all the positioning for you just copy and paste code into a div tag where you would
like the item to display.

 
Enjoy PlugNedit
Fast Spirit
Allowing for rapid page creation in a object based design.
Click Item to select and edit contents.

Click & Drag move handle to move items around the page, or click text object to type text directly into the page.

 
Click & Pull Hinge at bottom right corner of boxes to re-size.
 
Right Mouse Click for quick menu to adjust layer levels, undo mistakes or set layer transparency.
 
Double Click to toggle between moving object and select text.
Click & Drag Area to select multiple layers at one time.
 

抱歉!评论已关闭.