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

查看所有标签

猜你喜欢:

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

复制互联网之2

复制互联网之2

文飞翔//刘伟 / 清华大学出版社 / 2011-6 / 45.00元

《复制互联网之2:2011年全球最值得模仿的100个网站》从行业的整体发展趋势中,收录了国内外最值得关注的互联网商业模式,为初创网站设计者提供了诸多可供借鉴的最具有启发价值的商业案例。此外,《复制互联网之2:2011年全球最值得模仿的100个网站》对前沿互联网产品的介绍和思考,也值得网站开发人员、产品设计人员及公司管理人员在产品和运营的创新上借鉴与参考。 作者是网易科技频道的编辑,长期致力于......一起来看看 《复制互联网之2》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

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

HEX CMYK 互转工具