The web as a GUI toolkit

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

内容简介:The web is kinda weird because it was originally created as a typesetting system, rather than a GUI toolkit. While this definitely has its drawbacksand isn’t suitable forSome things that work really well that are often hard in native GUI toolkits:These are

The web is kinda weird because it was originally created as a typesetting system, rather than a GUI toolkit. While this definitely has its drawbacksand isn’t suitable for everything , I personally rather like the “web as a GUI toolkit” exactly because of its typesetting roots; it provides some features that few other GUI environments give us.

Some things that work really well that are often hard in native GUI toolkits:

  • You can zoom pretty much any content as large or small as you like. Doing this in native UI involves either editing obscure config files, or mucking about with the system’s DPI settings (not easy to zoom per-app or changing zoom levels depending on mood or screen you’re using).

  • More cross-platform than pretty much anything else.

  • Open anything in a new context (tab or window).

  • Copy/paste anything.

  • Search any text with e.g. Ctrl+F.

  • Back button.

  • Modifying anything easily; even if you’re not doing this directly yourself this has huge benefits in the form of e.g. some simple bookmarklets or your adblocker.

These are all things that aren’t available in your standard GTK/Qt/Cocoa/MFC applications unless you specifically program them, which most apps don’t. The web gives them by default.

But the most important reason I like it requires some background: I started programming on the MSX, a machine roughly similar to the Commodore 64 or BBC Micro: you turn it on and you’re dropped to BASIC environment.

After we got a Windows machine things were a lot harder; remember, this is around 1999and I was 14-year old non-native English speaker. Things like Pascal and Python and whatnot were all around, but I didn’t know about them. Programming your computer on your own was kinda hard and non-obvious, at least for me. This was a very different experience from the MSX, which you can program immediately after booting by using the manual you got with the computer.

I tried mucking about with some pirated copy of Visual Studio I got somewhere (I thought this was the only way you could program) and after some failed attempts with C++ I gave up. It probably didn’t help that Teach yourself C++ in 10 minutes isn’t a very good programming book, at least not for beginners.

So, I stopped programming for a few years and it wasn’t until I installed Linux (which got replaced by FreeBSD fairly quickly) around 2004 that I really got back in programming. Just like the MSX, my FreeBSD machine was programmable out of the box, which made it much easier to get started. Soon I was mucking about with shell scripts, Python, Perl, and C – all tools available by default.

With the web there’s a happy medium: you’re not dropped to a BASIC or Unix shell, but programming your browser is as easy as opening the web inspector, and while JavaScript isn’t perfect, it’s fairly easy to get started with.

With the web almost everyone has a machine that has a programmable environment by default again. I feel this is a very important and powerful advantage that’s often overlooked. I appreciate that a lot of people have zero interest in programming their machines – just like many don’t have any interest in modifying their cars – but many do have this interest, and I think there’s value in empowering that.

Footnotes
  1. Are there problems too? Yeah, of course. But everyone else is already complaning about them, so I’ll omit them here :sweat_smile:

  2. I’m really too young to have grown up on BASIC; our MSX2 was from 1985, my birthyear. I remember programming on it when some of my friends already had a Pentium III.


以上所述就是小编给大家介绍的《The web as a GUI toolkit》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

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

链接

链接

[美]艾伯特-拉斯洛•巴拉巴西 (Albert-László Barabási) / 沈华伟 / 浙江人民出版社 / 2013-8-1 / 59.90元

[内容简介] ★《链接》是《爆发》的作者,艾伯特-拉斯洛•巴拉巴西的成名之作,同时也是复杂网络的奠基之作,社交网络的入门之作。巴拉巴西之前,随机网络理论一直主导者我们的网络思维,是巴拉巴西第一个证明了,我们不是生活在随机世界里,真实网络是无尺度的。 ★巴拉巴西在书中追溯了网络的数学起源,分析了社会学家在此基础上得出的研究成果,最后提出自己的观点:我们周围的复杂网络,从鸡尾酒会、恐怖组织......一起来看看 《链接》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器