由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - ask Big Niu industrial code 都是怎麼寫的
相关主题
推荐一本书: The Well-Grounded Java Developer大家做automated test都是用哪个工具?用telerik test studio的 (转载)
ThreadLocal可以这样用吗?spring 和hibernate 掰了吗?
Windows XP与Multithreading Programmingjava 里面对应googletest的是什么?junit?
Pthread support on Windows XP有人用过J2Obc吗?
请教c++ multithreading入门问题个人创业项目如何启动?
有啥关于testing的书推荐一下吧现在比较主流的Java的Agile开发环境是怎么样的?
在java里面无法创建7M个Long type的LinkedList? (转载)问一个Chutzpah codecoverage 的问题
when I run junit test, how can I log the java log to a file?求大牛指点:Class JavaLaunchHelper is implemented in both (转载)
相关话题的讨论汇总
话题: java话题: qa话题: niu话题: big话题: test
进入Programming版参与讨论
1 (共1页)
h**********c
发帖数: 4120
1
I have no chinese input. The online one is for tranditional.
The question, e.g. Java, arrayIndexOutofbound or nullpointer exceptions,
how are they handled?
The developers deal with them, or the QA guys,or both.
g*****g
发帖数: 34805
2
Test driven approach should help. High unit test coverage reveals
most of such problems before QA find them. And devs still need to
fix them no matter where they are being found.

【在 h**********c 的大作中提到】
: I have no chinese input. The online one is for tranditional.
: The question, e.g. Java, arrayIndexOutofbound or nullpointer exceptions,
: how are they handled?
: The developers deal with them, or the QA guys,or both.

h**********c
发帖数: 4120
3
I once tried to do something with JUnit.Still not that auto-mated.
Is there something can do bulk tests of many classes?
Some tools to debug multithreading ?

【在 g*****g 的大作中提到】
: Test driven approach should help. High unit test coverage reveals
: most of such problems before QA find them. And devs still need to
: fix them no matter where they are being found.

g*****g
发帖数: 34805
4
You can run all JUnit testcases as part of build. You can use
Maven to manage your build and Jerkins to do continous integration.
It's certainly automatic. For multithreading debuging, simple logging
and mock classes may be more effective IMHO.

【在 h**********c 的大作中提到】
: I once tried to do something with JUnit.Still not that auto-mated.
: Is there something can do bulk tests of many classes?
: Some tools to debug multithreading ?

h**********c
发帖数: 4120
5
These things are useful quite placebo.
Fundamental I believe is still design.
Let's talk about pass by ref in Java. You encapsulate something in a class.
This class should take care of this member variable. Ok, they just pass by
ref, get the ref, modify change them even new a new one in another class and
set it back.
Cross call function. lets say a.fun1() call b.fun2(), .... finally z.fun26()
call a.fun1(). They dont' even know what is called dependency graph.In fact
, they know, they just don't bother one second to think about it.In this
aspect, I don't think even unit test will help.
Another horrible thing is handle. handle may cause the cyclic call just
mentioned.

【在 g*****g 的大作中提到】
: You can run all JUnit testcases as part of build. You can use
: Maven to manage your build and Jerkins to do continous integration.
: It's certainly automatic. For multithreading debuging, simple logging
: and mock classes may be more effective IMHO.

g*****g
发帖数: 34805
6
Unit test is not necessarily within a class. You can pick granuity wherever
you like. And it doesn't matter if a function ends up calling itself. It's
like a blackbox, you mock the interface,you set some input, you expect some
output. You can even use JMock to verify every exact step if you like.

.
and
()
fact

【在 h**********c 的大作中提到】
: These things are useful quite placebo.
: Fundamental I believe is still design.
: Let's talk about pass by ref in Java. You encapsulate something in a class.
: This class should take care of this member variable. Ok, they just pass by
: ref, get the ref, modify change them even new a new one in another class and
: set it back.
: Cross call function. lets say a.fun1() call b.fun2(), .... finally z.fun26()
: call a.fun1(). They dont' even know what is called dependency graph.In fact
: , they know, they just don't bother one second to think about it.In this
: aspect, I don't think even unit test will help.

h**********c
发帖数: 4120
7
A funct ca'aslf ain't good.
May infinite'lpoo, de facto, bad practice in sw eng.
Do you think MySQL is industrially robust?
I would prefer to read't guando open la'ource.

wherever
some

【在 g*****g 的大作中提到】
: Unit test is not necessarily within a class. You can pick granuity wherever
: you like. And it doesn't matter if a function ends up calling itself. It's
: like a blackbox, you mock the interface,you set some input, you expect some
: output. You can even use JMock to verify every exact step if you like.
:
: .
: and
: ()
: fact

g*****g
发帖数: 34805
8
I don't care if a function calls itself. That's not what unit test
is about. And that's not where bugs are coming from.

【在 h**********c 的大作中提到】
: A funct ca'aslf ain't good.
: May infinite'lpoo, de facto, bad practice in sw eng.
: Do you think MySQL is industrially robust?
: I would prefer to read't guando open la'ource.
:
: wherever
: some

h**********c
发帖数: 4120
9
That is what I ask?
How to detect stack overflow, index out of bound, null pointer exception etc?
The old c/cpp problem still viable.

【在 g*****g 的大作中提到】
: I don't care if a function calls itself. That's not what unit test
: is about. And that's not where bugs are coming from.

t****t
发帖数: 6806
10
我很好奇你是哪里人, 为什么我看你写的中文英文都很吃力?

【在 h**********c 的大作中提到】
: A funct ca'aslf ain't good.
: May infinite'lpoo, de facto, bad practice in sw eng.
: Do you think MySQL is industrially robust?
: I would prefer to read't guando open la'ource.
:
: wherever
: some

相关主题
有啥关于testing的书推荐一下吧大家做automated test都是用哪个工具?用telerik test studio的 (转载)
在java里面无法创建7M个Long type的LinkedList? (转载)spring 和hibernate 掰了吗?
when I run junit test, how can I log the java log to a file?java 里面对应googletest的是什么?junit?
进入Programming版参与讨论
h**********c
发帖数: 4120
11
Sorry for your in-convenience.
Your question is difficult to answer. It is totally non-technical. OK?

【在 t****t 的大作中提到】
: 我很好奇你是哪里人, 为什么我看你写的中文英文都很吃力?
t****t
发帖数: 6806
12
不方便回答当然就算了, 我说了我是好奇. 就算techinical的问题, 也不一定要回答的.

【在 h**********c 的大作中提到】
: Sorry for your in-convenience.
: Your question is difficult to answer. It is totally non-technical. OK?

C***y
发帖数: 2546
13
一般人都写da niu 或者big cow
big niu的写法比较独特

的.

【在 t****t 的大作中提到】
: 不方便回答当然就算了, 我说了我是好奇. 就算techinical的问题, 也不一定要回答的.
t****t
发帖数: 6806
14
倒不是这个, 他最后那句read't 啥啥的我愣是没看懂, 照理我这么老的网虫不该有这
种事, 我想难道他是墨墨? 同作者了一下, 发现第二篇我就看得不是很明白, 而且以前
就没看明白, 比如说"我也比较直率一点表白,应该从哪里gogo." 这个我倒是能猜到意
思, 但是这语法很怪啊, 好象是老外说的中文, 或者是机器翻译的结果...
http://www.mitbbs.com/article_t/Programming/31203303.html

【在 C***y 的大作中提到】
: 一般人都写da niu 或者big cow
: big niu的写法比较独特
:
: 的.

b***i
发帖数: 3043
15
I don't think he is chinese.
he just google translated to traditional chinese and pasted the question
here.

【在 t****t 的大作中提到】
: 倒不是这个, 他最后那句read't 啥啥的我愣是没看懂, 照理我这么老的网虫不该有这
: 种事, 我想难道他是墨墨? 同作者了一下, 发现第二篇我就看得不是很明白, 而且以前
: 就没看明白, 比如说"我也比较直率一点表白,应该从哪里gogo." 这个我倒是能猜到意
: 思, 但是这语法很怪啊, 好象是老外说的中文, 或者是机器翻译的结果...
: http://www.mitbbs.com/article_t/Programming/31203303.html

1 (共1页)
进入Programming版参与讨论
相关主题
求大牛指点:Class JavaLaunchHelper is implemented in both (转载)请教c++ multithreading入门问题
王垠:我和 Google 的故事(2015 修订版) (转载)有啥关于testing的书推荐一下吧
大家看过来Re: C++ Guys!!!!在java里面无法创建7M个Long type的LinkedList? (转载)
multi threading 还是 multi processingwhen I run junit test, how can I log the java log to a file?
推荐一本书: The Well-Grounded Java Developer大家做automated test都是用哪个工具?用telerik test studio的 (转载)
ThreadLocal可以这样用吗?spring 和hibernate 掰了吗?
Windows XP与Multithreading Programmingjava 里面对应googletest的是什么?junit?
Pthread support on Windows XP有人用过J2Obc吗?
相关话题的讨论汇总
话题: java话题: qa话题: niu话题: big话题: test