月亮词典
首页
查询
Refactored
v.重构:在不改变软件外部行为的前提下
常用释义
词性释义
v.重构:在不改变软件外部行为的前提下,改进软件内部结构的过程。
例句
全部
The
means
of
deciding
whether
code
should be
refactored
is
often
subjective
.
决定
代码
是否
需要
重
构
的
方法
,
通常
是
主观
的
。
In
the
sample
application
,
you
took an
unwieldy
stylesheet
and
refactored
it
into
a
much
smaller
and
more
maintainable
piece
of
code
.
在
示例
应用程序
中
,
您
获取
了
一个
笨拙
的
样式表
并
将
其
重
构
为
一段
更
小
更易
于
维护
的
代码
。
Lists
the
steps
to
set
deployment properties for a
refactored
database
project
, build the
project
, and then
deploy
the
project
.
列出
为重
构
的
数据库
项目
设置
部署
属性
、
生成
项目
、
然后
部署
该
项目
的
步骤
。
The
invocation
handler
could
also
be
refactored
to
handle
other
operations
across
multiple
method
invocations
on
different
object
types
.
还
可以
重
构
调用
处理
程序
,
让
它
处理
其他
横跨
不同
对象
类型
的
方法
调用
的
操作
。
To
resolve
the
problem
,
I
refactored
my
connector
so that
it
would no
longer
rely
on
a
BrowseService
object
stored
in
an
instance
variable
.
为了
解决
这个
问题
,
我
重
构
了
连接器
,
使
其
不再
依赖
存储
在
实例
变量
中
的
BrowseService
对象
。
As
assets
evolve
and
become
reusable
they
can
be
refactored
out
into
their
own
repository
for you
to
manage
them
better
.
随着
资产
演进
、
变得
可
重用
,
可以
重
构
、
把
它们
放到
它们
自己
的
仓库
中
,
以便
更好
地
管理
。
To
a client
of
a
refactored
method
,
there is
no
perceivable
difference
.
对于
重
构
方法
的
客户机
来说
,
看
不
到
区别
。
If
you
want
to
remove
the
parameter
i
,
because
it
's
unneeded
,
you
could
start
by
removing
references
to
it
in
the
method
being
refactored
.
如果
您
打算
删除
不再
需要
的
参数
i
,
那么
可以
先
从
要
进行
重
构
的
方法
中
删除
对
它
的
引用
。
For more
about
using
aspects
and
a
refactored
Library Observer
pattern
to
track the
use
of
a
service
.
获得
有关
使用
方面
和
已
重
构
的
LibraryObserver
模式
来
跟踪服务
使用
状况
的
详细
信息
。
Then
,
the
system
can
be
safely
repaired
and
refactored
throughout
its
useful
life
.
这样
,
系统
即可
在
其
有用
的
生命
周期
中
安全地
进行
修复
和
重
构
。
In
fact
,
the
original
code
was
refactored
into
three
methods
,
but
for
purposes
of
this article
,
I
in
-
lined
it
to
reduce
the
amount
of
space
.
事实上
,
原来
的
代码
被
重
构
为
三个
方法
,
但是
在
本文
的
讨论
中
,
我
把
它
排
在
一行
以
减少
所
占用
的
空间
。
But
when
each
statement
includes
too
many
choices
and
too
much
code
,
it
could
be
an
indication
of
code
that
needs
to
refactored
.
但
当
一个
语句
包含
太
多
的
选择
和
代码
时
,
它
就可能
暗示
有
需要
重
构
的
代码
。
The
new
method
is
created
with the
selected
block
of
code
in it
refactored
to
properly
use
the
argument
and
return
values of the
new
method
.
当
重
构
了
新
方法
内
的
所
选
代码
块
以便
恰当
使用
新
方法
的
参数
和
返回
类型
后
,
新
方法
就
创建
完成
了
。
Periodically
,
however
,
components
should
be reengineered
and
refactored
.
不过
,
应该
定期
对
组件
进行
再
工程
和
重
构
。
DRY -
Tight
integration between
the
routing
engine
and
URL
generation
allows
URLs
to
refactored
easily
and
safely
.
DRY
(
别
重复
自己
)
——Routing
引擎
和
URL
生成
的
紧密
绑定
允许
URL
进行
轻松
和
安全
的
重
构
;
When
you
select
a
code
statement
node
,
the
corresponding
reference
appears
refactored
and
highlighted
in
the
Preview
code
changes
text
box
.
选择
代码
语句
节点
时
,
对应
的
引用
显示
为重
构
后
的
状态
并
突出显示
在
“
预览
代码
更改
”
文本
框中
。
Code
can
,
and
often
should
,
be
rewritten
and
refactored
again
and again,
but
systems
only
work
if they
agree
on
the
data
.
代码
可以
,
经常
也
应该
,
被
一次
又
一次
的
重写
,
重
构
,
但是
只有
合适
的
数据
才能
使
系统
运转
。
The
Change
Request
records
in
ClearQuest
and
Jazz
tools
might need to be
refactored
.
ClearQuest
和
Jazz
工具
中
的
变更
请求
记录
可能
需要
重
构
。
They
typically
capture
refactored
solution
descriptions
,
showing
how
to
change
the
antipattern
into a
healthier
solution
.
它们
通常
捕获
重
构
解决方案
描述
,
说明
如何
更改
反模式
,
以
得到
更为
稳定
的
解决方案
。
In
general
,
classes
are
refactored
to
move
data
or
function
members
to the
highest
common
point
in the
hierarchy
to
avoid
code
duplication
.
一般而言
,
对
类
进行
重
构
时
,
需要
将
数据
或
函数
成员
移
到
继承
层次
的
最高
公共
点
以
避免
代码
重复
。
By
modifying
the bindings
,
you
can
generally
even
keep
the
same
XML
representation
as your
data
classes
are
refactored
.
通过
修改
绑定
,
甚至
通常
能
在
重
构
数据
类
的
情况
下
保持
相同
的
XML
表示
形式
。
In
addition
,
the
services
are
refactored
inappropriately
,
and
not
exposed
in
a
connectionless
(
stateless
)
manner
.
另
一种
情况
就是
,
服务
没有
以
合适
的
方式
重
构
,
并且
没有
以
无
连接
的
(
无
状态
的
)
方式
公开
。
The
vertical
slice
can
then
be
refactored
until
the
final
system
requirements
are
met
.
然后
,
可以
重
构
垂直
切片
,
直到
满足
最终
系统
需求
为止
。
The
code
was
refactored
several
times
with
extensibility
in
mind
.
就
所
期望
的
可扩展性
对
代码
进行
多次
重
构
。
This
portion
can
be
refactored
into
an InteractionUse
.
这个
部分
就
可以
被
重
构
到
InteractionUse
中
。
In
refactored
code
however
,
it
is
expressed in much cleaner
,
more
structured
manner
.
但
重
构
后
的
代码
会
显得
条理
更
清晰
,
结构
更
合理
。
It
's
also
pretty
short
,
but
it
should
be
refactored
.
尽管
它
相当
短
,
但是
仍然
应该
重
构
。
xml was
refactored
so that we can
replace
different
parts
of
the
cluster
without
affecting
the
other
elements
.
在
server.xml
中
集群
元素
已经
被
重
构
,
这样
我们
可以
替换
集群
的
不同
部分
而
不会
影响
其他
元素
。
Refactored
solution
:
Antipatterns
are
useful
to the
extent
that they
can
help
us
extricate
ourselves
from
traps
,
or
avoid
them
entirely
.
重
构
的
解决方案
:
反模式
有用
的
范围
是
:
可以
帮助
我们
从
陷阱
中
解脱出来
,
或者
完全
避免
这些
陷阱
。
So
we
refactored
the
component
description
language
to
allow
us
to
express
the
following
.
因此
,
我们
对
组件
描述
语言
进行
重
构
,
以
支持
如下
的
表示
形式
。
更新时间:2025-05-02 13:21