-
Notifications
You must be signed in to change notification settings - Fork 250
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
[Round1] Step3 - tomchoi95 #999
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,20 @@ | |
|
||
import Foundation | ||
|
||
print("Hello, World!") | ||
func icecream() { | ||
for _ in 1...8 { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 와일드카드패턴까지 사용하여 for문을 잘 활용해주셨네요! 컨벤션도 좋아요 👍 |
||
print("***********") | ||
} | ||
} | ||
|
||
func bar() { | ||
for _ in 1...4 { | ||
print(" | |") | ||
} | ||
} | ||
|
||
icecream() | ||
bar() | ||
|
||
|
||
makeIceCream() |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// | ||
// order.swift | ||
// CodeStarterCamp_Week1 | ||
// | ||
// Created by 최범수 on 2024-09-17. | ||
// | ||
|
||
import Foundation | ||
|
||
var bodyLength : Int = 3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이렇게 변수에 설정값들을 담아둘수도 있지만 함수호출과 함께 매개변수에 입력값들을 받아볼 수 있게해볼 수 있을까요? 아래에 함수들은 재사용성있게 수정 후 다시 한 번 코멘트 드리겠습니다! |
||
var body : String = "|0|" | ||
var topping : String = " " | ||
var barLength : Int = 3 | ||
|
||
func makeBody() -> String { | ||
return topping+body+topping | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 연산자(+) 앞뒤로 띄어쓰기를 한번씩 해주는 것이 가독성이 좋습니다! topping + body + topping |
||
} | ||
|
||
func makeWholeBody() { | ||
while bodyLength > 0 { | ||
print(makeBody()) | ||
bodyLength -= 1 | ||
} | ||
} | ||
|
||
func makeBar() { | ||
for _ in 1...barLength { | ||
print(" | |") | ||
} | ||
} | ||
|
||
func information() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 정보를 표현해주는 함수도 따로 기능 분리해주셨군요! 좋습니다 👍 |
||
print("<정보>\n길이 : \(bodyLength)\n몸통 : \(body)\n토핑 : \(topping)\n막대길이 : \(barLength)") | ||
} | ||
|
||
func makeIceCream() { | ||
information() | ||
makeWholeBody() | ||
makeBar() | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" version="24.7.13"> | ||
<diagram id="C5RBs43oDa-KdzZeNtuy" name="Page-1"> | ||
<mxGraphModel dx="984" dy="625" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0"> | ||
<root> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-0" /> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-1" parent="WIyWlLk6GJQsqaUBKTNV-0" /> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-2" value="" style="rounded=0;html=1;jettySize=auto;orthogonalLoop=1;fontSize=11;endArrow=block;endFill=0;endSize=8;strokeWidth=1;shadow=0;labelBackgroundColor=none;edgeStyle=orthogonalEdgeStyle;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-3" target="WIyWlLk6GJQsqaUBKTNV-6" edge="1"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-3" value="Make icecream" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;glass=0;strokeWidth=1;shadow=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="160" y="80" width="120" height="40" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-4" value="Yes" style="rounded=0;html=1;jettySize=auto;orthogonalLoop=1;fontSize=11;endArrow=block;endFill=0;endSize=8;strokeWidth=1;shadow=0;labelBackgroundColor=none;edgeStyle=orthogonalEdgeStyle;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-6" target="WIyWlLk6GJQsqaUBKTNV-10" edge="1"> | ||
<mxGeometry y="20" relative="1" as="geometry"> | ||
<mxPoint as="offset" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-5" value="No" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;jettySize=auto;orthogonalLoop=1;fontSize=11;endArrow=block;endFill=0;endSize=8;strokeWidth=1;shadow=0;labelBackgroundColor=none;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-6" target="WIyWlLk6GJQsqaUBKTNV-7" edge="1"> | ||
<mxGeometry y="10" relative="1" as="geometry"> | ||
<mxPoint as="offset" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-6" value="Does icecream part exist?" style="rhombus;whiteSpace=wrap;html=1;shadow=0;fontFamily=Helvetica;fontSize=12;align=center;strokeWidth=1;spacing=6;spacingTop=-4;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="170" y="170" width="100" height="80" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-7" value="Recall icecream part" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;glass=0;strokeWidth=1;shadow=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="320" y="190" width="120" height="40" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-8" value="No" style="rounded=0;html=1;jettySize=auto;orthogonalLoop=1;fontSize=11;endArrow=block;endFill=0;endSize=8;strokeWidth=1;shadow=0;labelBackgroundColor=none;edgeStyle=orthogonalEdgeStyle;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-10" target="WIyWlLk6GJQsqaUBKTNV-11" edge="1"> | ||
<mxGeometry x="0.3333" y="20" relative="1" as="geometry"> | ||
<mxPoint as="offset" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-9" value="Yes" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;jettySize=auto;orthogonalLoop=1;fontSize=11;endArrow=block;endFill=0;endSize=8;strokeWidth=1;shadow=0;labelBackgroundColor=none;" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-10" target="WIyWlLk6GJQsqaUBKTNV-12" edge="1"> | ||
<mxGeometry y="10" relative="1" as="geometry"> | ||
<mxPoint as="offset" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-10" value="Does bar part exist" style="rhombus;whiteSpace=wrap;html=1;shadow=0;fontFamily=Helvetica;fontSize=12;align=center;strokeWidth=1;spacing=6;spacingTop=-4;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="170" y="290" width="100" height="80" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-11" value="Recall barpart" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;glass=0;strokeWidth=1;shadow=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="160" y="430" width="120" height="40" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-12" value="You've made it" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;glass=0;strokeWidth=1;shadow=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> | ||
<mxGeometry x="320" y="310" width="120" height="40" as="geometry" /> | ||
</mxCell> | ||
</root> | ||
</mxGraphModel> | ||
</diagram> | ||
</mxfile> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<mxfile host="Electron" agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/24.7.8 Chrome/128.0.6613.36 Electron/32.0.1 Safari/537.36" version="24.7.8"> | ||
<diagram id="C5RBs43oDa-KdzZeNtuy" name="Page-1"> | ||
<mxGraphModel dx="984" dy="647" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0"> | ||
<root> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-0" /> | ||
<mxCell id="WIyWlLk6GJQsqaUBKTNV-1" parent="WIyWlLk6GJQsqaUBKTNV-0" /> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="bJtik_TaSD2wrtr9TiYs-4" target="bJtik_TaSD2wrtr9TiYs-5"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-4" value="아스크림 만들기" style="ellipse;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="160" y="40" width="120" height="80" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-26" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="bJtik_TaSD2wrtr9TiYs-5" target="bJtik_TaSD2wrtr9TiYs-25"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-5" value="아이스크림 몸통<div>아이스크림 토핑</div><div>변수 설정</div>" style="whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="160" y="140" width="120" height="60" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-27" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.25;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="bJtik_TaSD2wrtr9TiYs-25" target="bJtik_TaSD2wrtr9TiYs-5"> | ||
<mxGeometry relative="1" as="geometry"> | ||
<mxPoint x="320" y="160" as="targetPoint" /> | ||
<Array as="points"> | ||
<mxPoint x="320" y="260" /> | ||
<mxPoint x="320" y="155" /> | ||
</Array> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-28" value="아니오" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="bJtik_TaSD2wrtr9TiYs-27"> | ||
<mxGeometry x="0.1024" y="2" relative="1" as="geometry"> | ||
<mxPoint as="offset" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-30" value="예" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="bJtik_TaSD2wrtr9TiYs-25" target="bJtik_TaSD2wrtr9TiYs-29"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-25" value="변수가 알맞게 설정이 되었는가" style="rhombus;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="180" y="220" width="80" height="80" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-32" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="bJtik_TaSD2wrtr9TiYs-29"> | ||
<mxGeometry relative="1" as="geometry"> | ||
<mxPoint x="220" y="380" as="targetPoint" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-34" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="bJtik_TaSD2wrtr9TiYs-29" target="bJtik_TaSD2wrtr9TiYs-33"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-29" value="몸통 만드는 함수 생성" style="whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="160" y="340" width="120" height="20" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-36" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="bJtik_TaSD2wrtr9TiYs-33" target="bJtik_TaSD2wrtr9TiYs-35"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-33" value="몸통의 길이 변수 설정" style="whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="160" y="380" width="120" height="20" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-37" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="bJtik_TaSD2wrtr9TiYs-35" target="bJtik_TaSD2wrtr9TiYs-33"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-38" value="아니오" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="bJtik_TaSD2wrtr9TiYs-37"> | ||
<mxGeometry x="0.1034" y="-4" relative="1" as="geometry"> | ||
<mxPoint as="offset" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-40" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="bJtik_TaSD2wrtr9TiYs-35" target="bJtik_TaSD2wrtr9TiYs-39"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-41" value="예" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="bJtik_TaSD2wrtr9TiYs-40"> | ||
<mxGeometry x="-0.2" y="-3" relative="1" as="geometry"> | ||
<mxPoint as="offset" /> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-35" value="몸통 길이의 변수가 입력이 되었는가" style="rhombus;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="165" y="450" width="110" height="100" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-45" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="bJtik_TaSD2wrtr9TiYs-39" target="bJtik_TaSD2wrtr9TiYs-44"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-39" value="원하는 길이로 몸통 생성하는 함수 생성" style="whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="160" y="590" width="120" height="40" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-47" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="bJtik_TaSD2wrtr9TiYs-44" target="bJtik_TaSD2wrtr9TiYs-46"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-44" value="바의 길이를 정하는 변수 설정" style="whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="160" y="650" width="120" height="40" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-48" value="아니오" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="bJtik_TaSD2wrtr9TiYs-46" target="bJtik_TaSD2wrtr9TiYs-44"> | ||
<mxGeometry relative="1" as="geometry"> | ||
<Array as="points"> | ||
<mxPoint x="320" y="750" /> | ||
<mxPoint x="320" y="670" /> | ||
</Array> | ||
</mxGeometry> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-50" value="예" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="bJtik_TaSD2wrtr9TiYs-46" target="bJtik_TaSD2wrtr9TiYs-49"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-46" value="바의 길이 변수가 입력이 되었는가" style="rhombus;whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="180" y="710" width="80" height="80" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-52" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="bJtik_TaSD2wrtr9TiYs-49" target="bJtik_TaSD2wrtr9TiYs-51"> | ||
<mxGeometry relative="1" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-49" value="바를 원하는 길이로 만드는 함수 생성" style="whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="160" y="830" width="120" height="40" as="geometry" /> | ||
</mxCell> | ||
<mxCell id="bJtik_TaSD2wrtr9TiYs-51" value="전체 아이스크림을 만드는 함수 생성" style="whiteSpace=wrap;html=1;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> | ||
<mxGeometry x="160" y="900" width="120" height="40" as="geometry" /> | ||
</mxCell> | ||
</root> | ||
</mxGraphModel> | ||
</diagram> | ||
</mxfile> |
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.
네이밍이 조금 더 명확하게 표현되었으면 좋겠어요!
iceCreamBody, iceCreamBar와 같이요 :)
두 개의 함수 모두 아이스크림 하나를 그리는 것이기에 아이스크림의 어떤 부분을 그리는 것이다!라고 표현하면 좋아요.
또한 API 디자인 가이드라인 문서를 보면
함수를 네이밍할때 앞에 동사를 붙이라고 되어있습니다! 꼭 한 번 읽어보시길 추천드려요 🙏
디자인 가이드라인에 맞게 네이밍 수정해보시길 바랍니다!