TCL 作为服务器端编程语言

发布于 2024-08-12 10:11:45 字数 1539 浏览 6 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

白色秋天 2024-08-19 10:11:45

我在一家专门使用 tcl 开发 Web 应用程序的公司工作。它不会为您赢得任何奖项,但它是一个非常可行的平台。 DHTML 的处理方式与其他服务器端语言相同,它的服务方式就像任何其他 html 一样,因为它是客户端。我们使用 AOLserver。尽管名字很糟糕(aol!!??),但它是一个不错的平台,可以做 php/jsp/asp 等中可以做的一切。线程化非常简单:)。 AOLserver 多年来一直是最快的 Web 服务器。

您只需将 tcl 脚本(.tcl 文件包含您的业务逻辑)和 .adp 文件(您的视图代码和 dhtml)上传到服务器并运行它们。所有 aolserver 代码都是用 c 或 tcl 编写的。

tcl 的一个非常好的 IDE 是 Komodo

准备好因使用 tcl 而受到批评吧,但它是一种非常成熟的语言,拥有几乎可以做任何事情的库。 :D 大多数人只是不喜欢这种语法,但正如你所知,它非常简单。

哦,是的,如果您在湾区,我也许可以给您面试;)Tcl 程序员是这里相当稀缺。

I work for a company that does its web applications in tcl exclusivley. It won't earn you any awards, but it is a very viable platform for that. DHTML is handled the same way as other server side languages, it is serverd just like any other html cause it is client side. We use AOLserver. Despite the terrible name (aol!!??) it is a nice platform and does everything one can do in php/jsp/asp and more. Threading is very easy :). AOLserver was the fastest web server around for years.

You just upload tcl scripts (.tcl files contain your buisness logic) and .adp files (your view code and dhtml) to the server and run them. All the aolserver code is written in either c or tcl.

A very nice IDE for tcl is Komodo.

Be prepared to be flamed for using tcl, but it is a very mature language with libraries to do just about anything. :D Most people just don't like the syntax, but as you know it is very simple.

Oh yeah if you are in the bay area, I might be able to get you an interview ;) Tcl programmers are pretty scarce around here.

凑诗 2024-08-19 10:11:45

我不完全确定您在 VS 中编写 Web 应用程序时使用的语言/范式/设计模式,因为编写 Web 应用程序的方式通常与您使用的 IDE 无关。但一般来说,有两种编写 Web 应用程序的方法:

  1. 传统方法 - 从应用程序代码生成 UI 元素。 Perl 中的 CGI.pm 或 Java 中的 Google Web Toolkit 等库就采用了这种方法。好处是,这是桌面开发人员熟悉的设计模式,其中 UI 和业务逻辑由相同的语言处理。不利的一面是,一旦您最终学习并完全熟悉 HTML、CSS 和 HTML、CSS 以及Javascript,做任何复杂的、现代的、先进的和 Web2.0 式的事情都会变得非常痛苦。

  2. 现代方式 - 应用程序代码仅生成供 HTML 模板引擎或来自前端的 AJAX 请求使用的数据结构。缺点是,真正擅长 HTML、CSS 和 Javascript 需要一个陡峭的学习曲线。好处是,您将成为一名更好的 Web 开发人员,能够轻松实现 google 地图等功能。

我推荐现代方式,因为你提到了网络应用程序。如果它只是一个网站,那么老式的方式就足够了。因此,问题第二部分的答案是更好地了解 HTML、CSS 和 Javascript,并使用 HTML 模板将应用程序逻辑和 (D)HTML 结合起来(D 部分与模板关系不大,更多地与了解如何使用 JavaScript)。

对于你问题的第一部分,我也推荐科莫多。它非常适合 HTML 和 CSS,并且非常适合 tcl 和 javascript。我买不起成熟的 Komodo IDE,所以我使用免费的 Komodo Edit,但即使 Komodo Edit 也足以用来编写 Web 应用程序。

I'm not entirely sure what language/paradigm/design pattern you used writing web apps in VS because how you write a web app is generally independent of what IDE you use. But in general there are two approaches to writing web apps:

  1. The old school way - Generate UI elements from application code. This is the approach taken by libraries like CGI.pm in Perl or the Google Web Toolkit in Java. The upside is that this is a familiar design pattern for desktop developers where UI and business logic are handled by the same language. The down side is that once you finally learn and are fully comfortable with HTML, CSS & Javascript, doing anything complicated, modern, advanced and Web2.0-ish becomes a huge pain.

  2. The modern way - Application code merely generates data structures to be consumed by either HTML templating engines or AJAX requests form the front end. The down side is that actually being good at HTML, CSS and Javascript requires a steep learning curve. The up side is that you'll be a better web developer who's comfortable implementing something like google maps.

I'd recommend the modern way because you mentioned web APPS. If it was simply a website then the old school way would suffice. So the answer to the second part of your question is to get to know HTML, CSS and Javascript better and use HTML templates to combine application logic and (D)HTML (the D part has little to do with templates and more to do with knowing how to use javascript).

For the first part of your question though, I also recommend Komodo. It's good with HTML and CSS and it's great with tcl and javascript. I can't afford the full-fledged Komodo IDE so I'm using the free Komodo Edit but even Komodo Edit is more than enough to author web apps in.

⒈起吃苦の倖褔 2024-08-19 10:11:45

按照 Byron 的回答,AOLServer 是一个很好的候选者,但是如果您有兴趣使用 apache 作为您的网络服务器,那么有一个 mod_tcl (http://tcl.apache.org/mod_tcl/),允许您使用 Tcl 作为服务器端语言(类似于 php)。

我已经好几年没有尝试过了,但最后我记得它效果很好。

Following Byron's answer, AOLServer is a good candidate, but if you are interested in using apache as your webserver then there is a mod_tcl (http://tcl.apache.org/mod_tcl/) that allows you to use Tcl as your server-side language (similar to php).

I have not tried it for quite a few years but last I remember it was working pretty well.

青瓷清茶倾城歌 2024-08-19 10:11:45

我发现 cgi.tcl (在expect.nist.gov)对于服务器端部分非常有用......

I found cgi.tcl (at expect.nist.gov) very useful for the server side part...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文