It is easy to argue that the first comment is redundant because it rea การแปล - It is easy to argue that the first comment is redundant because it rea ไทย วิธีการพูด

It is easy to argue that the first

It is easy to argue that the first comment is redundant because it reads very much like
the generatePrimes function itself. Still, I think the comment serves to ease the reader into
the algorithm, so I’m inclined to leave it.
The second argument is almost certainly necessary. It explains the rationale behind
the use of the square root as the loop limit. I could find no simple variable name, nor any
different coding structure that made this point clear. On the other hand, the use of the
square root might be a conceit. Am I really saving that much time by limiting the iteration
to the square root? Could the calculation of the square root take more time than I’m saving?
It’s worth thinking about. Using the square root as the iteration limit satisfies the old C
and assembly language hacker in me, but I’m not convinced it’s worth the time and effort
that everyone else will expend to understand it.
0/5000
จาก: -
เป็น: -
ผลลัพธ์ (ไทย) 1: [สำเนา]
คัดลอก!
It is easy to argue that the first comment is redundant because it reads very much likethe generatePrimes function itself. Still, I think the comment serves to ease the reader intothe algorithm, so I’m inclined to leave it.The second argument is almost certainly necessary. It explains the rationale behindthe use of the square root as the loop limit. I could find no simple variable name, nor anydifferent coding structure that made this point clear. On the other hand, the use of thesquare root might be a conceit. Am I really saving that much time by limiting the iterationto the square root? Could the calculation of the square root take more time than I’m saving?It’s worth thinking about. Using the square root as the iteration limit satisfies the old Cand assembly language hacker in me, but I’m not convinced it’s worth the time and effortthat everyone else will expend to understand it.
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 2:[สำเนา]
คัดลอก!
มันเป็นเรื่องง่ายที่จะยืนยันว่าแสดงความคิดเห็นก่อนจะซ้ำซ้อนเพราะอ่านมากเช่นฟังก์ชั่น generatePrimes ตัวเอง แต่ถึงกระนั้นผมคิดว่าการแสดงความคิดเห็นให้บริการเพื่อความสะดวกของผู้อ่านเข้าสู่ขั้นตอนวิธีดังนั้นฉันอยากจะปล่อยให้มัน. อาร์กิวเมนต์ที่สองเป็นเกือบแน่นอนที่จำเป็น มันอธิบายถึงเหตุผลที่อยู่เบื้องหลังการใช้รากที่สองเป็นขีด จำกัด ของวง ฉันสามารถหาไม่มีชื่อตัวแปรง่ายหรือใด ๆโครงสร้างการเขียนโปรแกรมที่แตกต่างกันที่ทำให้จุดนี้ชัดเจน ในทางกลับกันการใช้ของรากที่สองอาจจะมีความคิด ฉันจริงๆประหยัดเวลามากโดยการ จำกัด การซ้ำกับรากที่สอง? สามารถคำนวณของรากใช้เวลามากขึ้นกว่าที่ฉันประหยัด? มันคุ้มค่าที่คิดเกี่ยวกับ ใช้รากที่สองเป็นวงเงินซ้ำตอบสนองความเก่า C แฮกเกอร์และภาษาประกอบในตัวผม แต่ผมไม่เชื่อว่ามันคุ้มค่าเวลาและความพยายามที่ทุกคนอื่นจะใช้จ่ายที่จะเข้าใจมัน









การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 3:[สำเนา]
คัดลอก!
มันเป็นเรื่องง่ายที่จะเห็นว่าความคิดเห็นแรก ( เพราะมันอ่านมาก
generateprimes ฟังก์ชันนั่นเอง แต่ฉันว่าข้อคิดเห็นบริการเพื่อความสะดวกของผู้อ่านใน
ดังนั้นผมค่อนข้างเอียงไปทิ้ง อาร์กิวเมนต์ที่สองคือจำเป็น
เกือบแน่นอน มันอธิบายถึงเหตุผลเบื้องหลัง
ใช้รากที่สองที่เป็นวง จำกัด ฉันสามารถหาไม่ง่าย ตัวแปรชื่อหรือโครงสร้างแตกต่างกันนะครับ
ทำให้จุดนี้ชัดเจน บนมืออื่น ๆที่ใช้
รากที่สองอาจจะมีการล่อลวง . จริงๆแล้วฉันบันทึกเวลาโดยการทำซ้ำ
เพื่อรากที่สอง ? สามารถคำนวณรากที่สองใช้เวลามากกว่าที่ฉันบันทึก ?
มันน่าคิด โดยใช้รากที่สองเป็นซ้ำตรงเก่า C
จำกัดและการประกอบภาษาแฮกเกอร์ในตัวผม แต่ผมไม่มั่นใจว่ามันจะคุ้มค่าเวลาและความพยายาม
ทุกคนจะจับจ่ายใช้สอยเพื่อจะเข้าใจมันนะ
การแปล กรุณารอสักครู่..
 
ภาษาอื่น ๆ
การสนับสนุนเครื่องมือแปลภาษา: กรีก, กันนาดา, กาลิเชียน, คลิงออน, คอร์สิกา, คาซัค, คาตาลัน, คินยารวันดา, คีร์กิซ, คุชราต, จอร์เจีย, จีน, จีนดั้งเดิม, ชวา, ชิเชวา, ซามัว, ซีบัวโน, ซุนดา, ซูลู, ญี่ปุ่น, ดัตช์, ตรวจหาภาษา, ตุรกี, ทมิฬ, ทาจิก, ทาทาร์, นอร์เวย์, บอสเนีย, บัลแกเรีย, บาสก์, ปัญจาป, ฝรั่งเศส, พาชตู, ฟริเชียน, ฟินแลนด์, ฟิลิปปินส์, ภาษาอินโดนีเซี, มองโกเลีย, มัลทีส, มาซีโดเนีย, มาราฐี, มาลากาซี, มาลายาลัม, มาเลย์, ม้ง, ยิดดิช, ยูเครน, รัสเซีย, ละติน, ลักเซมเบิร์ก, ลัตเวีย, ลาว, ลิทัวเนีย, สวาฮิลี, สวีเดน, สิงหล, สินธี, สเปน, สโลวัก, สโลวีเนีย, อังกฤษ, อัมฮาริก, อาร์เซอร์ไบจัน, อาร์เมเนีย, อาหรับ, อิกโบ, อิตาลี, อุยกูร์, อุสเบกิสถาน, อูรดู, ฮังการี, ฮัวซา, ฮาวาย, ฮินดี, ฮีบรู, เกลิกสกอต, เกาหลี, เขมร, เคิร์ด, เช็ก, เซอร์เบียน, เซโซโท, เดนมาร์ก, เตลูกู, เติร์กเมน, เนปาล, เบงกอล, เบลารุส, เปอร์เซีย, เมารี, เมียนมา (พม่า), เยอรมัน, เวลส์, เวียดนาม, เอสเปอแรนโต, เอสโทเนีย, เฮติครีโอล, แอฟริกา, แอลเบเนีย, โคซา, โครเอเชีย, โชนา, โซมาลี, โปรตุเกส, โปแลนด์, โยรูบา, โรมาเนีย, โอเดีย (โอริยา), ไทย, ไอซ์แลนด์, ไอร์แลนด์, การแปลภาษา.

Copyright ©2025 I Love Translation. All reserved.

E-mail: