“ad hoc”是什么意思?编程中的意思?

发布于 2024-08-12 08:49:47 字数 32 浏览 4 评论 0原文

术语“ad hoc”用于编程中。它到底是什么意思?

The term "ad hoc" is used in programming. What exactly does it mean?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(10

弥繁 2024-08-19 08:49:47

“Ad hoc”是一个拉丁短语,可以应用于任何事物,而不仅仅是专门的编程。

它意味着只是为了处理特定情况而临时编造的东西,而不是解决问题的系统方法。

具体就编程而言,它可能类似于 Joel Spolsky 最近所谓的管道胶带编程。

"Ad hoc" is a Latin phrase that can apply to anything, not just programming specifically.

It means something that was made up on the fly just to deal with a particular situation, as opposed to some systematic approach to solving problems.

Regarding programming specifically, it's probably similar to what Joel Spolsky recently called duct tape programming.

人海汹涌 2024-08-19 08:49:47

它基本上意味着编写一些快速而肮脏的代码而不打算重用。用户输入的查询通常是主要示例。另一个常见的情况是将数据集从一种形式转换为另一种形式的实用程序,转换完成后该实用程序将没有用处。

It basically means writing some quick and dirty code without the intention of reuse. User-entered queries are usually the main example. Another common occurrence is a utility to convert data sets from 1 form to another, which will have no use when the conversion is done.

夏天碎花小短裙 2024-08-19 08:49:47
  1. 为了特定的、非持续性的目的而临时成立,作为除冰特设委员会。

  2. 即兴,未计划,即兴,作为临时尝试用螺丝刀去除冰。

    即兴,未计划,即兴,作为临时尝试用螺丝刀去除

  1. Formed temporarily for a specific, non-continuing purpose, as an ad hoc committee on ice removal.

  2. Impromptu, not planned, improvised, as an ad hoc attempt to remove the ice with a screw-driver.

聽兲甴掵 2024-08-19 08:49:47

一般指即兴/即兴/临时制作,例如临时报告或查询。不是预先决定的/预先计划的

Generally meaning improvised / impromtu / made up on the fly, such as ad-hoc reports or queries. Not pre-determind / pre-meditated

ad hoc 是指针对某个特定原因或以无计划的方式寻求解决方案。我们暂时没有任何计划,但有完成工作的最后期限。临时存在于不同的领域,如编程、测试等。在测试中,如果分配的时间非常少并且必须在最短时间内交付套件,那么我们将执行临时。

在编程中,基本上是开发人员没有按照计划工作,而是从整个代码中一点点地工作。让我描述一下.. 有 2 个开发人员 1 和 2。他们必须完成 3 个模块,比如 A、B、C。如果有计划,那么他们可以决定要处理哪个模块。但在临时情况下,他们可以以无计划的方式处理任何模块。

ad hoc means for one specific cause or approaching a solution in an unplanned way. In ad hoc we don't have any plan but have the deadline to finish the work. Ad hoc exists in different areas like programming, testing etc. In testing if perform ad hoc if the time assigned is very less and have to deliver the kit within that min amount of time then we will go for ad hoc.

In programming, it is basically that the developer is not working according to the plan but he is working bits and pieces from the whole code. Let me describe it.. there are 2 developers 1 and 2. they have to complete 3 module say A, B, C. If there is a plan then they can decide on which module they are going to work on it. but in ad hoc they can approach any of the modules in an unplanned manner.

半世蒼涼 2024-08-19 08:49:47

“ad hoc”(意思是“专门为此”)的对立面可能是“商业现成”(COTS)软件,它是为了解决一般类别的问题而编写的(例如文字处理或簿记)为多个可能的客户提供。

The antithesis of "ad hoc" (which means, "specifically for this") might be "commercial off-the-shelf" (COTS) software, which is written to solve a general category of problem (e.g. word-processing or book-keeping) for several possible customers.

一梦等七年七年为一梦 2024-08-19 08:49:47

在编程和软件应用程序的上下文中特别通常用于表示

某些编码(或更一般地说,某些定义/规范)是在运行时完成的,

而不是预先定义并封装在应用程序中。

临时项目的特点是为了实现特定目的而不是通用或预定义的目的。

示例
人们可以在 SQL 中运行一些临时查询来熟悉数据库内容。 (等效表达式为“即时编写查询”)。这与在程序上下文中编写查询不同,在程序上下文中,要获取的列列表、要应用的过滤器等由应用程序的规范驱动

在非常相似的用法中,最终用户可能会请求运行临时报告的能力(等效表达式/基本概念:“自定义报告功能”),这表明应用程序需要允许最终用户在运行时决定他们希望查看报告的哪些元素(可能按特定顺序等)。

人们还可以[通常]快速“启动”一个小程序来服务于特定目的,例如解析一些输入以加载数据库(可能的等效项:“扔掉代码” )。这种临时程序预计会在特定任务的有限时间内使用一次或几次。相反的方法是编写一个通用的导入实用程序,该实用程序可以在类似但不同的上下文中重用(并且随着时间的推移可以使用/重用)。

In the context of programming and software applications, ad hoc is typically used to signify that

some coding (or more generically, some definition/specification) is done at run-time,

rather than pre-defined and encaspsulated in the application.

Ad hoc items have the characteristic of being done to serve a particular purpose rather than a generic or pre-defined one.

Examples
One may run some ad-hoc queries in SQL to familarize oneself with the the database content. (Equvalent expression would be "writing queries on the fly"). This differs from one's writing queries in the context of a program whereby the list of columns to get, the filters to apply etc. are driven by the application's specifications.

In a very similar usage, and end-user may request the ability to run ad-hoc reports (equivalent expression/underlying concept: "a custom report feature"), which indicates the need for the application to allow end users to decide, at run time, which elements of the report they wish to see (possibly in which specific order etc.).

One may also [typically] quickly "whip-up" a small program for to serve a particular purpose, such as say to parse some input for loading a database (Possible equivalent: "Throw-away code"). Such ad-hoc programs are expected to be used once or a few times, and in the limited timeframe which surrounds the a particular task. The opposite would be to write a generic import utility which may be reused in similar but different contexts (and be use/reused over time).

流云如水 2024-08-19 08:49:47

为特定目的而编程,通常没有任何计划。一个例子是宏或旨在执行单个任务而不执行其他任务的东西。

Programming for a specific purpose, usually without any planning. An example would be a macro or something which is designed to do a single task and nothing else.

云巢 2024-08-19 08:49:47

我听说它在报告中使用,我认为它的意思是让用户选择要放入报告中的列、分组和聚合函数,

I've heard it used in reporting, where I take it to mean letting the user choose what columns, grouping, and aggregate functions to put into a report,

月野兔 2024-08-19 08:49:47

我的同义词是 ad hoc = 案例研究

my synonym is ad hoc = case study

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文