Skip to content

Commit

Permalink
昨日
Browse files Browse the repository at this point in the history
  • Loading branch information
ajn404 committed Jul 6, 2023
1 parent 19d4a50 commit 91f36cf
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 8 deletions.
4 changes: 4 additions & 0 deletions docs/.vuepress/config/nav.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ const daily: NavbarGroup[] = [
text: "20230704",
link: `${dailyBaseUrl}20230704`,
},
{
text: "20230705",
link: `${dailyBaseUrl}20230705`,
},
],
},
],
Expand Down
43 changes: 43 additions & 0 deletions docs/markdown/daily/20230705.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
### 目标

- [] 11:00-12:00 typescript
- [] 15:00-16:00 vue3
- [] 16:30-17:30 英语

### 琐碎

#### ts

##### 原生js的隐患

1.js的灵活是有代价的

2.缺乏文档
虽然jsDoc提供了类似的功能,但是jsDoc是写在注释中的,随便写也不会报错,而且对于复杂的对象或者函数,jsDoc会非常冗长和笨重,即使你的jsDoc是正确的,当你重构代码时,找到各种函数的jsDoc再重写一遍将非常痛苦(chore n.讨厌的工作)

3.weaker developer tooling

<figure>
<blockquote>
<p>
Because JavaScript doesn’t provide built-in ways to identify types, and code easily diverges from JSDoc comments, it can be difficult to automate large changes to or gain insights about a codebase.
</p>
</blockquote>
<figcaption>—Josh Goldberg<cite>Learning TypeScript</cite></figcaption>
</figure>

### vue3

<ClientOnly>
<objectification text="WeakMap与Map,WeakMap经常用于存储哪些只有当key所引用的对象存在时才有价值的信息"></objectification>
</ClientOnly>



### 总结

### 明日目标

- [] 11:00-12:00 typescript
- [] 15:00-16:00 vue3响应式原理看完
- [] 16:30-17:30 英语
9 changes: 1 addition & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,6 @@
dependencies:
"@floating-ui/core" "^1.0.1"

"@hufe921/canvas-editor@^0.9.37":
version "0.9.37"
resolved "https://registry.yarnpkg.com/@hufe921/canvas-editor/-/canvas-editor-0.9.37.tgz#ed1f521f9fc81e3c0eb56917197b2d25425650ba"
integrity sha512-bM/BeHWJUbmv8fZO56BF4nOX0JsnRERTk8kfJ5TEtiQu8VX3Z5mokHkk6FyU9BngWNWemIUQzVMgpKUBt9R9bQ==
dependencies:
prismjs "^1.27.0"

"@jridgewell/gen-mapping@^0.1.0":
version "0.1.1"
resolved "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz#e5d2e450306a9491e3bd77e323e38d7aff315996"
Expand Down Expand Up @@ -2774,7 +2767,7 @@ postcss@^8.1.10, postcss@^8.4.13, postcss@^8.4.14:
picocolors "^1.0.0"
source-map-js "^1.0.2"

prismjs@^1.27.0, prismjs@^1.28.0:
prismjs@^1.28.0:
version "1.29.0"
resolved "https://registry.npmmirror.com/prismjs/-/prismjs-1.29.0.tgz#f113555a8fa9b57c35e637bba27509dcf802dd12"
integrity sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==
Expand Down

0 comments on commit 91f36cf

Please sign in to comment.