240 发简信
IP属地:上海
  • Resize,w 360,h 240
    CLion7: const, mutable

    主要写const两个用法:const & pointer, const function const pointer 两种: const int...

  • 元宵,文化输出与文化吞噬力(一)

    元宵节,祝各位欢度元宵!🏮┄┓┊今┆ 🔥┊日┊ 🎉┊元┆🎊┊宵┆ ㊗️┗┄┛ 看到Googl...

  • 《镖人》

    真是一部极好的国漫。 第四期讲解[https://www.bilibili.com/video/BV1x5411V77Z?spm_id_from...

  • Kafka consumer存储offset事务持久化解决丢失重复

    本质是自定义存储offset, 解决消息消费&offset数据一致性问题。 因为不管是自动提交properties.put(ConsumerCo...

  • threadlocalmap, hashmap哈希和寻址异同随想

    Update: 很多设计都是类似的, 比如Hashmap, ThreadLocalMap, LongAdder的Cell都是设计为2^n, 归根...

  • Medium-test: file IO

    Test size(Google blogs): https://testing.googleblog.com/2010/12/test-siz...

  • Resize,w 360,h 240
    371

    x - y: thought it was index: wasted 20 min... T4: with this constraint b...

  • 由《一诺无悔》有感

    《一诺无悔》是最近两个星期中央一台黄金档的电视剧,讲的是廖俊波作为福建省政和县的县委书记,如果带领政和县飞速发展,努力奋斗的事情。我这段时间也是...

  • 没有mock必要service同一个文件中不同test的mock相互影响

    如题,进行集成测试时,整体所需要的所有prerequisites的services在beforeEach中都应该mock;如果缺失了,那么Moc...