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

ARTS 打卡第一周

ARTS

  • Algorithm
  • Review
  • Tip
  • Share

Algorithm

题目

class Solution {func mergeAlternately(_ word1: String, _ word2: String) -> String {var ans = ""var idx1 = word1.startIndexvar inx2 = word2.startIndexwhile 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.lryc.cn/news/236563.html

相关文章:

  • 第八部分:JSP
  • Github小彩蛋显示自己的README,git 个人首页的 README,readme基本语法
  • dxva2+ffmpeg硬件解码(Windows)终结发布
  • C#密封类、偏类
  • C++菱形继承问题
  • 第20章 数据库编程
  • PS学习笔记——初识PS界面
  • JDBC,Java连接数据库
  • java智慧校园信息管理系统源码带微信小程序
  • 智能电销机器人好做吗?ai机器人有没有用?
  • 吴恩达《机器学习》9-1:代价函数
  • 代码随想录算法训练营第五十九天 | LeetCode 739. 每日温度、496. 下一个更大元素 I
  • mybatisPlus的简单使用
  • vue+element实现多级表头加树结构
  • internet download manager2024中文绿色版(IDM下载器)
  • (二)Pytorch快速搭建神经网络模型实现气温预测回归(代码+详细注解)
  • markdown 公式编辑
  • 20231117在ubuntu20.04下使用ZIP命令压缩文件夹
  • IPKISS Tutorials 1------导入 pdk
  • 使用ChatGPT进行数据分析案例——贷款数据分析
  • 【数字图像处理】Gamma 变换
  • ChatGPT + DALL·E 3
  • 【AI视野·今日Robot 机器人论文速览 第六十三期】Thu, 26 Oct 2023
  • 测试Bard和ChatGPT关于双休的法规和推理
  • py查询第三方库的路径
  • LeetCode(16)接雨水【数组/字符串】【困难】
  • Kotlin 知识体系
  • 深度学习之基于YoloV5-Pose的人体姿态检测可视化系统
  • 为什么Go是后端开发的未来
  • Linux输入设备应用编程(键盘,按键,触摸屏,鼠标)