由买买提看人间百态

topics

全部话题 - 话题: language
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
i**w
发帖数: 883
1
来自主题: Java版 - 为什么需要template language
template language就是为template而生的,作为网页的view,那是副业
c******n
发帖数: 4965
2
【 以下文字转载自 SanFrancisco 讨论区 】
发信人: creation (努力自由泳50m/45sec !), 信区: SanFrancisco
标 题: 有人玩macro language 么?
发信站: BBS 未名空间站 (Fri Sep 18 02:26:09 2009, 美东)
m4, 这两天在弄着玩, 套用在java 上很方便啊
wy
发帖数: 14511
3
来自主题: Linux版 - language fanbois
language wars
W***u
发帖数: 789
4
Some problem.....
sometimes, no language bar......
Help, DAXIA!
S*A
发帖数: 7142
5
来自主题: Linux版 - scripting language lua
最近再写 openwrt 下面的自动浇水系统,需要学习 lua,
因为那个 Web UI 是用 lua 搭的。
感觉,非常小非常快。在 linksys WRT54GS 下面启动
python 要大概 3 秒钟,另外多占了 4.x M 的 flash.
一共才 8M flash. 启动 lua 是没有延时的,而且 lua
跑起来比 python 快多了。我现在已经基本抛弃 openwrt
里面用 python 了,慢而且要自己编译整个 firmware
才能塞进去。
lua 还挺有意思的,但是程序没有 python 简洁。
很多 python 用得爽的功能都没有。标准库太少。
连 http request 那个库也要我手动打补丁才能发含
大写的 http header。
lua 所有的 object 都是一种, 就是 table.
面向对象的东西还要自己搭。但是也相对简单很多。
Python 的那套 OO 和 class 的内部机制还是非常
复杂的。看看 metaclass programming, 头都要爆炸了。
lua 的 lexical scoping 还挺好的。很直观而且功能
很... 阅读全帖
w******w
发帖数: 215
6
来自主题: Programming版 - What language I should use?
I want to extract certain texts from web pages. The page may contain many
links
and I have to click links to see whether contents of links are related or not.
If there are related contents, I will copy and save related paragraphs into
a text tile; if not, I need go back and check the next link.
Can anyone tell me that what language I should use? Will scripts do this work?
What kinds of script?
Many thanks!
z***e
发帖数: 5393
7
类似bj的c++ programming language或者C++ primer那样子比较深入的书,C#有没有类
似的?推荐推荐,谢谢。
n****n
发帖数: 101
8
请问script language是具体有啥用处的?
对于找工作是否用处很大啊?
该如何学习呢,有什么好的网上免费资源?
m******t
发帖数: 2416
9
It's always good to have a couple of script languages in your toolbox for
quick and dirty things. Which ones to pick is really up to everybody's taste
. I can usually get away with just plain bash scripts, but I've also got
ruby for things more complex.
m******t
发帖数: 2416
10

Sometimes java comes in handy, too - and the good thing is we are probably
familiar with the core packages enough not to have to RTFM.
Although I don't like the hassle of typing those long ass classpaths and
fully qualified class names. Also for quick and dirty pieces, java is
actually slower than most script languages, because it's usually over before
the time all the optimizations kick in.
P*******t
发帖数: 202
11
As a starter, you may want to learn some UNIX Shell scripting.
If you find that is interesting and useful for you, you may
spend more time on Perl and Python.
This kind of scripting is useful for gluing your computing
tasks, text/data processing.
The content of this book
http://www.amazon.com/Wicked-Cool-Perl-Scripts-Difficult/dp/1593270623
maybe useful for you to figure out what scripting languages
can do.
http://www.amazon.com/gp/reader/1593270623/ref=sib_dp_pt#reader-link
j***a
发帖数: 832
12
来自主题: Programming版 - Need help on choosing the language
I need to write a program to search certain txt string in MS word file, for
example find all the strings with prefix "XXX_xxx" and write these string
into a .txt file.
Access VBA will be the best choice, but other script language is fine if it
is simple.
c*****t
发帖数: 1879
13
来自主题: Programming版 - Scripting language的几个问题
我觉得单纯的依靠 test driven dev 比较愚蠢。这根本不是什么万能的
东西,只是作为一个辅助手段而已。test 本身需要大量的时间和精力去
写 case 和测试,花的时间可以比写程序多出很多。随便一个程序里面都
有 N 个 branch,你想把每个 branch 都测试么?考虑一下需要多少 test
case 先。而说不定 spelling mistake 就在那里。
再不说 test 的时间有限,甚至连 documentation 的时间也都是个问题。
scripting language 在这两面都是弱点。在时间紧迫的情况下,你是花
时间写 test case,documentation 还是去 code ?
g*****g
发帖数: 34805
14
来自主题: Programming版 - Scripting language的几个问题
That's what I think too. Java generics helps reduce a lot of
runtime classcast exception, that's the biggest boost of using
generics. static-type languages are going more static for a reason.
When every line of code has such potential, it's gonna
be a problem.
c*****t
发帖数: 1879
15
来自主题: Programming版 - Scripting language的几个问题
那为什么写大 project 用 scripting language 呢?想给自己找麻烦?
又难开发,又难测试,又难 document,又花的时间长,执行起来又慢。
难道是大老爷们比富,不求最好,只求最贵?还是为了那个口号 yes we can?
r****t
发帖数: 10904
16
来自主题: Programming版 - Scripting language的几个问题
well,可能你讲的大 project 比我讲的要大吧。
开发、测试、document 不见得更难,有可能更简单。就讲 doctest 吧不难啊。
花的时间长,执行起来又慢,这些问题自然是不用我们讲,如果没一点好处自然没人用
了。
就我看到的,everything in pure python 是有这种说法,有这种做法,但是这不只是
yes we can 的问题,这种选择和 deployment 有关,JAVA is a platform, Python
is only a language, 再怎么 battary included 也比不上 JAVA。追求 pure python
的作者很多时候是因为 pure python module/app is much easier to be
distributed/deployed, 因为有 cross-os 的原因。
"yes we can" 也不是什么坏事,python glue 也还没到啥东西拿来就能用的程度。
g*****g
发帖数: 34805
17
来自主题: Programming版 - Scripting language的几个问题
我不是bash python/ruby,最近scripting language 的hype很多,
想了解一下主要好处和一些关键问题怎么解决。
python/ruby的行数比java要短,相对而言java verbose。这个毫无疑问,
但我个人认为想占用了主要时间,而不是写代码本身。我个人不是很相信
特定任务以外,能有5倍的生产率。

python
N********n
发帖数: 8363
18
来自主题: Programming版 - Scripting language的几个问题

是快点,但5倍是吹牛皮而已。PYTHON和JAVA的比较我看过,什么JAVA代码长
之类的。STRONG TYPE的CODE虽然长,但很多是用INTELLISENSE/AUTO COMPLETE
快速生成的,实际工作量根本没有看上去那么大。
Dynamic Language强调不用定义变量,可是不定义变量的话IDE不知道你的TYPE,
那还能Intellisense么?如果不能的话,这样的DL恐怕是COUNTER-PRODUCTIVE
而不是PRODUCTIVE。试想一下定义一个OBJECT里面诸多VARIABLE,METHOD。没
INTELLISENSE/AUTO COMPLETE咋玩,所有名字全凭记忆,开玩笑吗。
r****t
发帖数: 10904
19
来自主题: Programming版 - Scripting language的几个问题
completion 很重要么?我偶尔想不起来了也用用,不是critical的因素吧。这些图还只是VI里面,full IDE该更不是问题。
面向对象的 scripting language 可以有 introspection. 有 interactive shell 你可以 play with and experiment with 小块 code, 这是好用的关键。
http://omploader.org/vNnp5
r****t
发帖数: 10904
20
来自主题: Programming版 - Scripting language的几个问题
object creation/init, attribute manipulation, object destroy, scripting
language 怎么和 java/c++ 比?整个多了一层interpreter嘛。比得是同类的
g**s
发帖数: 4
21
来自主题: Programming版 - Any one knows 'Q Programming Language'?
Q seems be to a powerful functional programming language. I don't have any experience about Q and want to learn
it. Can anyone give me an introduction about Q and recommend some good articles/books for beginners. Thanks!
r*********r
发帖数: 3195
22
来自主题: Programming版 - Any one knows 'Q Programming Language'?
never heard of. what's so special about this language?
if you just want to learn FP, ML and Haskell are more mainstream.
k**f
发帖数: 372
23
来自主题: Programming版 - Any one knows 'Q Programming Language'?

experience about Q and want to learn
articles/books for beginners. Thanks!
Seem no body here except you is interested in this language.
Why not go to its home page http://q-lang.sourceforge.net/ and try to find resources and help there?
Good luck.
b***y
发帖数: 2799
24
☆─────────────────────────────────────☆
somehow (王小石, 一转身便是永恒) 于 (Sat Jul 5 19:38:28 2008) 提到:
☆─────────────────────────────────────☆
friediceman (Bing) 于 (Sat Jul 5 20:21:06 2008) 提到:
何以见得是script language?
☆─────────────────────────────────────☆
somehow (王小石, 一转身便是永恒) 于 (Sat Jul 5 20:59:44 2008) 提到:
regexp, split, join, ....
all high level APIs,
as long as u know English.
GUI is like Java, much easier than MFC.
certainly i don't know .net, web app, that's why i'm saying so.
b***y
发帖数: 2799
25
☆─────────────────────────────────────☆
nkw (非死非活) 于 (Fri Oct 17 18:21:27 2008) 提到:
看到下面这句话,谁能举个例子?
"Working at the higher level of abstraction that dynamic languages provide
allows the programmer to spend much more time building things and much less
time worrying about the details"
☆─────────────────────────────────────☆
diverd (潜水员丁) 于 (Sat Oct 18 03:30:29 2008) 提到:
For example, the programmer does not need to declare variable types, don't
worry about type conversions. Try to write s
k***r
发帖数: 4260
26
来自主题: Programming版 - 在看the effective C++language
嗯。还有些别的language
d********e
发帖数: 132
27
来自主题: Programming版 - 关于scripting language
请问哪种scripting language: shell, Perl 或者Python最适合用于data analysis
相关的工作中?
s*******e
发帖数: 664
28
☆─────────────────────────────────────☆
zlike (最终幻想) 于 (Fri Sep 11 05:30:54 2009, 美东) 提到:
The C++ Programming language, 3rd edition, pp.851那个例子,没搞明白。
网上的errata有这个部分,但是跟我书上是一样的
http://www.research.att.com/~bs/3rd_printing15.html
大致是这样子:
class X
{
public:
int a;
};
class Y1:public X{};
class Y2:protected X {};
class Y3:private X {};
class Z2:public Y2{void f(Y1*, Y2*, Y3*);};
void Z2::f(Y1* py1, Y2* py2, Y3* py3)
{
X* px = py1;
py1->a = 7;
px=this;
a=7;
px=py2;   //这两行
j*****I
发帖数: 2626
29
书上是这么说的,
With languages like C, the basic unit of reuse is the function. The problem
with function-based reuse is that the function is coupled to the data it
manipulates. and if the data is global, a change to benefit one function in
one reuse context damages another function used somewhere else.
哪位能给个例子? C大量使用library,不都是function-based的么?
m****r
发帖数: 51
30
读Bjarne Stroustrup写得The C++ programming language 是不是经常有不知所谓的
感觉。水平该怎么提高呢?
r*********r
发帖数: 3195
31
这本书其实是写给 language designer level 的人看的,
至少要学过点 compiler, os, PL 之类的才知道他想要说什么.
如果你自己设计过一个小编程语言的话, 就更能 appreciate 他为什么
花那么大力气设计这么复杂的一个语言.
d****p
发帖数: 685
32
You are so judgemental.
Language is just a tool, that's right. So complicated or simple, it is up to
who uses it.
e****d
发帖数: 895
33
Doesn't C++ provide a better way to model business logic?
The tradeof of C++'s flexibility is that people need to
spend more time to master it. The downside of C++ is that
it doesn't have as many open source libraries and frameworks
as other languages such as Java.
g*****g
发帖数: 34805
34
C++ will be a much better language if it doesn't try to
be compatible with C alone.
N***m
发帖数: 4460
35
最终scripting language will dominate.
其他像C++,java什么的终将是昨日黄花。
D*******a
发帖数: 3688
36
I've burned by python as someone inadvertently switched the order of
parameters in a function call. took a long time to figure out the bug. this
will not happen in other strongly-typed languages.
var is ok because basically the compiler will resolve the type for you, just
like C#. Sometimes it gives trouble though, especially in LINQ in C#.
N***m
发帖数: 4460
37
C++ is not designed to be a perfect language, neither is jave, python,
they are just practical tools. so just pick up the one that you feel handy.
If you just want to find a job, there is really no need to discuss more
on this.
g*****g
发帖数: 34805
38
I don't want to make this another C++ vs. Java thread,
I am merely saying C++ will be better off if it doesn't try
to make C first class citizen. Strictly requiring it to be
called as external functions wrapped in certain class
will make C++ code much cleaner and consistent in OO sense.
Why do you need things like void*, char*, global function in
C++? #Define is often abused too. And there's no such things
like good C++ coders don't do that. There are always more
bad coders than good coders in e... 阅读全帖
r*********r
发帖数: 3195
39
python, c++, javascript, SQL, R, latex pretty much cover all i use.
they are all standard, free, open.
would never use proprietary languages like java, c#, vb, matlab.
g*****g
发帖数: 34805
40
The C++ tuning includes many special data structure, it can't even be
open-sourced. If I read the paper correctly, between an average C++
developer, and and average Java developer, chance is you'll get faster
code out of Java for this algorithm.

+, Java, Scala and its own programming language Go – and then benchmarked
results to find "factors of difference".
the paper says.
which were done at a level of sophistication that would not be available to
the average programmer".
w***g
发帖数: 5958
41
显然这个"best"定义有问题。

+, Java, Scala and its own programming language Go – and then benchmarked
results to find "factors of difference".
the paper says.
which were done at a level of sophistication that would not be available to
the average programmer".
d****p
发帖数: 685
42
You didn't read the article carefully.
The optimization techniques applied to the C++ implementation are quite well
known to average C++ coders (not to an average Java coder who doesn't know
the diff between hash_map and regular STL map :-)). And it indicates C++
does offer a chance to do such fine-tuning if needed.
Of course at most times we don't do it.
Once again, you don't miss every chance to pump the tires for Java, which is
a good programming language. But be honest please - the code prod... 阅读全帖
a****l
发帖数: 8211
43
this shows google really has nothing better to do than throwing more fuel to
the flame war.

+, Java, Scala and its own programming language Go – and then benchmarked
results to find "factors of difference".
the paper says.
which were done at a level of sophistication that would not be available to
the average programmer".
g*****g
发帖数: 34805
44

't
Since JIT operates at runtime, it can get dynamic information that's not
available in compile time. e.g. JIT can detect a section that's hot and
do some optimization like inlining, or move code out of loop. That's not
saying well tuned C++ code won't be on par or better, but it can easily
outperform untuned C++ code in many cases.
same
This is a big deal. It makes it very easy to communicate between
servers or client/server. It also makes it possible to discover
service/interface in runtime.... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)