首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏WebJ2EE

    【Hooks】:Declarative & Imperative

    Declarative vs Imperative 2. Declarative vs Imperative Programming 3. Declarative vs Imperative This article strives to make this distinction of declarative vs imperative 参考: Declarative vs Imperative: https://medium.com/@myung.kim287/declarative-vs-imperative-251ce99c6c44 Declarative vs Imperative Programming: https://codeburst.io/declarative-vs-imperative-programming-a8a7c93d9ad2 Imperative vs Declarative Programming: https://ui.dev/imperative-vs-declarative-programming/ React

    85910发布于 2021-02-26
  • 来自专栏TopFE

    Argo CD 实践教程 01

    test-imperative 在该命名空间中创建一个部署,如下所示: kubectl create deployment nginx-imperative --image=nginx -n test-imperative 然后,你可以使用以下命令查看创建的部署: kubectl get deployment -n test-imperative nginx-imperative 要更新我们创建的任何资源,我们可以使用特定的命令 如果你想给命名空间添加一个标签,你可以运用以下命令: kubectl label namespace test-imperative namespace=imperative-apps 最后,你可以用以下命令删除之前创建的对象 : bectl delete deployment -n test-imperative nginx-imperative kubectl delete namespace test-imperative 以下文件也可以在https://github.com/PacktPublishing/ArgoCD-in-Practice/tree/main/ch01/imperative-config中找到。

    61220编辑于 2023-08-24
  • 来自专栏NLP/KG

    paddle DeBug 三步定位PARL飞桨报错原因,快速解决程序问题

    ::PreparedOp::Run(paddle::imperative::NameVarBaseMap const&, paddle::imperative::NameVarBaseMap const &, paddle::framework::AttributeMap const&) 4 paddle::imperative::Tracer::TraceOp(std::string const& , paddle::imperative::NameVarBaseMap const&, paddle::imperative::NameVarBaseMap const&, paddle::framework ::AttributeMap, paddle::platform::Place const&, bool) 5 paddle::imperative::Tracer::TraceOp(std::string const&, paddle::imperative::NameVarBaseMap const&, paddle::imperative::NameVarBaseMap const&, paddle

    1.2K20编辑于 2022-12-01
  • 来自专栏腾讯IMWeb前端团队

    前端开发,从草根到英雄(下)

    强化原型 作用域 闭包 事件循环 事件通知 请求、调用和绑定 回调和承诺 变量及函数挂起 Currying Imperative vs. Declarative JavaScript和DOM如何交互,有两种方法:imperative和declarative,一方面,declarative程序专注于what,另一方面,imperative程序专注于 how 上面是一个imperative程序的列子,我们手动查询出一个元素,并且将UI状态存储在里面,换句话说,该程序核心在于如何(how)完成某件事情。 Imperative 这篇指南首先告诉你imperative方法,然后才是Angular和React库的declarative方法,我建议按照这样的顺序学习,可以让你更清楚的了解到declarative 最流行的DOM操作库是jQuery,记住,jQuery是一个imperative库,它是在前端系统还没有今天这么复杂的时候开发的。

    1.3K10编辑于 2022-06-29
  • 来自专栏全栈程序员必看

    MXNet gpu 版本快速安装(mxnet-cu101)

    nd.ones(shape=(2,3),dtype='int32',ctx=mx.gpu(0)) [16:43:31] c:\jenkins\workspace\mxnet-tag\mxnet\src\imperative /imperative_utils.h:91: GPU support is disabled. :\Users\space\AppData\Roaming\Python\Python36\site-packages\mxnet\_ctypes\ndarray.py", line 92, in _imperative_invoke (_LIB.MXGetLastError())) mxnet.base.MXNetError: [16:43:31] C:\Jenkins\workspace\mxnet-tag\mxnet\src\imperative \imperative.cc:81: Operator _ones is not implemented for GPU. ​

    3.7K20编辑于 2022-11-18
  • 来自专栏云原生工具箱

    AWS CDK | IaC 何必只用 Yaml

    Imperative IaC vs. Declarative IaC Imperative 和 Declarative 也就是命令式和声明式的 IaC,他们的不同点在于命令式的 IaC 是由代码编写者来确定如何达到自己想要目的的,如:我需要一个创建 这种方式融合了 Imperative 和 Declarative 的优点是一个非常不错的选择。 原理 AWS CDK 将 Imperative 和 Declarative 进行了结合,通过编程语言生成 CloudFormation 的 template,之后再由 CloudFormation 生成对应的

    2.5K20发布于 2021-02-01
  • 来自专栏小李的前端小屋

    如何解决前端常见的竞态问题

    我们以 awesome-imperative-promise[2] 为例,来看看 cancel 的实现,它的 cancel 实现基于指令式 promise,源码一共只有 40 行。 通过它的用法能更好地理解何为指令式 promise: import { createImperativePromise } from 'awesome-imperative-promise'; const 参考资料 [1]cancelable promises proposal: https://github.com/tc39/proposal-cancelable-promises [2]awesome-imperative-promise : https://github.com/slorber/awesome-imperative-promise [3]这篇知乎提问: https://www.zhihu.com/question/386595851

    2.4K10编辑于 2022-12-16
  • 来自专栏有文化的技术人

    跟着Kubernetes学设计—声明式or命令式

    有的人说,越接近现实的表达就叫越“声明式”(declarative),越接近计算机的执行过程就叫越“命令式”(imperative),这个比较形象。 声明式(declarative)是结果导向的,命令式(imperative)是过程导向的。它们都有自己适用的场景和局限,其实在我们的日常使用的编程语言中,或多或少都有两者的身影。

    28030编辑于 2023-09-20
  • 来自专栏debugeeker的专栏

    CISSP考试指南笔记:7.4 安全资源配置

    At the heart of provisioning is the imperative to provide these services in a secure manner.

    47050发布于 2021-03-23
  • 来自专栏WebJ2EE

    【Hooks】:setInterval 与 React Hooks

    The Impedance Mismatch Our “impedance mismatch” is between the React programming model and the imperative 总结 Hooks take some getting used to — and especially at the boundary of imperative and declarative code

    1.4K20发布于 2021-02-26
  • 来自专栏IT大咖说

    经过重重筛选,我们为什么要选择kotlin ?

    ProgrammingParadigm 目前的编程风格主要有三种,一种是Imperative,典型的代表是C语言,是直接告诉程序如何运行。 另外一种是Functional Programming(FP)函数式编程,它和Imperative 的不同点在于,更注重程序间的逻辑关系。 一般来说越偏向于Object-orientend(OOP)或者Imperative,就代表相对更容易学习,这是因为这两种模式更类似于人类的正常思维,而Functional(FP)则更像是数学家的思考方式

    1.3K30发布于 2018-10-23
  • 来自专栏CVer

    这个开源深度学习框架项目参与指北来了!内含易上手任务清单

    在此新分支上修改 API 文档字符串内容: $ git checkout -b docstring-arange 找到 megengine.functional.arangeAPI 对应的源码位置 imperative 查看 Git 状态,添加修改过的文件,使用 commit 记录修改历史: $ git add imperative/python/megengine/functional/tensor.py $

    70010编辑于 2021-12-13
  • 来自专栏AI科技大本营的专栏

    MXNet 0.11发布,加入动态图接口Gluon,还有两位CMU教授的亲笔教程

    接口更简单,且支持动态图(Imperative)编程。相比TF,Caffe2等静态图(Symbolic)框架更加灵活易用。 速度更快 深度学习框架大体分为两类:以TensorFlow,caffe2为代表的静态图(Symbolic)框架和以Chainer,Pytorch为代表的动态图(Imperative)框架。

    85570发布于 2018-04-26
  • 来自专栏信息技术智库

    《Python 快速入门》一千个程序员有一千套编码规范

    % (imperative, expletive) x = '{}, {}!'. format(imperative, expletive) x = 'name: %s; score: %d' % (name, n) x = 'name: {}; score: { x = '%s%s' % (a, b) # use + in this case x = '{}{}'.format(a, b) # use + in this case x = imperative

    79110编辑于 2022-09-19
  • 来自专栏Rust语言学习交流

    【Rust日报】2020-05-24 Rash, Rocket, Mun, Casbin

    避免冗长不方便管理的Shell脚本 类似Ansible这样的编程风格 Declarative vs imperativeImperative: entrypoint.sh: #!

    74320发布于 2020-05-29
  • 来自专栏机器之心

    业界 | MXNet 0.11发布,加入动态图接口Gluon(附CMU教授亲笔教程)

    接口更简单,且支持动态图(Imperative)编程。相比 TF,Caffe2 等静态图(Symbolic)框架更加灵活易用。 速度更快 深度学习框架大体分为两类:以 TensorFlow,caffe2 为代表的静态图(Symbolic)框架和以 Chainer,Pytorch 为代表的动态图(Imperative)框架。

    68370发布于 2018-05-08
  • 来自专栏四火的唠叨

    编程范型详解

    Aspect-oriented Automata-based Concurrent computing Relativistic programming Data-driven Declarative (contrast: Imperative Service-oriented Time-driven Expression-oriented Feature-oriented Function-level (contrast: Value-level) Generic Imperative 命令式(Imperative)和声明式(Declarative)编程 几乎所有计算机的执行都是命令式的,这也是更接近编译-执行思维的方式,写出来的代码会编译成相应的机器执行语句。

    65320编辑于 2022-07-19
  • 来自专栏python全栈教程专栏

    C++:统计字符串内大小写字母,数字空格,逗号等

    川川好久没发文了,最近实在太忙,要是感兴趣可以直接跟我私聊, QQ:2835809579 原题: 用赋初值的方法把字符串 “ C is a general purpose, procedural, imperative

    1.3K30发布于 2021-10-18
  • 来自专栏灰灰的数学与机械世界

    考研英语作文模版分享(一)

    to the effect that the issue of(主题词)has, in a sense, becomes a social concern and to understand its imperative

    42410编辑于 2022-11-23
  • 来自专栏WindCoder

    Declarative Programming: Is It A Real Thing?

    While this paradigm is a remarkable improvement over the imperative approach that it replaced, I contend Before RDBs, most database systems were accessed through imperative code, which is heavily dependent Now, instead of thousands of lines of imperative code, you had a clearly defined data scheme, plus hundreds to create code that can be used for different purposes; something that’s notoriously hard when using imperative But how is this truly different from purely imperative code?

    1.1K10发布于 2018-09-19
领券