{"id":16321510,"url":"https://github.com/doodlewind/fe-native-lang","last_synced_at":"2025-03-22T21:32:17.634Z","repository":{"id":80192978,"uuid":"122981516","full_name":"doodlewind/fe-native-lang","owner":"doodlewind","description":"Native language guide for FE developers.","archived":false,"fork":false,"pushed_at":"2018-02-26T14:32:14.000Z","size":21,"stargazers_count":31,"open_issues_count":1,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-18T15:12:41.325Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doodlewind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-26T14:30:25.000Z","updated_at":"2021-08-26T03:32:16.000Z","dependencies_parsed_at":"2023-07-20T10:45:15.789Z","dependency_job_id":null,"html_url":"https://github.com/doodlewind/fe-native-lang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodlewind%2Ffe-native-lang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodlewind%2Ffe-native-lang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodlewind%2Ffe-native-lang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doodlewind%2Ffe-native-lang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doodlewind","download_url":"https://codeload.github.com/doodlewind/fe-native-lang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245023017,"owners_count":20548641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T22:47:59.272Z","updated_at":"2025-03-22T21:32:17.607Z","avatar_url":"https://github.com/doodlewind.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 面向 Web 前端的原生语言总结手册\n\n这一系列文章旨在让具有 Web 前端背景的开发者快速上手原生语言。\n\n\n## 背景与动机\n从 WebView 到 Hybrid 再到 React Native，移动端主流技术方案中前端同学的施展空间越来越大。但传统 Web 前端背景的同学所熟悉的编程语言主要是 JavaScript，在与 Native 协作的边界上很容易遇到掌控范围之外的坑，这也是 RN 等方案经常被诟病的理由之一。\n\n然而，某一门具体的编程语言并不应该成为生涯的瓶颈或阻碍。已经熟悉某门主流语言的同学，学习新语言的速度可以是非常快的。在这方面，C++ 领域的《Essential C++》就是一个很好的例子：它假定读者已经熟练掌握了一门编程语言，从而忽略了入门编程初期大量琐碎的新手向知识点，直接向读者展示 C++ 的核心特性，让读者能够非常迅速地上手 C++ 语言（注意这和精通是两回事）。对于这份教程而言，让已有 JavaScript 背景的同学能够迅速上手原生语言而迈过跨端开发的一个坎，就是我们的初心。\n\n\n## 要求与目标\n这份教程对读者的要求只有一点：**熟悉** JavaScript。而在学习目标层面，请首先明确这份教程**不能做到**什么：\n\n* 让你达到**精通**水平：请慎用这个词。\n* 让你成为移动端开发者：特定的编程语言只是平台开发的**子集**。\n* 让你熟悉 IDE：这份教程会使用最简单的**命令行**编译配置，无需 IDE。\n\n与之相对地，这份教程的定位，是在这些场景下能够让你更快地达成目标：\n\n* 你在基于 RN 等方案开发，需要整合原生 SDK 或类库。\n* 你在 RN 等方案下踩到了 Native 的坑，希望能够独立调试解决。\n* 你需要大致理解现有的 Objective-C 等应用代码，或进行小修改。\n\n如果这些场景命中了你，那么就别犹豫了，上车继续吧😉\n\n\n## Getting Started\n如何阅读呢？从下面的链接开始就行了：\n\n* [**C**](./c)\n  * [**重温 Hello World**](./c/hello-world) - 介绍编译环境外与编码风格等基础。\n  * [**变量与类型**](./c/variable-types) - 介绍常常被 JS 程序员忽略的类型系统到底有多么重要。\n  * [**控制流**](./c/control-flow) - 介绍日常司空见惯的 for 和 while 循环是怎样和底层机制联系起来的。\n  * [**函数调用与栈**](./c/call-stack) - 介绍原生语言是如何复用代码段的。\n  * [**指针与引用**](./c/pointer-references) - 介绍我们需要区分基本类型和引用类型的理由。\n  * [**结构体与堆**](./c/structure-heap) - 介绍对象的雏形与内存管理的概念。\n* [**Objective-C**](./objective-c)\n\n为什么从 C 开始呢？一方面，WASM 和 WebGL 中少不了 C 的影子，而更主要的是，C 的内容**其实非常少**，并且有一个非常好的思维模型，能够帮助你理解编程语言的核心特性，从而更容易地通过类比来掌握其它语言。例如作为 C 的超集，Objective-C 中就有许多 C 的影子。从 C 开始能够让你更好地理解它的特性为何这么设计，从而更好地理解其它编译型的原生语言。当然，如果你已经熟悉了 C，你也可以直接跳过它，阅读其它部分。\n\n\n## 贡献\n非常欢迎各种形式的参与，包括但不仅限于问题讨论、勘误指正与新增内容🙏使用 GitHub 的 Issue 和 PR 来参与吧。\n\n\n## 致谢\n本系列文章的组织结构参考了《Objective-C Programming The Big Nerd Ranch Guide》一书。\n\n\n## 许可\n[CC 署名-禁止演绎](http://creativecommons.org/licenses/by-nd/4.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoodlewind%2Ffe-native-lang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoodlewind%2Ffe-native-lang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoodlewind%2Ffe-native-lang/lists"}