学习不同的语言 [英] Learning different languages

查看:76
本文介绍了学习不同的语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述






(这可能有点OT,但comp.lang似乎相当

荒凉所以我不确定我会在那里得到一个答案。而且现在

我正在学习Python,所以......)


无论如何,我的问题是:你们有什么样的工作经验

同时使用不同的语言?


实际上我做了很多几年前,在我的Commodore机器上,

我在基本,汇编程序和机器代码中编写了很多东西,并且

不记得我在处理方面遇到任何问题这些并行。但是

那么,它们是非常不同的语言,所以要让它们的

语法等相互混淆并不容易。


我更多地考虑Python,PHP,C ++,Perl,Euphoria,这些是我想要学习的语言。除了基本和MC之外,它们看起来更像是每个

,有些地方甚至可以分享完全相同的语法,所以你的大脑可能会混淆什么语言

你实际上在用?


你在处理这些并列的经历如何?你推荐什么?
- 一次拿一个(或两个),然后用下一个继续

?或者可以立即继续使用它们吗?


Hi,

(this is a probably a bit OT here, but comp.lang seems rather
desolated, so I''m not sure I would get an answer there. And right now
I''m in the middle of learning Python anyway so...)

Anyway, my question is: what experience you people have with working
with different languages at the same time?

Actually I did myself many years ago, on my Commodore machines, where
I programmed a lot in both basic, assembler and machine code, and
don''t recall I had any problems with handling these parallel. But
then, they are very different languages, so it''s not easy to get their
syntax etc. mixed up with each other.

I''m more thinking about Python, PHP, C++, Perl, Euphoria, which are
languages I''m thinking of learning now. They look much more like each
other than basic and MC, at places some even share the exact same
syntax it seems, so your brain might get confused with what language
you''re actually working with?

How is your experience with handling these paralell?. And what would
you recommend - take one (or perhaps two) at a time, and then continue
with the next? Or is it OK to go ahead with them all, at once?

推荐答案

Rich写道:
无论如何,我的问题是:你们在同一时间用不同语言工作的经历是什么?


在任何时候,我都在做相当多的Python和C工作。我还要为支持框架做很多bash脚本。除此之外

我使用了相当多的特定于域的语言,具体取决于手头的问题(SQL,XSL等)。从shell开始,我经常在sed / awk中做一次性的b / b等等。

我更想到Python,PHP,C ++,Perl ,幸福感,这是我正在考虑学习的语言。除了基本和MC之外,它们看起来更像是每个
,有些地方甚至可以分享完全相同的语法,所以你的大脑可能会对什么语言感到困惑
你实际上与...合作?


看起来这在实践中并不是什么大问题。我会

偶尔发现自己使用了错误的语言结构,所以

简单的说我的大脑是巡航控制(一个简单的循环或

条件)但通常在我打完行之前就抓住了它。

对于任何需要任何想法的东西它都不是一个

问题。


有趣的是,我在远程服务器上做了一些工作,只需要很少的支持

基础设施(裸露的vim没有语法高亮,自动缩进等)并且

就错误的语言而言,它似乎并没有受到太大的伤害。去。它是

通常更多与语言无关的功能,这些功能有助于

捕获(不平衡的parens,拼写错误等)。

怎么样你处理这些并列的经验?你会推荐什么 - 一次拿一个(或两个),然后继续
下一个?或者可以立即继续使用它们吗?
Anyway, my question is: what experience you people have with working
with different languages at the same time?
At any given time, I''m doing a fair amount of Python and C work. I
also do a lot of bash scripting for supporting frameworks. Beyond that
I use a fair number of domain-specific languages depending on the
problem at hand (SQL, XSL, etc). And from the shell I''m often doing
one-offs in sed/awk, etc.
I''m more thinking about Python, PHP, C++, Perl, Euphoria, which are
languages I''m thinking of learning now. They look much more like each
other than basic and MC, at places some even share the exact same
syntax it seems, so your brain might get confused with what language
you''re actually working with?
It seems like it''s not much of a problem in practice. I will
occasionally find myself using wrong-languages constructs for things so
simple that my brain is on cruise control (a simple for loop or
conditional) but usually catch it before I''m even done typing the line.
And for anything that requires any amount of thought it''s just not an
issue.

Interestingly, I do some work on remote servers with minimal support
infrastructure (bare vim w/o syntax highlighting, auto-indent, etc) and
it doesn''t seem to hurt much as far as "wrong language" goes. It''s
generally more language-independent features that those features help
catch (unbalanced parens, typos, etc).
How is your experience with handling these paralell?. And what would
you recommend - take one (or perhaps two) at a time, and then continue
with the next? Or is it OK to go ahead with them all, at once?




我可能会一次推荐_learning_一种语言直到

你对基础知识非常满意。但是学习一门语言(因为与图书馆相对而言需要更长时间才能熟悉,但是b / b
不太可能被混淆)是一个非常快速的过程。 br />



I would probably recommend _learning_ one language at a time until
you''re pretty comfortable with the basics. But learning a language (as
opposed to the libraries, which take longer to get familiar with but
are much less likely to be conflated) is a pretty fast process.


Rich写道:
无论如何,我的问题是:你们在不同语言的工作中有什么样的经历?同时?
Anyway, my question is: what experience you people have with working
with different languages at the same time?




IMO,这是个好主意。


目前,我正在使用Python和红宝石。我会写一些东西和

然后在另一个中尝试。我比Ruby更了解Python,所以对我来说这是一个

的学习经历。我认为这有助于我从不同的角度看待事物。我很欣赏这两种语言,并尊重他们的解决问题的方法。


知道如何使用几种不同的工具会让你受益匪浅。

你身边的人。


最好的运气!

Brad



IMO, it''s a good idea.

Currently, I''m using Python and Ruby. I''ll write something in one and
then try it in the other. I know Python better than Ruby, so it''s a
learning experience for me. I think it helps me to see things from a
different perspective. I admire both languages and respect their
different approaches to problem solving.

Knowing how to use a couple of different tools will benefit you and
those around you.

Best of Luck!
Brad


周二2006年3月7日04:44 pm,Rich写道:
On Tuesday 07 March 2006 04:44 pm, Rich wrote:
无论如何,我的问题是:你们在同一时间用不同语言工作的经历是什么?
Anyway, my question is: what experience you people have with working
with different languages at the same time?




总是,你偶尔会把一个与另一个混淆,这是你已经知道的那么多的惩罚,我很有信心。


OTOH,它会减少你对一种语言的限制的偏见

而不是另一种语言。


我一直试图让我的孩子为了一些时间学习一点点Python,但对它们来说并不是太容易了。然后,在

蓝色之外,他们想学习Lua。


为什么?


简单 - Lua是Enigma的扩展语言。所以他们想要使用新的游戏级别来制作新的游戏级别,他们必须使用Lua。动机很重要

不仅仅是轻松,恕我直言。 :-)


我们最近意识到,教孩子们编程是很难的,

教他们* hack *很容易。一旦他们学会了攻击游戏

级别,他们就会从关卡设计师那里学到关于编写脚本然后进行编程的基础知识,他们会开始问怎么

我可以让这更容易吗?"


我的儿子已经问过有没有办法我不必输入这个

一遍又一遍?所以我们当天学会了循环。它是

当学生积极地学习概念时,更容易教一个概念,而不是试图推动它们的想法和

想出了为什么他们需要知道它的理由。这个

的方式他已经知道了这个问题 - 我只需提供

解决方案。


但我不喜欢我想我想尝试全力进入Lua。在一些

方式中,它与Python类似,但重量更轻。 OTOH,我不认为

我想尝试用它做任何严肃的事。


尽管如此,我发现它''在他们学习Lua的同时,更容易在他们的b $ b上教他们Python。概念是相似的,并且它不是很难来回走动。我将继续在Lua(嵌入Enigma)中开发

基本概念,然后使用

Python和PyGame让他们自己制作自己的程序

使用他们通过黑客学习的概念(一个项目

我们已经有一段时间感兴趣了 - 我的孩子一直在制作

为未来的游戏做了很长时间的精灵,并且正在获得这个部分相当不错的好处。


所以,我不认为你它会有一个真正的问题。


干杯,

特里


-

Terry Hancock(hancock at anansispaceworks.com)

Anansi Spaceworks http://www.anansispaceworks.com


这篇关于学习不同的语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆