什么是“整体”意思? [英] What does "monolithic" mean?

查看:223
本文介绍了什么是“整体”意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在类的上下文中看到它。我怀疑这意味着类可以使用被分解成逻辑子单元,但我找不到一个好的定义。



编辑:我喜欢智能回复,但是你可以给出一些例子。



我显然是指在软件上下文中的单片。我知道巨石,巨石,dolmens和所有的石头相关的上下文。 Gee,我在我的国家有足够的...

解决方案

有趣的问题。我不认为有什么一个整体类的任何形式的定义,但你有这个想法。包含多个逻辑上无关联或无意义耦合的组件的类是一个整体类。



如果你读过 The Pragmatic Programmer ,我强烈推荐,你可以定义一个单片类作为反模式,几乎违反了那本书的一切。



,你会发现更多的芯片和操作系统设计领域,其中有单片芯片的正式定义/ 内核,类似于一个整体类。下面是一些例子,虽然每个人都可以反对在这个列表上:


  1. JOGL - OpenGL的Java绑定。

  2. b b b b p>如果你单独开始编程,而不是加入一个团队,那么你可以打开你的第一个项目,并且会有一个整体的类。


    I've seen it in the context of classes. I suspect it means that the class could use being broken down into logical subunits, but I can't find a good definition. Could you give some examples?

    Thanks for the help.

    Edit: I love the smart replies, but I'm obviously referring to "monolithic" within a software context. I know about monoliths, megaliths, dolmens, and all the stone-related contexts. Gee, I have enough of them in my country...

    解决方案

    Interesting question. I don't think there are any formal definitions of what a monolithic class is, but you've got the idea. A class that contains multiple components that are logically unconnected, or pointlessly coupled, is a monolithic class.

    If you've read The Pragmatic Programmer, which I strongly recommend, you can define a monolithic class as an anti-pattern that goes against almost everything from that book.

    As for examples, you'll find more in the realm of chip and OS design, where there are formal definitions of monolithic chips/kernels, which are similar to a monolithic class. Here are some examples, although each of them can be argued against being on this list:

    1. JOGL - Java bindings for OpenGL. This could be arguable, and with good reason.
    2. Most academic projects - For obvious reasons.

    If you started programming alone, rather than joining a team, then chances are you can open one of your first projects, and there will be a class that is monolithic.

    这篇关于什么是“整体”意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆