由买买提看人间百态

topics

全部话题 - 话题: idiom
首页 上页 1 2 3 4 5 6 7 (共7页)
J*********8
发帖数: 4876
1
☆─────────────────────────────────────☆
wh (wh) 于 (Tue Dec 30 20:00:31 2008) 提到:
知道复旦大学外文系教授、《新英汉词典》的主编葛传槼的人可能不多,知道他的学生
、《英汉大词典》的主编陆谷孙的人可能多一点。他俩的英语都地道得看不出一点外国
人的痕迹。说葛传槼最牛,那是《King's English》字典主编H.W. Fowler在1933年说
的,当时陆谷孙尚未出生。葛传槼给Fowler写信,挑出他字典里的几十处错误,Fowler
回信称赞:
… your letter is in faultless English, and, long as it is, nowhere betrays,
as nearly all foreigners’ letters do by some trifling lapse in idiom, that
its writer is not an Englishman. I receive many letters in English from
foreigner
f*****p
发帖数: 235
2
◇◇新语丝(www.xys.org)(xys.dxiong.com)(xys.3322.org)(xys.dyndns.info)◇◇
关于一起全书抄袭事件
作者:Raymond
方舟子:
这件事情的主角名叫宛延凯,我找不到他的CV,也不知道他是否是清华/北
大的教授,但是他写了不少书,都成为(国内)比较经典的教材。
他在2002年4月通过清华大学出版社出版了一本书,叫做C++高级程序设计
http://www.cnforyou.com/query/bookdetail.asp?viBookCode=5991
我当时买了这本书,第一反应就是和addison wesley出版的,由James O.
Coplien写的Advanced C++ Styles and Idioms一模一样。
http://www.awprofessional.com/titles/0-201-54855-0/#
您看一下两本书的目录就知道了,几乎非专业人士都可以看出。内容我看过,
完全一样,就是翻译的。我当时和aw联系,他们对我说他们没有授权给清华翻译,
更不用说宛延凯把自己列为唯一作者。他们当时答应
s***q
发帖数: 10585
3
一些中文片,口齿不清,要么夹杂方言,要么有一些谁都看不懂的idiom,还真得开字幕
c**i
发帖数: 6973
4
A likely price range for tablet, see
Martin Peers, A Hard-to-Swallow Tablet From Apple. Wall Street Journal (WSJ)
, Dec. 30, 2009.
http://online.wsj.com/article/SB10001424052748703510304574626213985068436.html
My comment:
(a) The "tablet" in the WSJ title is a pun. A tablet can also be a pill, as
medicine that is hard to swallow (due to its bitter taste).
(b) The last sentence has an idiom "putting the apple cart before the horse"
which means wrong order as a horse should be placed BEFORE a cart
c**i
发帖数: 6973
5
来自主题: Hardware版 - Jen-Hsun Huang
In the original posting, I wrote the following.
It turned out to be a golf idiom.
(a) shank (transitive verb): "to hit (a golf ball or shot) with the extreme
heel of the club so that the ball goes off in an unintended direction" www.
m-w.com
I disregarded it because the web dictionary only lists transitive verb but "
shank into the woods" obviously is an intransitive verb.
(b) If one googles with the term "shanked into the woods," he will find
numerous items. Yesterday I could not find any, bec
c**i
发帖数: 6973
6
来自主题: Hardware版 - Samsung
(1) Samsung and its attractions | Asia’s New Model Company: Samsung’s
recent success has been extraordinary. But its strategy will be hard to copy
. Economist, Oct 1, 2011.
http://www.economist.com/node/21530984
Quote:
"It is easy to see why China might like the chaebol model. South Korea’s
industrial titans first prospered in part thanks to their close ties with an
authoritarian government (though Samsung was not loved by all the generals)
. Banks were pressured to pump cheap credit into the... 阅读全帖
g*****g
发帖数: 34805
7
来自主题: Java版 - REST
The idiom is using PUT for add, Delete for delete, post for update,
get for read. PUT and DELETE are in the html headers, I think they
exist since early versions of HTML.
c******n
发帖数: 4965
8
I hate this stupid idiom of
if (log.isDebugEnabled()) {
log.debug()
}
just wrap all log.debug() with AspectJ and the code will be automatically re
-written
d**********x
发帖数: 4083
9
来自主题: Java版 - 求推荐Java学习材料 (转载)
effective java对于其他语言的程序员来说,是用来了解java的idiom的
至于设计模式,和<>比起来,这本书讲了什么设计模式?就开头那个
singleton和factory?
x****d
发帖数: 1766
10
来自主题: Java版 - functional programming for java
How about design patterns, it said FP makes design patterns obsolete.
Because DP is just coding idioms to patch flawed oo language's missing
features.
l*********s
发帖数: 5409
11
来自主题: Java版 - 关于singleton
double check is very rudimentary idiom for multi-threading programming.
c******n
发帖数: 4965
12
来自主题: Linux版 - python question
it is possible to do it that way, but it's cumbersome
consider that you have 10 vars to be accessed through closure,
you would have to create 10 useless member vars, and have to access
them through self., adding much more typing.
scripting like python and perl, a very important thing is "idiom",
stuff like this has been done before, and people have found the best
way to do it, it's best to follow.
I have found from stackOverflow that the best way here is to wrap the
closure content like the foll... 阅读全帖
c******n
发帖数: 4965
13
来自主题: Linux版 - python question
我比较喜欢这样搞,
因为你可以把前面的wrapper 3 line 单独放到一块儿,
然后写足够的comment, 这样读code 的人可以很快意识到
produce_BB() => new BB()
or your can even name it newBB(), as is often done in java, that way
people can realize what it means, without trying to figure out how it works.
but of course for people familiar with the idiom, they can know immediately.
it's not that complicated, when people see
anonymous class and closure in java, they still take a little while to
get used to it, but quickly it feels very natural to use it t... 阅读全帖
s*******e
发帖数: 28
14
来自主题: Programming版 - 几个问题
Or you can use objects(smart pointers) instead of explicit dynamical
allocations(new/delete) to manage resource. Whenever exceptions are thrown,
those local smart pointers will be destroyed by calling destructors
automatically. This idiom is so called Resource Acquisition is
Initialization(RAII). See effective C++ Item 13.
w***g
发帖数: 5958
15
我知道placement new可以从给定的内存中创建对象,但是replacement new会重新初始
化对象。不知道c++中有没有什么idiom可以从buffer直接创建对象。或许强制类型转化
可以work,但是心里老觉得不舒服。我的目的是通过mmap来存取对象,从而达到最高的
I/O速度。这也是没办法,数据太多以至于I/O成了bottleneck。我知道post++有这个功
能,但是post++已经好几年都没有更新了。boost支持serialization,但是查了一下
forum发现性能并不是最好。如果有高人知道别的可以通过mmap来实现object
persistency的软件也请告知。
w***g
发帖数: 5958
16
来自主题: Programming版 - 请教c++数组初始化
我需要产生一系列同分布的哈希函数,想存在一个数组里。哈希函数的构造函数接受一
机函数生成器的引用用于产生随机数。这样顺序产生的哈希函数可以各不相同但属
于同

问题是new只能调用无参构造函数; vector允许调用无参或拷贝构造函数。拷贝构造函
数不
行因为产生的对象是完全一样的,而不是独立同分布的。
我目前的做法是定义一个无参构造函数,不干任何事情,再定义一个init方法做真正的
化。vector分配后用一个循环初始化每个元素。但我觉得这种做法不好,因为一开
始生
对象其实并没有真正初始化,如果忘了调用init就会出错。另外同时存在构造
函数和ini
非常混乱。
另一种方法是分配一个指针数组,然后挨个new。用完了挨个delete。感觉比较原始,
得判
断0指针什么的,也很不爽。
重载拷贝构造函数最简单,但是这样就没法保持“拷贝”的语义,也会引起混乱。
不知道有没有什么好的idiom或者现成的library可以用。
B********e
发帖数: 1062
17
来自主题: Programming版 - is smart_ptr really that good?
The Tech Lead sucks.
Check Exceptional C++ Item 37.
I will use smart pointers when:
1) pimpl idiom
2) exception safe requirement is very high.
3) some global last for ever objects
Other than that, I don't like using them.

of
intensity
pointer
h***i
发帖数: 1970
18
来自主题: Programming版 - C++ 的 exception handling
深表赞同,这种模式之所以叫idiom,不叫pattern,就是由于一些语言不支持
deterministic destructor
s******n
发帖数: 21
19
来自主题: Programming版 - 也问个STL的问题, 谢谢
Erase-Remove Idioms
c**********e
发帖数: 2007
20
来自主题: Programming版 - Which is next book after "Effective C++"?
1. More Effective C++: 35 New Ways to Improve Your Programs and Designs
2. Stroustup and/or Coplien's "Advanced C++ Programming Styles and Idioms"
3. Murray's "C++ Strategies and Tactics"
After reading "Effective C++", I plan to read "More Effective C++".
But from Amazon, a reviewer is against "More Effective C++". Is 2 or
3 a better reading? Any other suggestions? Thanks a lot
t****t
发帖数: 6806
21
来自主题: Programming版 - class impl
usually pimpl idiom is to hide the implementation details and break the
compile-time dependency.
but i guess you already know that.
s****m
发帖数: 160
22
来自主题: Programming版 - C++ vector 一边遍历一边删
这是C++ STL的一个idiom, 但是实在是counter-intuitive,
只能死记。
p***o
发帖数: 1252
23
来自主题: Programming版 - Effective C++ 这破书!
You don't get the point. He first showed you a typical textbook solution,
which is difficult to get exception safe (and most textbook writers don't
understand what is exception safe), and then showed you the copy-and-swap
idiom, which is simple and exception safe.
A**u
发帖数: 2458
24
来自主题: Programming版 - 请教c++ non-vitura interface
在看c++ effective,
有点不明白 NVI(non virtual interface idiom)
书上的例子
class B{
public:
~B();
void run(){do();}
private:
virtual void do() const = 0;
}
class D:public B{
private:
vitural void do(){....}
}
我有些问题
D 不能 访问 B的 private 成员, 所以 D 必须重新定义 private 中的 do 函数,
而且 private的成员, 也不会发生动态绑定,那为什么还需要 virtual呢
void do(){} 在 B 中, void do(){....} 在B中不也一样吗
p**o
发帖数: 3409
j*******e
发帖数: 674
26
来自主题: Programming版 - 紧急求助—寻C++ tutor
不是高手, 我的顺序是:
C++ programming language
Effective C++
The C++ Standard Library
Effective STL
Beyond the standard library -- An introduction to Boost
100 C++ idioms 没这本书,但可以google
临阵抱佛脚应对面试
C++ faq lite
d**********x
发帖数: 4083
27
stl一旦了解了其中的idiom,还是很好读的
当然m$那一堆命名规则是想要做什么我完全不懂
哦,我意识到这里跑题了,stl主要的技术是GP,而不是OO。

糟的
r****y
发帖数: 26819
28
http://www.javaworld.com/javaworld/jw-01-2013/130107-developer-
age=1
Here is our guide to some of the more dominant tech generations in computer
history, as embodied by the programmers who gave them life. The list is far
from complete, but if you've been coding for any amount of time, you will pr
obably recognize many of these generational traits in yourself, your coworke
rs, and the programming community at large.
Punch-card programmers
The '60s-era computers received their instructions from a... 阅读全帖
B***i
发帖数: 724
29
来自主题: Programming版 - 读scala的程序就象读文言文
谢谢。 这个解法很好。 不过好像find () 是找满足条件第一个的? 如果要找第二个
的呢?
而且正符合我的看法。 scala 写起来短小精悍, 那是使用了预先定义好了很多idiom.
比如这里的sliding.
n******t
发帖数: 4406
30
来自主题: Programming版 - 读scala的程序就象读文言文
这也叫短小精干啊。。

idiom.
j******t
发帖数: 788
31
No, I guess we are not talking about the same thing.
RAII is all about the allocation/deallocation of resource. It is just one of
usages of smart pointer, which actually was shared_pointer when RAII
mechanism was born. But that is not the reason people invented smart
pointer, I guess you are confused with the two idioms, smart pointer is much
much more than either shared_pointer or autopointer. Let's just forget
about these two dead words. Do not assume they are the same as smart pointer
.

,
k**********g
发帖数: 989
32

Basically it is doing what auto_ptr, unique_ptr and shared_ptr is doing
today.
However, the Handle-Body Idiom has a long history. Each software framework
implement it their own way, and combine it with framework-specific features
not found on the STL / C++11 smart pointers.
The user can only manipulate handles, and the handle doesn't directly own
the resource. Instead, the handle owns a reference-counted object (
implemented with an atomic variable) which then owns the actual resource.
When the... 阅读全帖
a*********a
发帖数: 3656
33
来自主题: Programming版 - 问个c++问题
then use: std::is_copy_assignable::value
http://www.cplusplus.com/reference/type_traits/
plus, hopefully, the copy assignment is done with the copy-swap idiom. :)
d****n
发帖数: 1637
34
我不知到啥书。
你能烁烁你的领域是啥不?
以前用python干的project, 用c#再干一边。尽量用.net的idiom
干着干着,你就知道哪里有书,论坛,还能长姿势
c******o
发帖数: 1277
35
来自主题: Programming版 - FP in Scala掉下来了吧
仔细看看不是五星的评论和回复,我觉得你做啥都想找速成,那还是直接用JS吧,直到
不能用为止:
======================================
==============
Terrible introductory book! If you already know functional programming *very
* well then this book is a good Scala introduction. If you don't know
functional programming or Scala, then this book is useless.
The author assumes that a tiny amount of explanation is sufficient to
achieve full mastery by the reader. Unless you understand every paragraph
110% the next paragraph (and chapter) are meanin... 阅读全帖
t**r
发帖数: 3428
36
No design patterns are necessary. In any language.
I tend to come across a lot of code written by people who read up on design
patterns and than think they should use them all over the place and the
result is the actual code gets buried under tons of interfaces, wrappers and
layers and pretty hard to read. That's a wrong approach to design patterns.
Design patterns exist so that you have a repertoire of useful idioms handy
when you come across a problem. But you should never apply any pattern
be... 阅读全帖
r******t
发帖数: 250
37
来自主题: Programming版 - go的抽象能力确实比较差
你用 gorountine 没用过 channel?用 channel 没听说过 select?
go blog 上常见的 gorountine idioms 讲得明明白白 一开始学就该看的
k**********g
发帖数: 989
38
来自主题: Programming版 - c++11有了shared_ptr,可以当java用了
用 opencv eigen gandalf 的表示理解并同情
严重同意 matrix class 必须自带 handle body idiom
验证码: MIPS SSE2 NEON 没图没真相
w**z
发帖数: 8232
39
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.htm
Java is now almost 4.5% ahead of the rest of the pack. We have to go back to
2008 to see such a big difference between Java and the number 2 of the
TIOBE index. Java version 8 is clearly a success. This is mainly thanks to
the functional programming idiom that has been added to this latest version.
Java went in decline when Oracle bought Sun Microsystems (and thus Java) in
2010. Several Java gurus left the company, being afraid that... 阅读全帖
r*******n
发帖数: 3020
40
来自主题: Programming版 - 设计一种c++语言的新特性
PIMPL idiom 是干这个的
b*******n
发帖数: 1267
41
来自主题: AnthroLing版 - 还是向大家请教单词学习的问题。
虽然我看了很多英语语言学的书(包括认知语言学,metaphor ,比喻等),但是对于
单词学习还是不太清楚。希望有语言学方面的专家给予指导或者推荐书。谢谢。使我能
系统掌握 单词学习方法。 特别是idiom, 动词, 介词, 形容词。
下面这个网站对于单词学习很好 。
http://www.vocabula.com/
还有个文章.
李赋宁谈怎样学英语
[ 2006-11-17 16:16:00 | By: Leeown ]
谈谈怎样学英语这个问题。我认为首先我们应该明确我们学习英语的目的是为了加
速实现我国的社会主义现代化,并且为了极大地提高我国的科学和文化水平,对人类做
出更大的贡献。其次一个问题是如何引起和提高对于学习外语的兴趣呢?我觉得可以先
学一些外语的格言、谚语、歌谣、谜语和游戏.以便使外语学习更加生动活泼,避免枯
燥乏味。例如,我们学一句英语格言:The proof of the pudding is in theeating(
要检验布丁必须去吃它)。毛主席在《实践论》里也说过要知道梨子的滋味必须亲自去
尝尝。我们学习外语也应该重视实践,必须经常地、大量地练习听、说、读、

发帖数: 1
42
The international language Ido - a general description
It would be very useful if we could talk with people in other countries, or
correspond with them, as we can with people in our own country. However, the
language barrier often makes this difficult if not impossible.
The answer to this problem given by many people is: let them (that is,
everyone else) learn English! Certainly English is the most widely spoken
language in the world, but it requires a lot of time and some skill to learn
it at a... 阅读全帖
b*******n
发帖数: 8420
43
来自主题: Biology版 - 此文有歧视中国人的感觉吗?
楼上扯淡
谁敢在文章里用含有nigger的idiom?
人必自侮,然后人侮之
l**********1
发帖数: 5204
44
来自主题: Biology版 - Brain Activity Map吵起来了
Re: PubMad (床前阳光灿烂)
用第三条中腿 那里的视觉器官看到的?
>The book presents the first comprehensive molecular theory of the living
from PDFfile we can only see below:
>
Part II applies these principles, laws and concepts to formulate a
comprehensive molecular theory of life which I have at various times
referred to as biognergetics (Ji 1985), biocybernetics (Ji 1991),
microsemiotics (Ji 2002a), molecular information theory (Ji 2004a), and
renormalizable network theory of life (Section 2.4), depending on th... 阅读全帖
b**********n
发帖数: 141
45
I think every argument is not flawless since I am practicing LSAT now and
couldn't help thinking that way. However, communication is a two-way process
and may need to consider recipient(s)' feelings. Just throwing harsh criticism
only stirs a fightback almost immediately, just like when I draft response
to office actions, one associate tries to teach me to reply with a gentler
tone and treat examiners with respect. Those are my thoughts about the
arguments for little North's English.
And I also ... 阅读全帖
D******e
发帖数: 1085
46
These people's classmates are at the PD level or vice chairs. What a pity. What a big difference 20 yrs can make.
As the old Chinese idiom goes,
Sad in vain as an old man as the youth was wasted.
H****y
发帖数: 156
47
Additionally, I want to update you with email from the professor. I am still
make the final decision.
The part of email is shown below:
As I said yesterday, I think you have great potential to achieve the level
of expertise in American English to which you aspire. To summarize our
discussion, we would work on both speech (articulation of sounds, intonation
, stress) and language (vocabulary, American idioms, scientific terms) that
you need in your work as a scientist. We could also work on any... 阅读全帖
g****i
发帖数: 2269
48
you can hire someone else for vocabulary, idioms. don't waste your money on
these. You can find much cheaper tutors for all these.
Pay your money for speech therapy/accent reduction

still
intonation
that
首页 上页 1 2 3 4 5 6 7 (共7页)