ผมกำลังหาโปรแกรมเมอร์มาช่วยทำงาน

ก็ออกข้อสอบมา 1 ชุด 1 ในนั้นคือการให้เขียน หาคำตอบว่า recursive function ที่ให้ไว้
ถ้าใส่ตัวแปรไปแล้ว จะได้ผลลัพธ์เป็นค่าอะไร และให้เขียน Code จาก Recursive function โดยให้แปลง
โดยใช้ For loop และ While Loop

ทดสอบมา 4-5 คน ปรากฎว่าไม่มีใครทำได้เลย หรือได้ infinity loop กันหมด หรือไม่ส่งเลย
ผลลัพธ์จากตัวหลัก Recursive function ก็ตอบผิด

มันยากไปเหรอครับ เพราะผมก็ทำได้แบบไม่ยากนัก และจำได้ว่าอย่างการหาผลลัพธ์ของ recursive function ก็มีในข้อสอบสอบเข้าเรียนด้วย

Hiring! บริษัทที่น่าสนใจ

Carmen Software company cover
Carmen Software
Hotel Financial Solutions
Next Innovation (Thailand) Co., Ltd. company cover
Next Innovation (Thailand) Co., Ltd.
We are web design with consulting & engineering services driven the future stronger and flexibility.
KKP Dime company cover
KKP Dime
KKP Dime บริษัทในเครือเกียรตินาคินภัทร
Kiatnakin Phatra Financial Group company cover
Kiatnakin Phatra Financial Group
Financial Service
Fastwork Technologies company cover
Fastwork Technologies
Fastwork.co เว็บไซต์ที่รวบรวม ฟรีแลนซ์ มืออาชีพจากหลากหลายสายงานไว้ในที่เดียวกัน
Thoughtworks Thailand company cover
Thoughtworks Thailand
Thoughtworks เป็นบริษัทที่ปรึกษาด้านเทคโนโยลีระดับโลกที่คว้า Great Place to Work 3 ปีซ้อน
Iron Software company cover
Iron Software
Iron Software is an American company providing a suite of .NET libraries by engineer for engineers.
CLEVERSE company cover
CLEVERSE
Cleverse is a Venture Builder. Our team builds several tech companies.
Nipa Cloud company cover
Nipa Cloud
#1 OpenStack cloud provider in Thailand with our own data center and software platform.
Bangmod Enterprise company cover
Bangmod Enterprise
The leader in Cloud Server and Hosting in Thailand.
CIMB THAI Bank company cover
CIMB THAI Bank
MOVING FORWARD WITH YOU - CIMB is the leading ASEAN Bank
Bangkok Bank company cover
Bangkok Bank
Bangkok Bank is one of Southeast Asia's largest regional banks, a market leader in business banking
MuvMi (Urban Mobility Tech Co.,Ltd.) company cover
MuvMi (Urban Mobility Tech Co.,Ltd.)
Shape the future of urban mobility towards affordable, clean, and safe solutions
T.N. Digital Solution Co., Ltd. company cover
T.N. Digital Solution Co., Ltd.
TNDS has been involving in every first move of banking’s major digital transformation.
KBTG - KASIKORN Business-Technology Group company cover
KBTG - KASIKORN Business-Technology Group
KBTG - "The Technology Company for Digital Business Innovation"
Siam Commercial Bank Public Company Limited company cover
Siam Commercial Bank Public Company Limited
"Let's start a brighter career future together"
Icon Framework co.,Ltd. company cover
Icon Framework co.,Ltd.
Global Standard Platform for Real Estate แพลตฟอร์มสำหรับธุรกิจอสังหาริมทรัพย์ครบวงจร มาตรฐานระดับโลก
REFINITIV company cover
REFINITIV
The Financial and Risk business of Thomson Reuters is now Refinitiv
H LAB company cover
H LAB
Re-engineering healthcare systems through intelligent platforms and system design.
The Gang Technology Co., Ltd. company cover
The Gang Technology Co., Ltd.
We're a Digital Agency that helps our customers transform their business into digital with ease.
LTMH company cover
LTMH
LTMH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
Seven Peaks company cover
Seven Peaks
We Drive Digital Transformation
Wisesight (Thailand) Co., Ltd. company cover
Wisesight (Thailand) Co., Ltd.
The Best Choice For Handling Social Media · High Expertise in Social Data · Most Advanced and Secure
MOLOG Tech company cover
MOLOG Tech
We are Modern Logistic Platform, Specialize in WMS, OMS and TMS.
Data Wow Co.,Ltd company cover
Data Wow Co.,Ltd
We enable our clients to realize increased productivity by solving their most complex issues by Data
LINE Company Thailand company cover
LINE Company Thailand
LINE, the world's hottest mobile messaging platform, offers free text and voice messaging + Call
LINE MAN Wongnai company cover
LINE MAN Wongnai
Join our journey to becoming No.1 food platform in Thailand

สำหรับผม recursive นี่ไม่ใช่ฟังก์ชั่นที่เขียนปกติในชีวิตประจำวันนะ นานๆจะเขียนซักที ถ้าให้กระดาษมาแล้วทำตรงนั้นเลย ผมว่าก็คิดหนัก ใช้เวลานานอยู่ ถ้าเขียนในคอมก็ต้องใช้เวลาเขียนแล้วทดสอบพอสมควร

ความเห็นส่วนตัวผมว่า ลองเปลี่ยนเป็นหาโปรแกรมเมอร์มาทำงานอะไร ให้เค้าทดสอบด้วยงานนั้นๆมั้ยครับ เช่น ถ้าหา frontend ก็เอาดีไซน์หน้าเว็บแบบไม่ต้อง advance มาก ให้เขียนออกมาเป็น html/js/css หรือถ้าหา backend/database ก็ลองให้เขียนโค้ท/sql สร้าง/ดึงข้อมูล/ค้นหา พวกนี้ถ้าคนทำงานอยู่ปกติน่าจะทำได้ภายใน 1-3 ชั่วโมงครับ

ไม่ได้ให้เขียน recursive function ครับ เพราะมันอาจจะใช้เวลาเยอะไป
อันนี้คือให้แปลงเป็น for กับ while ครับ เพื่ออยากจะทดสอบพื้นฐาน programming ครับ

เรื่องทำสอบด้วยงาน อันนี้ก็มีทดสอบครับ ให้ทำหน้ากับเครื่อง pc ที่จะให้เวลานานหน่อย เปิดเน็ต ค้น google ได้
ปัญหาคือ พอทำแบบนี้ บ้างคนไปค้น google มาเอาแปะเลย มันก็ได้ผลลัพธ์บ้างส่วน (ลองรับเข้ามาปรากฎว่าพื้นฐานไม่แน่น)

แต่ไม่ค่อยเห็นพื้นฐานเท่าไหร่ เลยคิดข้อสอบชุดข้างต้นมาทดสอบพื้นฐาน

คือไม่ใช่ฟังก์ชันที่ใช้กันบ่อยๆ แต่ถ้าพื้นฐานโอเคมันควรจะอ่านแล้วเข้าใจนะครับ ผมว่ามันออกแนววัดพื้นฐานมากกว่า

ปกติเวลาผม fetch JSON มามันก็มี function หรือ method ให้แปลงเป็น Object ทุกภาษาอยู่แล้วไม่ใช่เหรอครับแล้ว recursive โผล่มาตอนไหนอ่ะ งงจริงนะเนี่ยหรือผมอ่านอะไรเข้าใจผิดไป

สำหรับผมการแปลง recursive เป็น loop ถือว่าง่ายครับน่าจะไม่น่าเกิน 30 นาที
ในทางกลับกันให้แปลง loop เป็น recursive นี่ยากชิบหัยขอสองวันได้มั้ย

ผมว่าปัญหาอาจจะไม่ได้อยู่ที่การแปลง recursive เป็น loop
แต่มันอาจจะอยู่ที่ว่าเขามองไม่ออกตั้งแต่แรกว่า recursive มันทำอะไรรึเปล่าครับ
พอมองไม่ออกก็แปลงไม่ได้อยู่แล้วอาจจะลองเปลี่ยนจาก factorial เป็นวนลบเลขจนเหลือ 0
อะไรทำนองนี้อาจจะเข้าใจง่ายขึ้น แต่อาจจะง่ายไปอีกรึเปล่า?

แต่อาจจะเป็นปัญหาที่ตัวคนสมัครเองก็ได้ครับอาจจะให้ค่าตอบแทนต่ำไปรึเปล่าคนที่เก่งๆเลยไม่ค่อยสนใจสมัคร
เพราะเอาจริงๆต่อให้แปลงไม่ออกมันก็ไม่น่าจะถึงขั้นติด infinite loop นะ..

"แต่มันอาจจะอยู่ที่ว่าเขามองไม่ออกตั้งแต่แรกว่า recursive มันทำอะไรรึเปล่าครับ"
น่าจะใช่ครับ

ค่าตอบแทนที่ให้คือ 20,000-25,000 บาทครับ
ซึ่งก็ไม่คิดว่าจะต้องเก่งมากนะครับ ทีวัดนี่ผมก็ว่ามันพื้นฐานมาก ๆ นี่กะว่าเอาคนแบบไม่มีประสบการณ์
หรือมีซัก 1 ปีมาทำครับ (ล่าสุดคือประสบการณ์ 2 ปี ก็ทำไม่ได้ครับ -_-')

อืมมมม ที่แรกอ่านๆก็งงๆเรียก "recursive" กัน ไปsearch เปิดนิยามดู ถึงบ้างอ้อ
ที่ผมเขียนๆทุกวันนี่เรียกว่า"recursive" นิหว่าาา ที่call function เดิมๆแต่ใส่ value ต่างกันไป if บลาๆๆๆ เหอๆ
(ผมประสบการณ์ 7 ปี แต่คิดว่าทำไม่ได้อะ คงตื่นเต้นมากๆ เวลาสัมภาษณ์งาน )

Edward Thornton Mon, 17/06/2019 - 12:15

Certificationgenie is the best online portal for preparation of the certification exams. We have the 100% quality study material for the HPE0-S56 exam. Our HP exam preparation material is very helpful for Building HPE Hybrid IT Solutions. Get the actual HPE0-S56 questions.

pavangcc Tue, 30/08/2022 - 19:19

The biggest difference between the two is the location that the script executes. When the user is in Edit Lines, then the QCP runs when using Salesforce(salesforce-cpq-tutorial) in the browser. When it executes due to a trigger, it runs in Heroku. Perhaps you can check to see if window is defined or not.

I'm unable to test to see if this works, but you could try something like