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

    Go语言中常见100问题-#68 Forgetting about possible side-effects with ...

    格式化字符串是开发人员常用到的操作,无论是返回错误信息还是在记录日志信息时。但是在编写并发应用程序时,很容易忘记字符串格式化潜在的副作用。本节将举两个示例进行说明,一个来自etcd库中格式化字符串产生的数据竞争,另一个是格式化字符串导致的死锁问题。

    42220编辑于 2022-08-15
  • 来自专栏不想当开发的产品不是好测试

    - Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side

    Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.

    1.2K60发布于 2018-01-24
  • 来自专栏马超的博客

    FOREACH语句与CALL{}子查询

    节点 {id: item}) MERGE (n)-[:连接]->(m) RETURN n.id, count(*); 三、使用CALL{} 关于CALL聚合子查询:Aggregation and side-effects ORDER BY size DESC LIMIT 100 References [1] TOC: FOREACH语句与CALL{}子查询 [2] 关于CALL聚合子查询:Aggregation and side-effects

    46710编辑于 2022-09-02
  • 来自专栏杰的记事本

    Vue template中包含script标签的写法

    Avoid placing tags with side-effects in your templates, such as such as <script>, as they will not be

    7.8K20发布于 2019-09-04
  • 来自专栏裸机思维

    【编译器玄学研究报告】第六期——无副作用的副作用

    我来举几个典型的例子: void infinite_loop(void) { while (1); // this line is considered to have no side-effects ……怎么说呢,虽然在 Arm Compiler 6 中的确不那么容易复现无限循环消失的问题,但在文档中也赫然写着: armclang considers infinite loops with no side-effects " void infinite_loop(void) { while (1) { __NOP(); // this line is considered to have side-effects infinite_loop(void) { while (1) { asm volatile("nop"); // this line is considered to have side-effects

    1.2K10编辑于 2022-07-30
  • 来自专栏xiaoxi666的专栏

    Callable和Supplier的区别

    Another way of phrasing the distinction is that a Callable may have side-effects (e.g. writing to a file

    1.3K20发布于 2019-07-24
  • 来自专栏图解系列

    我理解的幂等

    我更赞同这种定义:幂等指的是相同请求(identical request)执行一次或者多次所带来的副作用(side-effects)是一样的。 In other words, an idempotent method should not have any side-effects (except for keeping statistics)

    31210编辑于 2024-01-25
  • 来自专栏用户8352137的专栏

    设计人与AI协作系统时的九个潜在陷阱(CS)

    roles of humans and AI in co-creative interactions, with an eye on related assumptions and potential side-effects

    53440发布于 2021-04-06
  • 来自专栏iOSDevLog

    IB Designables: Failed to render and update auto layout status forhttps://github.com/CocoaPods/Cocoa

    FRAMEWORK_SEARCH_PATHS)' } The comments from @adc-amatosov here #5334 (comment) makes me wonder if this has some side-effects

    1K30发布于 2018-07-25
  • 来自专栏全栈程序员必看

    RFC2616-HTTP1.1-Methods(方法规定部分—单词注释版)

    Naturally, it is not possible to ensure that the server does not generate side-effects as a result of The important distinction(区别;荣誉;特质;卓越) here is that the user did not request the side-effects, so therefore have the property of “idempotence” in that (aside from error or expiration issues(问题,发表,宣布,分配)) the side-effects

    45930编辑于 2022-07-21
  • 来自专栏zaking's

    RFC2616-HTTP1.1-Methods(方法规定部分—单词注释版)

    Naturally, it is not possible to ensure that the server does not generate side-effects as a result of The important distinction(区别;荣誉;特质;卓越) here is that the user did not request the side-effects, so therefore have the property of "idempotence" in that (aside from error or expiration issues(问题,发表,宣布,分配)) the side-effects

    61750发布于 2018-07-04
  • 来自专栏前端工程

    React源码学习进阶(六)completeWork究竟做了什么

    returnFiber.lastEffect = workInProgress.lastEffect; } // If this fiber had side-effects We can perform certain side-effects earlier if needed, // by doing multiple passes over the effect wasHydrated) { // If we hydrated, then we'll need to schedule an update for // the commit side-effects

    75120编辑于 2022-12-19
  • 来自专栏前端逗逗飞

    帮你精通JS: 学习函数式编程

    return "Hi, I'm " + name; ... } greet("Gaowei"); "Hi, I'm Gaowei" 复制代码 二、 用纯函数 pure-function,避免 副作用 side-effects

    98740发布于 2021-04-30
  • 来自专栏RTSP/RTMP直播相关

    C++11特性之std:call_once介绍

    calls on the same flag: this means that all concurrent calls to call_once are guaranteed to observe any side-effects

    2.7K30编辑于 2022-05-12
  • 来自专栏WebJ2EE

    【Hooks】:[组]Declarative & Imperative

    The implementation for state and side-effects were within these class components - tied to the mutating React hooks are a re-conception and re-implemenation of state and side-effects in React - an implementation Side-effects are now declaratively aligned with state, instead of with the component's mutation.

    85710发布于 2021-02-26
  • 来自专栏iRF射频前端产业观察

    HEMTs:Air-bridge to improve field-plate performance

    However, such structures can add parasitic side-effects such as increased capacitance between the terminals

    65220编辑于 2022-05-16
  • 来自专栏codelang

    聊聊类组件到函数组件的变迁

    那这就要引入 Side-effects(附带效应) 概念了。 react.docschina.org/docs/hooks-effect.html [2] Compose 中的附带效应: https://developer.android.com/jetpack/compose/side-effects

    4K20编辑于 2022-11-30
  • 来自专栏前端食堂

    探索 React 内核:深入 Fiber 架构和协调算法

    Side-effects 副作用 我们可以将 React 中的组件视为使用 state 和 props 来计算 UI如何呈现的函数。 除此之外的所有活动,例如,改变DOM 或调用生命周期方法,都应被视为 Side-effects ,或者简单地视为一种 effect。 在 文档[14]里也有提及。 我们统一把这些操作称为 “Side-effects”,或者简称为 “effect”。(因为它们会影响其他组件,并且在渲染期间无法完成。) ” 你可以看到大多数 state 和 props 的更新将如何导致 side-effects 。 而且,由于执行 effect 是一种 work,fiber 节点是一种跟踪更新效果的便捷机制。 迭代线性链表比树快得多,不需要花时间在没有 side-effects 的节点上。 该链表的目的是,标记具有 DOM 更新或与其他 effect 关联的的节点。

    2.8K20发布于 2020-07-17
  • 来自专栏WebJ2EE

    【Fiber】:[译]深入解析React的新协调算法

    副作用(Side-effects) 3.5. 作用列表(Effects list) 3.6. Fiber树的根节点(Root of the fiber tree) 3.7. 副作用(Side-effects) 我们可以认为 React 中的组件是使用 state 和 props 计算UI展示的方法。 curious about the reason for thisWell, we’ve just learned that because the render phase doesn’t produce side-effects Developers tended to put the code with side-effects inside these methods which may cause problems with Update effect After calling the pre-mutation method getSnapshotBeforeUpdate, React commits all the side-effects

    84410发布于 2021-02-26
  • 来自专栏张善友的专栏

    REST当中为什么要使用HTTP PUT

    Methods can also have the property of "idempotence" in that (aside from error or expiration issues) the side-effects

    96780发布于 2018-01-22
领券