-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
新手嘗試重構 #7
新手嘗試重構 #7
Conversation
不用客氣 🙂 我大概拉下來跑了一下,結果看起來是對的,讚 👍 看來你很快就看懂我在寫什麼鬼東西 XDD 有些 style 小地方我們可以討論一下 |
if (line.startsWith("# subgroup: ")) flag = true | ||
} | ||
} | ||
return lines |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上,How about lines.toList()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上 😺
src/main/kotlin/net/purefunc/generate/util/ValidEmojiCollector.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/net/purefunc/generate/util/ValidEmojiCollector.kt
Outdated
Show resolved
Hide resolved
Vincent 大大早安,我剛剛依照你的 review 再做了一些重構,再麻煩妳看看 😺 祝你有美好的一天 |
LGTM, Let's merge. |
Vincent 大大晚安,我嘗試重構了 emoji-jvm-string 的專案,主要是將原本 main 方法拆分成三部分,並將這三者分別開成 class:
另外就是將一些函數替換成
(我自己判斷)更有語意的函數來呼叫,功能完全不變;我也嘗試實作 extension function,希望可以讓閱讀程式碼上能夠更流暢。由於我 Kotlin 還在學習,感覺是班門弄斧,如果有甚麼地方可以做得更好請多指教 😺
非常感謝
祝你有美好的一天!