由买买提看人间百态

topics

全部话题 - 话题: semicolons
1 (共1页)
e**c
发帖数: 195
1
来自主题: JobHunting版 - amazon电面大家是怎么读代码的
马上要amazon电面了,听说要电话里朗读自己写的代码,感觉很奇怪。大家是怎么读的
?比如
for (i=0;i 真的读成
for Parentheses i equal to 0 semicolon i less than n semicolon i plus plus
parentheses
吗?
另外有些字符我刚刚知道怎么读,例如&在wiki上是ampersand。这是美国人都理解的读
法吗?类似的字符还很多。
困惑呀!!!
m*****n
发帖数: 7450
2
来自主题: LeisureTime版 - 他猜中了开头
其实想一下,你文里写了不少官僚主义作风; 这分号的用法和主题结合起来一看,还是
挺有意思的: 正像这篇slate文里说的一样,“the semicolon is the enemy of
action; it is the agent of reflection and meditation."
http://www.slate.com/articles/arts/culturebox/2008/06/_.html
; (
Has modern life killed the semicolon?
k**g
发帖数: 1558
3
用了dynamic sql,还是出错。在with前加 了semicolon第二个error没有了,但是还是
有incorrect syntax near 'u:'
DECLARE @sql nvarchar(500)
SET @sql = 'BULK INSERT MSCIDAILY FROM u:\DAILY_'+(CONVERT(VARCHAR(8) ,
GETDATE(),112)+'.csv')+' WITH (FIRSTROW = 2,FIELDTERMINATOR = '';'',
ROWTERMINATOR = ''\n'')'
EXEC(@sql)
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near 'u:'.
Msg 319, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'with'. If this statement is a common
table expression or an xmlnamespaces clause,... 阅读全帖
k**********g
发帖数: 989
4

I promised to write a three-line version; here it is.
(300 lines of commented code including main function; 46 essential
semicolons for Fibonacci implementation)
https://gist.github.com/kinchungwong/7700777
(34 lines of commented code including main function; 3 essential semicolons
for Fibonacci implementation)
https://gist.github.com/kinchungwong/7701952
Summary.
not ( equals '(Number of lines) '(Job done) )
y*****l
发帖数: 5997
5
来自主题: _pennystock版 - 推荐炒股软件Amibroker (转载)
你出80伪币可以买全套。
软件自带的pick只有几十个大盘股,网上现有的股票列表很多代码都失效了。我自己做
的列表包括美国三大股市的6735个股票,可用附带的软件自动下载,然后自动加入系统。
AFL语言很简单,学过C吧,自己看手册自学成才吧。
AmiBroker Formula Language (AFL)
AFL is a special programming language used to define and create custom
indicators, scans, explorations, back-tests and guru commentaries.
Language structure
Each formula in AFL contains of one or more expression statements. Each
statement MUST be terminated by semicolon (;). In this way you are able to
break long expressions into several physi... 阅读全帖
i********e
发帖数: 546
6
来自主题: Faculty版 - 科技英语小贴士
However
‘However’ is a transition that can be used to express a contrast. It helps
a writer to convey a second point that is in sharp contrast to the first po
int he made in the previous sentence. Normally, however is placed at the sta
rt of a sentence but it can also be placed in the middle or even at the end
of a sentence to convey the same impression.
There are many alternatives to however that can be used in its place and loo
k less formal. These transitions are in spite of this, despite, ye... 阅读全帖
q****x
发帖数: 7404
7
来自主题: JobHunting版 - ASCII字符发音总结
听说变态的Amazon要人念code,总结了一个。
这里面叹号和圆括号单词音节有点长,也有点绕口。我个人倾向用bang和round
bracket。但bang似乎不常见。
! exclamation mark, bang
" double quote
# pound, sharp
$ dollar
% percent
& ampersand, reference
' single quote
( left/opening parenthesis/round bracket
) right/closing
[ left/opening bracket/square bracket
] right/closing
{ left/opening brace/curly bracket
} right/closing
< less
> greater
* star
+ plus
, comma
- dash, minus
. dot
/ slash
\ back... 阅读全帖
G******i
发帖数: 5226
8
来自主题: JobHunting版 - [合集] ASCII字符发音总结
☆─────────────────────────────────────☆
quantx (X矿工) 于 (Wed Nov 9 17:30:25 2011, 美东) 提到:
听说变态的Amazon要人念code,总结了一个。
这里面叹号和圆括号单词音节有点长,也有点绕口。我个人倾向用bang和round
bracket。但bang似乎不常见。
! exclamation mark, bang
" double quote
# pound, sharp
$ dollar
% percent
& ampersand, reference
' single quote
( left/opening parenthesis/round bracket
) right/closing
[ left/opening bracket/square bracket
] right/closing
{ left/opening brace/curly bracket
} right/closing
< ... 阅读全帖
l***i
发帖数: 1309
9
来自主题: JobHunting版 - 这师道,面世就是做题阿
上班整天除了python就是javascript,然后看了两天王垠的blog对functional
language有点high,结果今天面世写C++,被人又是没写semicolon,又是int i的int没
写。
白纸coding比白板coding BT一百倍阿,深刻教训
b***m
发帖数: 5987
10
来自主题: JobHunting版 - 老程序员的日常 (ZZ) (转载)
【 以下文字转载自 Joke 讨论区 】
发信人: platinumegg (蛋,纯铂金的), 信区: Joke
标 题: 老程序员的日常 (ZZ)
发信站: BBS 未名空间站 (Thu Apr 11 12:05:31 2013, 美东)
When the project manager enters the office
When I'm deploying code to production
When I try to fix a bug at 3 in the morning
When my regex returned exactly what I expected
When a friend of mine asks me to fix his website built with Joomla
When I'm told that the module on which I have worked all the week will never
be used
When the code that I have not tested on dev works perf... 阅读全帖
w****r
发帖数: 15252
11
还有semicolon
n*****3
发帖数: 1584
12
use scala
no semicolon needed ~)
h*****d
发帖数: 34
13
@ at?
% percentage
^ caret
& ampersand
! excalmatory makr
~ tilde
` ?
; semicolon
/ slash
|
[ bracket
{ brace
l***c
发帖数: 1634
14
这是你的错, 少说了一个semicolon;
还好后果不大。 如果命令导致死机,你又得找个新GG了
n***d
发帖数: 8857
15
来自主题: SanFrancisco版 - 老程序员的日常 (ZZ) (转载)
【 以下文字转载自 Joke 讨论区 】
发信人: platinumegg (蛋,纯铂金的), 信区: Joke
标 题: 老程序员的日常 (ZZ)
发信站: BBS 未名空间站 (Thu Apr 11 12:05:31 2013, 美东)
When the project manager enters the office
When I'm deploying code to production
When I try to fix a bug at 3 in the morning
When my regex returned exactly what I expected
When a friend of mine asks me to fix his website built with Joomla
When I'm told that the module on which I have worked all the week will never
be used
When the code that I have not tested on dev works perf... 阅读全帖
y**s
发帖数: 2751
16
来自主题: Pingpong版 - 老程序员的日常 (ZZ) (转载)
【 以下文字转载自 Joke 讨论区 】
发信人: platinumegg (蛋,纯铂金的), 信区: Joke
标 题: 老程序员的日常 (ZZ)
发信站: BBS 未名空间站 (Thu Apr 11 12:05:31 2013, 美东)
When the project manager enters the office
When I'm deploying code to production
When I try to fix a bug at 3 in the morning
When my regex returned exactly what I expected
When a friend of mine asks me to fix his website built with Joomla
When I'm told that the module on which I have worked all the week will never
be used
When the code that I have not tested on dev works perf... 阅读全帖
s*****g
发帖数: 5159
17
来自主题: PhotoGear版 - matlab画图问题
They easiest way is
image_read('bengalcat.jpg');
So let's say you cannot take any input data, or say your parameter could not
go more than 100 bytes.
A line should not include any toolbox function.
A line should not output anything on terminal
A line may contain at most one semicolon
begin, end, and other blocking structures are considered as a line
comments are not lines, which mean, removing them will not cause problem (
they are not data).
You cannot draw that using ascii arts.
c*****t
发帖数: 1879
18
~ tilde, swing dash
| vertical pipe? No one around me seem to know.
the rest can be found in
http://www.m-w.com/mw/table/punctuat.htm
PUNCTUATION MARKS
. period (or full stop)
, comma
; semicolon
' apostrophe
quotation marks single (or chiefly British inverted commas)
quotation marks double (or chiefly British inverted commas)
guillemets
? question mark (or interrogation point)
? question marks, Spanish
! exclamation point
! exclamation points, Spanish
interrobang
/ slash (or diagonal or slant
p*********g
发帖数: 9527
19
来自主题: Joke版 - 老程序员的日常 (ZZ)
When the project manager enters the office
When I'm deploying code to production
When I try to fix a bug at 3 in the morning
When my regex returned exactly what I expected
When a friend of mine asks me to fix his website built with Joomla
When I'm told that the module on which I have worked all the week will never
be used
When the code that I have not tested on dev works perfectly in production
When the sales people announce they have sold our product to the customer
When I apply a new CSS for t... 阅读全帖
r***n
发帖数: 553
20
我也是这样
倒不是记不住,是记住也没用
比如有些语言,结尾无论如何一定要有个semicolon
有些就可有可无
尼玛,记住这些东西,有什么意义啊?
完全浪费了几个神经元的储存空间
H********g
发帖数: 43926
21
看到的毛病有:
1 滥用the 很多the都是多余的 比如摘要里sem前面那个 the疑似多余 xrd前面那
个the 肯定多余
2 滥用 分号 有时候一边用分号一边用and 不知道并列的单元有多长 谁跟谁并列
是不是跟那条毛蛇一样
摘要里 ; and 那里 用了分号就不该用and了。
http://theoatmeal.com/comics/semicolon
3 用词不当 比如摘要第一句 this study is to present... 应该是this study is
to investigate.. 或者this article is to present 此外正文里还有spherically
shape这样的简单错误
申请各种东西的时候可能多数时候人家只数paper或者只看看标题 但是有时候会看不
懂标题 来看看摘要 所以摘要一定要干净
d*****9
发帖数: 3459
22
来自主题: Literature版 - It is the east, and Juliet is the sun!
Strategies for Understanding Shakespeare's Language
1.
When reading verse, note the appropriate phrasing and intonation.
DO NOT PAUSE AT THE END OF A LINE unless there is a mark of
punctuation. Shakespearean verse has a rhythm of its own, and once a reader
gets used to it, the rhythm becomes very natural to speak in and read.
Beginning readers often find it helpful to read a short pause at a comma and
a long pause for a period, colon, semicolon, dash, or question mark.
Here'
or
发帖数: 720
23
来自主题: Reader版 - "Eats, Shoots & Leaves"
has anyone heard this book? maybe a fun read. the name sounds like eating a
tree..oh..in case you take the v. as n.
it's said to be comical and about written english, about punctuation
specifically..
"the zero tolerance approach to punctuation" that's the left or the right half
title.
hopefully it can repair my insensitivity toward semicolons.
c*******t
发帖数: 144
24
来自主题: Reader版 - "Eats, Shoots & Leaves"
Just finished it. Very funny... and educational... though lady Lynne *was* a
little hard on us poor illiterates.
But now at least I've discovered the irresistable grace & beauty of my C
programs... which are so full of semicolons. ;)

a
half
n****e
发帖数: 107
25
There is a bookmarklet that you can add to your iPad that will enable
airplay on HTML5 videos. I've tried it and it works. Here are the steps to
add this to your iPad.
1. Bookmark this page on your iPad and call it anything you want (i.e.
Airplay).
2. Copy this text all of the text below, starting with javascript and ending
with the semicolon
javascript:d=document,e=d.createElement('script');e.src='http://bendodson.com/bookmarklets/ios-airplay.js?'+(new%20Date()*1);void(d.body.appendChild(e));
3... 阅读全帖
c******o
发帖数: 20
26
来自主题: CS版 - counting lines of code
Anybody can give me some advice on what is a good way to count the lines of
code (LOC) in a C/C++ program? Is it good enough to count the number of
semicolons?
Thanks!
j******t
发帖数: 11
27
来自主题: Database版 - pull-down menu in Access forms
finally figured it out by myself. answer my own question here in case that
somebody else may find it helpful:
1. under form design view, highlight the box which we want it to be a
pull-down menu, right click to prompt the window and choose "Change
To"-->"Combo Box".
2. in the same window, click "Properties" at the bottom. on "Data" page,
choose "Value List" for "Row Source Type", and type in all the values in "Row
Source", using quotation mark and semicolon to seperate each of them.

now
a******8
发帖数: 46
28
来自主题: Database版 - SQL query 一问
I have three tables,
Student(sID, name)
Course(cID, title)
Registration(sID, cID)
I'd like to get result-set with 2 columns.
name | Course title list separated by semicolon(;)
How to implement in SQL or stored procedure?
k**g
发帖数: 1558
29
我每天要bulk upload一个csv的文件,这个csv的 文件名有每天的日期,我用了下面的
语句,但是 出错,大家帮我一下吧?谢谢!
DECLARE @FileName VARCHAR(100)
SET @FileName='c:\DAILY_'+( CONVERT(VARCHAR(8),GETDATE(),112)+'.csv')
BULK INSERT DAILY
FROM @FileDate
WITH
(
FIRSTROW = 2,
FIELDTERMINATOR = ';',
ROWTERMINATOR = '\n'
)
Go
错误信息是:
Incorrect syntax near '@FileName'.
Msg 319, Level 15, State 1, Line 8
Incorrect syntax near the keyword 'with'. If this statement is a common
table expression or an xmlnamespaces clause, the previous statement must be
te... 阅读全帖
y****w
发帖数: 3747
30
ncorrect syntax near the keyword 'with'. If this statement is a common
table expression or an xmlnamespaces clause, the previous statement must be
terminated with a semicolon.
---错误信息很清楚啊。
sql server里面如果你要用CTE的话,with前面必须有分号。
所以有些人的风格就是
;with xx
........
N********n
发帖数: 8363
31
来自主题: DotNet版 - How to create this Asp.net Textbox
Say I use a textbox to collect several names separated by semicolons,
and then verify the input against an address book. Correct names will
have their font set to black underlined. Wrong ones will have their
font color turned to red.
Any Ajax.Net or jQuery hacks out there to simulate it? Have not done
this kinda front end stuff for a while.
l****3
发帖数: 8
32
来自主题: Java版 - what's wrong with this little jsp?
looks like the contentType in page directive is missing a double quote at
end, and semicolon in contentType should be removed too.
r*********r
发帖数: 3195
33
来自主题: Programming版 - What is wrong in this array declaration.
r u sure? i don't see anything wrong with the code,
other than there shouldn't be a semicolon after main, but it's no biggie.
r***u
发帖数: 56
34
Semicolon will do the trick:
a1;a2;a3;
X****r
发帖数: 3557
35
来自主题: Programming版 - 这个程序怎么解决
Semicolon by itself is a statement. for(...); is the same as
for(...) {
}
It looks like you're attempting to copy someone else's
homework with minor modifications to make it look different
without understanding what it does at all.
e****d
发帖数: 895
36
来自主题: Programming版 - 是编译器还是什么问题?
Agree. Using a single statement in this case is horrible especially
later a new block statement has been appended to it without remembering
to remove the semicolon.
t****t
发帖数: 6806
37
来自主题: Programming版 - [c++] 关于构造函数的一个小问题
oh, if you want to provide an empty function, don't write a semicolon in it.
it's neither good nor legal.
f*******n
发帖数: 12623
38
来自主题: Programming版 - forward declaration
There is no problem here. The exact code you showed compiles fine (except for the missing semicolon after class B). Your problem must be somewhere else.
p*********g
发帖数: 9527
39
来自主题: Programming版 - 老程序员的日常 (转载)
【 以下文字转载自 Joke 讨论区 】
发信人: platinumegg (蛋,纯铂金的), 信区: Joke
标 题: 老程序员的日常
发信站: BBS 未名空间站 (Thu Apr 11 12:05:31 2013, 美东)
When the project manager enters the office
When I'm deploying code to production
When I try to fix a bug at 3 in the morning
When my regex returned exactly what I expected
When a friend of mine asks me to fix his website built with Joomla
When I'm told that the module on which I have worked all the week will never
be used
When the code that I have not tested on dev works perfectly... 阅读全帖
p*****2
发帖数: 21240
40
看到这个我就笑了,这个feature不是属于JS中的bad part吗?
G**Y
发帖数: 33224
41
我也不理解GO为啥这么纠结这些无聊的细节,
1. 分号,括号,加上提高可读性,挺好。
有时候传统比优化更重要。
p*****2
发帖数: 21240
42

这就是21世纪的编程语言?
var i int
var Θ float32
var explicitly, typed, pointers *complex128
int_pointer := &i
another_int_pointer := new(int)
generic_channel := make(chan interface{})
p*****2
发帖数: 21240
43

One of the variables declared at the start of this section uses θ (theta)
as a variable name. Go permits identifiers to start with any symbols that
Unicode classes as letters.
WTF?
p*****2
发帖数: 21240
44
The variable int_pointer is initialized using the address-of operator (&).
This should be familiar to C programmers: it returns the address in memory
of an object.
为什么21世纪的语言还需要指针呢?我以为C/C++以后都不需要了呢。
p*****2
发帖数: 21240
45
看来Go确实是要干Java和C++的
Java has never been able to fully replace C++ for systems programming at
places such as Google, in part because performance can not be tuned to the
same extend due to the lack of ability to control memory layout and usage (
cache misses affect performance significantly). Go has aimed to replace C++
in many areas and thus needs to support pointers.
d*******r
发帖数: 3299
46
怎么感觉Go还是没流行开来呢

+
p*****2
发帖数: 21240
47
大牛研究过吗
想学习一下 但是实在学不下去
d*******r
发帖数: 3299
48
我其实也不懂...
x***4
发帖数: 1815
49
来自主题: Programming版 - scala for comprehension 不支持 let
少了semicolon。改成:
for (
x<-List(1,2,3);
b=3)
yield x+b
1 (共1页)