当前位置: 首页 > article >正文

ARTS 打卡第一周

ARTS

  • Algorithm
  • Review
  • Tip
  • Share

Algorithm

题目

class Solution {
    func mergeAlternately(_ word1: String, _ word2: String) -> String {
        var ans = ""
        var idx1 = word1.startIndex
        var inx2 = word2.startIndex
        while idx1 < word1.endIndex || idx2 < word2.endIndex {
            if idx1 != word1.endIndex {
                ans.appdend(word1[idx1])
                idx1 = word1.index(after: idx1)
            }
            if idx2 != word2.endIndex {
                aps.appdend(word2[idx2])
                idx2 = word2.index(after: idx2)
            }
        }
        return ans
    }
}


Review

RN Integration with Existing Apps

  1. Set up directory structure
    To ensure a smooth experience, create a new folder for your integrated React Native project, then copy your existing iOS project to a /ios subfolder.

新建一个RN项目目录, 把iOS项目放到 RN目录中的 /iOS 子目录中

  1. Install JavaScript dependencies
    Go to the root directory for your project and create a new package.json file with the following contents:
    安装javascript依赖, 新建package.json 文件
{
  "name": "MyReactNativeApp",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "yarn react-native start"
  }
}

运行命令: npm install react-native
安装 react-native 依赖包

Tip

分享一些好用的工具 utools, 以及iOS项目集成RN步骤

Share

最近在读代码整洁之道,有个建议,所有的代码都要写测试用例,覆盖尽量100%, 我呆过的几家公司里, 很少有做到这样的, 大家不愿意写测试用例的原因,时间不够, 都交给专业的测试人员去做测试覆盖, 如果是每次发版本之前都跑一边测试用例最好。


http://www.kler.cn/news/134540.html

相关文章:

  • 高防IP是什么,高防IP有什么作用?
  • python之使用深度学习创建自己的表情符号
  • 京联易捷科技与劳埃德私募基金管理有限公司达成合作协议签署
  • LeetCode 面试题 16.26. 计算器
  • Maven引用本地jar包
  • Polygon Miden VM中的哈希函数对比
  • 2311rust,到35版本更新
  • 【论文阅读】SPARK:针对视觉跟踪的空间感知在线增量攻击
  • 基于支持向量机SVM的时间序列数据训练测试和预测未来数据,LIBSVM工具箱详解
  • OPPO Watch纯手机开启远程ADB调试
  • CMS与FullGC
  • 3D应用开发引擎HOOPS如何促进AEC数字化架构革新?
  • mybatisPlus的简单使用
  • window拖拽操作的实现
  • python连接hive报错:TypeError: can‘t concat str to bytes
  • 【面试经典150 | 数学】Pow(x, n)
  • 论文阅读:YOLOV: Making Still Image Object Detectors Great at Video Object Detection
  • Linux系统上导出和导入MongoDB数据库
  • Vue 3 和 Spring Boot 3 的操作流程和执行步骤详解
  • 视频修复软件 Aiseesoft Video Repair mac中文版功能
  • Spring Boot中使用Redis进行大数据缓存
  • 连接服务器上mysql数据库
  • 【交易误区】MT4外汇交易必读:新手常犯的交易错误有哪些?
  • 小程序开通电子发票
  • 中小企业怎么实现数字化转型?有什么实用的工单管理系统?
  • Notepad++ 和正则表达式 只保留自己想要的内容
  • idea项目中java类名出现带 j 小红点,如何解决?
  • 使用契约的链上限价订单
  • 【ArcGIS】批量对栅格图像按要素掩膜提取
  • 2024年全网最全的Jmeter+ant+jenkins实现持续集成教程