The web as a GUI toolkit

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

内容简介: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》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

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

操作系统

操作系统

William Stallings / 陈向群、陈渝 / 机械工业出版社 / 2010.9 / 69.00元

本书不仅全面地讲述了操作系统的基本概念、原理和方法,还清楚地展现了当代操作系统的本质和特点。作者针对近几年操作系统领域的最新变化,对操作系统的设计原理进行深入的阐述,同时将其对操作系统整个领域全面而深入的理解呈现给读者。 本书特色 ·选择Windows Vista、UNIX和Linux三个操作系统作为示例,以帮助读者熟悉当代操作系统的设计原理和实现问题。 ·新增嵌入式操作系统一章......一起来看看 《操作系统》 这本书的介绍吧!

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

在线 XML 格式化压缩工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具