ื”ืคืจืง ื”ื—ื“ืฉ ืฉืœ ืกื™ื™ื‘ืจืกื™ื™ื‘ืจ ื”ืชื—ื™ืœ ืž-code smell, ืžื•ื ื— ืžื•ื›ืจ ื”ื™ื˜ื‘ ืœืžืคืชื—ื™ื ืžื ื•ืกื™ื. ืžื” ื”ืžืฉืžืขื•ืช ืฉืœ code smell? ืกื™ืžื ื™ื ืงืœื™ื ื‘ืงื•ื“ ืฉืžืจืื™ื ืฉื™ืฉ ืื™ืชื• ื‘ืขื™ื”, ื›ืžื• ืจื™ื— ืฉืœ ื“ื’ื™ื ืฉืžืขื™ื“ ืฉื”ื ืœื ื˜ืจื™ื™ื. ื–ื• ืœืื• ื“ื•ื•ืงื ื‘ืขื™ื” ืกืคืฆื™ืคื™ืช ืขื ื”ืงื•ื“. ื™ืชื›ืŸ ืฉื”ื•ื ืขื•ืฉื” ื‘ื“ื™ื•ืง ืืช ืžื” ืฉื”ื•ื ืืžื•ืจ ืœืขืฉื•ืช, ืื‘ืœ ื”ื•ื ื›ืชื•ื‘ ื‘ืื•ืคืŸ ื›ื–ื” ืฉืžืจืื” ืฉืขืœื•ืœื” ืœื”ื™ื•ืช ืื™ืชื• ื‘ืขื™ื”. ื—ืœืง ืžื”ื ื™ืกื™ื•ืŸ ืฉืœื™ ื›ืžืคืชื— ื’ื•ืจื ืœื™ ืžื™ื“ ืœื”ืจื™ื— ืืช ื”ืกื™ืžื ื™ื ื”ืืœื•, ื•ื”ืืฃ ืฉืœ ื›ืœ ืื“ื ื˜ื›ื ื™ ืฉื™ืฉ ืœื• ืื™ ืืœื• ืฉื ื•ืช ื ื™ืกื™ื•ืŸ ืจื’ื™ืฉ ืœืกื™ืžื ื™ื ื”ืืœื• ื›ืืคื• ืฉืœ ืื™ืกื˜ื ื™ืก ืคื—ืžื™ืžื•ืช ืฉืžืจื™ื— ืžืืคื” ื›ืฉืจ ืœืืฉื›ื ื–ื™ื ืžื”ื“ืจื™ืŸ ืฉื‘ืžื”ื“ืจื™ืŸ ืœืคืกื—. ื“ื•ื’ืžื” ื ื”ื“ืจืช ืœื›ืš ืืคืฉืจ ื”ื™ื” ืœืจืื•ืช ื‘ืžืงืจื” ืฉื”ื’ื™ืข ืœืฆื•ื•ืช ืกื™ื™ื‘ืจืกื™ื™ื‘ืจ, ื•ื—ืฉืฃ ืคื™ืจืฆืช ืื‘ื˜ื—ื” ื•ืคืจื˜ื™ื•ืช ื—ืžื•ืจื” ื‘ืืชืจ ืฆื””ืœื™ (ืœื ื–ืืช. ืขื•ื“ ืื—ืช).

ื‘ืื—ื“ ืžืœื™ืœื•ืช ืฉื™ืฉื™ ื”ืงืคื•ืื™ื ืฉื”ื™ื• ืœืื—ืจื•ื ื”, ื›ืืฉืจ ืืชื ื ืžื ืžืชื ืœื›ื ื‘ื‘ื™ืช ื”ื—ืžื™ื, ื”ื™ืชื” ืœื™ ืคื’ื™ืฉื” ืืคืœื” ื‘ืžื™ื•ื—ื“ ืขื ื’ื•ืจื ืฆื‘ืื™ ื‘ื›ื™ืจ. ืื—ืจื™ ืชื™ืื•ืžื™ื ืจื‘ื™ื ื•ืžืจื“ืคื™ื ื‘ืจื—ื‘ื™ ืคืชื— ืชืงื•ื•ื”, ื”ืฆืœื—ืชื™ ืœื”ืฉื™ื’ ืื•ืชื•. ื”ื•ื ื”ื™ื” ื—ื‘ื•ืฉ ื‘ืžื’ื‘ืขืช ื•ืื—ื– ื‘ืขื•ืชืง ืฉืœ ื”ืžืงื•ืžื•ืŸ ืžืœืื‘ืก. “ื™ืฉ ืœื™ ืจืง ืฉืชื™ ืžื™ืœื™ื ื‘ืฉื‘ื™ืœืš”, ื”ื•ื ืืžืจ: “ืชืกืชื›ืœ ื‘ืืคืœื™ืงืฆื™ื™ืช ื”ืงื•ืจื•ื ื” ืฉืœ ื”ืฆื‘ื”. ืœื ื”ืกืคืงืชื™ ืœื•ืžืจ ืœื• ืฉืืœื• ื—ืžืฉ ืžื™ืœื™ื ื•ื”ื•ื ื›ื‘ืจ ื ืขืœื, ืžืฉืื™ืจ ืžืื—ื•ืจื™ื• ืขืฉืŸ ืกื™ื’ืจื™ื ื›ื—ืœื—ืœ ื•ื ื™ื—ื•ื— ืืงืœื™ืคื˜ื•ืกื™ื ื•ืžื•ืชื™ืจ ืื•ืชื™ ืœื‘ื“ ื‘ื’ืฉื ื”ืฉื•ื˜ืฃ.ยน

ืืคืœื™ืงืฆื™ืช ื”ืงื•ืจื•ื ื” ืฉืœ ื”ืฆื‘ื, ืฉื›ืžืงื•ื‘ืœ ื‘ืฆื‘ื ื–ื›ืชื” ืœืจืืฉื™ ืชื™ื‘ื•ืช ืžื˜ื•ืคืฉื™ื – ื”ืฆื‘”ืจ (ื”ืฆื”ืจืช ื‘ืจื™ืื•ืช) – ื”ื™ื ื‘ืขืฆื ืืชืจ ืฉื ื’ื™ืฉ ืืš ื•ืจืง ืœื˜ืœืคื•ื ื™ื ื ื™ื™ื“ื™ื (ืื• ืœื›ืœื™ ื”ืคืจื™ืฆื” ื”ืžืฉื•ื›ืœืœ ื“ืคื“ืคืŸ ืขื ืชื•ืกืฃ ื”ื—ืœืคืช ื™ื•ื–ืจ ืื™ื™ื’’ื ื˜). ื”ื—ืœ ืžื”-23.11, “ื›ืœืœ ื”ืžืฉืจืชื™ื ื‘ื›ืœืœ ื”ืื’ืคื™ื, ื”ืคื™ืงื•ื“ื™ื ื•ื”ื–ืจื•ืขื•ืช” ื ื“ืจืฉื™ื, ื‘ืคืงื•ื“ื” ืฉืœ ืกื’ืŸ ื”ืจืžื˜ื›”ืœ, ืืœื•ืฃ ืื™ื™ืœ ื–ืžื™ืจ, ืœื”ื™ื›ื ืก ืืœ ื”ืืคืœื™ืงืฆื™ื” ื•ืœื“ื•ื•ื— ืžื“ื™ ื™ื•ื ืขืœ ืžืฆื‘ื – ื”ืื ืื•ื‘ื—ื ื• ื›ื—ื•ืœื™ื? ื”ืื ื—ืฉื• ื‘ืชืกืžื™ื ื™ื? ื”ืื ืฉื”ื• ืœื™ื“ ื—ื•ืœื” ืžืื•ืžืช? ืœื ืจืง ืฉืžื“ื•ื‘ืจ ื‘ืคืงื•ื“ื”, ื”ืฆื‘ื ืฉืœื— ืกืžืกื™ื ืœื›ืœ ื”ื—ื™ื™ืœื™ื ื•ื”ื–ื›ื™ืจ ืœื”ื ืœืžืœื ืืช ื”ืืคืœื™ืงืฆื™ื” ื‘ืื•ืคืŸ ื™ื•ืžื™, ื›ืฉื”ื•ื ืžืžืฉื™ืš ืœื”ืฉืชืžืฉ ื‘ืœื™ื ืงื™ื ืžืงื•ืฆืจื™ื ืžืคื•ืงืคืงื™ื ืฉืื™ื ื ืขืœ ื“ื•ืžื™ื™ืŸ ืฆื‘ืื™ ืืœื ื‘ืฉื™ืจื•ืช ืคืจื˜ื™, ืฉืื™ืŸ ืœื“ืขืช ืื™ื–ื” ืกื•ื’ ืฉืœ ืžืขืงื‘ื™ื ื•ืื™ืกื•ืฃ ืžื™ื“ืข ื”ื•ื ืžื‘ืฆืข ืขืœ ื”ื˜ืจืืคื™ืง.

ืกืžืก ืžืฆื”"ืœ ืขืœ ืฉื™ืžื•ืฉ ื‘ืืชืจ ื”ืฆื‘"ืจ
ืกืžืก ืžืฆื””ืœ ืขืœ ืฉื™ืžื•ืฉ ื‘ืืชืจ ื”ืฆื‘”ืจ

ื”ืืคืœื™ืงืฆื™ื” ื”ื™ื ื‘ืกืš ื”ื›ืœ ืืชืจ ื•ื•ื‘ ืจื’ื™ืœ ืฉืืคืฉืจ ืœื”ื›ื ืก ืืœื™ื• ืขื ื“ืคื“ืคืŸ. ืฉื–ื• ื‘ื“ืจืš ื›ืœืœ ื”ื‘ืขื™ื”, ื›ืคื™ ืฉืขื•ืงื‘ื™ ื”ืคื•ื“ืงืืกื˜ ื™ื•ื“ืขื™ื, ืžืฉื•ื ืฉืžื“ื•ื‘ืจ ื‘ื›ืœื™ ืคืจื™ืฆื” ืžืคืœืฆืชื™. ืฉืœื—ืชื™ ืืช ื›ืชื•ื‘ืช ื”ืืชืจ/ืืคืœื™ืงืฆื™ื” ืœื ืขืืจ ื•ื‘ื™ืงืฉืชื™ ืžืžื ื• ืœื”ืขื™ืฃ ืžื‘ื˜. “ืชืกืชื›ืœ ื”ื™ื˜ื‘ ืขืœ ื”ืืชืจ ื”ื–ื””, ื”ืฉื™ื‘ ืœื™ ื ืขืืจ, “ื”ื•ื ืžืกืจื™ื— ื™ื•ืชืจ ืžื”ื’ืจื‘ื™ื™ื ื”ื™ืฉื ื™ื ืฉืœ ืขื™ื“ื•ืง ืฉื ืฉื›ื—ื• ื‘ืชื•ืš ื”ืงืžืžื‘ืจ ืฉื ื™ืกื™ืชื™ ืœืขืฉื•ืช ื‘ืžืจืชืฃ”.

ื”ืชื™ืื•ืจ ื”ื™ื” ืžืื•ื“ ืžืื•ื“ ื’ืจืคื™, ืื‘ืœ ื”ื‘ื ืชื™ ืืช ื”ื›ื•ื•ื ื” ืฉืœื•. ืžืžื‘ื˜ ื‘ืืชืจ ืืคืฉืจ ืœืจืื•ืช ื›ืžื” ื‘ืขื™ื•ืช. ื‘ื“ืจืš ื›ืœืœ, ื‘ืืคืœื™ืงืฆื™ื•ืช ืฉื‘ื ื•ื™ื•ืช ื ื›ื•ืŸ, ืงื•ื“ ืฆื“ ื”ืœืงื•ื— (ื›ืœื•ืžืจ ื”ื’’ืื•ื•ื”ืกืงืจื™ืคื˜) ืขื•ื‘ืจ ืชื”ืœื™ื›ื™ื ืฉืžืกื™ืจื™ื ืžืžื ื• ืืช ื”ืขืจื•ืช ื”ืžืชื›ื ืชื™ื, ืžืžื–ืขืจื•ืช ืื•ืชื• ื•ืžืขื‘ื™ืจื•ืช ืื•ืชื• ืชื”ืœื™ื›ื™ื ื ื•ืกืคื™ื ืฉื ืงืจืื™ื ื˜ืจื ืกืคื™ืœืฆื™ื”. ื›ืืŸ ื”ืงื•ื“ ืœื ืขื‘ืจ ืฉื•ื ืขืจื‘ื•ืœ – ื›ื•ืœื• ื”ื™ื” ื’ืœื•ื™ ื›ืคื™ ืฉื”ื•ื ื ื›ืชื‘, ื‘ืคื ื™ ื›ืœ ืžื™ ืฉืจืฆื” ืœื”ืกืชื›ืœ. ื›ืš ื’ื™ืœื™ื ื•, ืœืžืฉืœ, ืฉื™ืฉ ืžืชื›ื ืชื™ื ืฉื”ื ืฆื™ื—ื• ืืช ืขืฆืžื ื›ืฉืงืจืื• ืœืคื•ื ืงืฆื™ื•ืช ืขืœ ืฉืžื. ื•ื–ื”? ื–ื” ืžืกืจื™ื— ืœืžื“ื™. ืื•ืœื™ ืœื ื›ืžื• ื”ื’ืจื‘ื™ื™ื ืฉืœ ืขื™ื“ื•ืง. ืื‘ืœ ืžืกืจื™ื—.

ื”ืฆื‘"ืจ, ืืชืจ ื“ื™ื•ื•ื—ื™ ื”ืงื•ืจื•ื ื” ื”ืฆื”"ืœื™
ื”ืฆื‘”ืจ, ืืชืจ ื“ื™ื•ื•ื—ื™ ื”ืงื•ืจื•ื ื” ื”ืฆื””ืœื™

ื ื‘ื™ืจื” ืžื”ื™ืจื” ื‘ืืชืจ ืื™ืฉืฉื” ืืช ื”ื—ื•ืœืฉื” ืฉื”ืžืงื•ืจ ื ืงื‘ ื‘ื”, ื•ื”ื—ื•ืœืฉื” ื”ื™ืชื” ืคืฉื•ื˜ื” ืžืื•ื“ – ื›ืœ ื’ื•ืœืฉืช ื™ื›ื•ืœื” ื”ื™ืชื” ืœืงื‘ืœ ืžื™ื“ืข ืขืœ ื›ืœ ื—ื™ื™ืœ ื•ื—ื™ื™ืœืช, ื›ื•ืœืœ ืฉืžื ื”ืžืœื ื•ื”ืกื™ืžืคื˜ื•ืžื™ื ื‘ืžื™ื“ื” ืฉื“ื•ื•ื—ื• ื›ืืœื•. ื‘ืžื™ื“ื” ื•ื”ื“ื™ื•ื•ื— ื”ื™ื” ืœื ืžื•ืฆืœื—, ื”ื™ื™ื ื• ืžืงื‘ืœื™ื ืฉื’ื™ืื” ืคืฉื•ื˜ื”. ื‘ืžื™ื“ื” ื•ื”ื“ื™ื•ื•ื— ื”ื™ื” ืžื•ืฆืœื— ื”ื™ื™ื ื• ืžืงื‘ืœื™ื ืœื ืจืง ืื™ืฉื•ืจ ืœื›ืš ืฉืžืกืคืจ ื”ื–ื”ื•ืช ืงื™ื™ื, ืืœื ื’ื ื›ื‘ื•ื ื•ืก ืืช ืฉื ื”ื—ื™ื™ืœ ื”ืžืœื ื•ืืช ื”ืชืกืžื™ื ื™ื ืฉื”ื•ื ื“ื™ื•ื•ื— ืขืœื™ื”ื. ื‘ื ื•ืกืฃ, ื”ืืชืจ ืœื ื‘ืœื ื ืกื™ื•ื ื•ืช ืงืฆื™ืจื” ืžืจื•ื‘ื™ื (ื‘ืจื•ื˜ ืคื•ืจืก) ื•ืœื ื‘ืœื ื’ื™ืฉื” ืžืกืงืจื™ืคื˜ื™ื. ื›ืœ ืžื” ืฉื’ื•ืจ ื”ืืงืจื™ื ื”ื™ื” ืฆืจื™ืš ืœืขืฉื•ืช ื–ื” ืœื”ืจื™ืฅ ืกืงืจื™ืคื˜ ืงืฆืจ ื›ื“ื™ ืœืงืฆื•ืจ ืืช ื›ืœ ื”ื›ืชื•ื‘ื•ืช. ืื™ืš ื”ืกืงืจื™ืคื˜ ื”ื–ื” ื ืจืื”? ื›ื›ื”:

echo $null > log.txt
for i in $(seq 000000000 999999999); do
curl –header “Content-Type: application/json” –request POST –data “{\”personalId\”:\”${i}\”}” clearance.medical.idf.il/api/XXX/YYYY >> log.txt
echo >> log.txt
done

ืงื•ื“ ืœื”ื•ืจื“ืช ืจืฉื™ืžืช ื—ื™ื™ืœื™ ืฆื”"ืœ ืžื™ื™ืฉื•ืžื•ืŸ ื”ืฆื‘"ืจ ื”ืฆื”"ืœื™
ืงื•ื“ ืœื”ื•ืจื“ืช ืจืฉื™ืžืช ื—ื™ื™ืœื™ ืฆื””ืœ ืžื™ื™ืฉื•ืžื•ืŸ ื”ืฆื‘”ืจ ื”ืฆื””ืœื™

ื–ื” ื”ื™ื“ืข ื”ื˜ื›ื ื™ ื”ืขืฆื•ื ืฉื ื“ืจืฉ ื›ื“ื™ ืœืงื‘ืœ ืžืื’ืจ ืื™ื›ื•ืชื™ ื•ืขื“ื›ื ื™ ืฉืœ ืฉืžื•ืช ื•ืžืกืคืจื™ ืชืขื•ื“ืช ื–ื”ื•ืช ืฉืœ ื›ืœ ื”ื—ื™ื™ืœื™ื ื‘ืฆื””ืœ. ืคืขื•ืœื” ื ื•ืกืคืช ื”ื™ืชื” ื™ื›ื•ืœื” ืœื”ื™ื•ืช ืฉื™ื“ื•ืš ืฉืœ ื”ืžื™ื“ืข ื”ื–ื” ืœืžืื’ืจ ืžื™ื“ืข ืื—ืจ (ืื”ื… ืืœืงื˜ื•ืจ) ื•ื”ื—ื’ื™ื’ื” ื‘ื”ื—ืœื˜ ื”ื™ืชื” ื™ื›ื•ืœื” ืœื”ืชื—ื™ืœ.

ื‘ืืชืจ ืฆื””ืœ ื ื›ืชื‘ ื›ื™ “ื”ืฆื‘”ืจ ืคื•ืชื—, ื ื‘ื—ืŸ ื•ืžื•ื‘ืฆืข ื‘ืื•ืคืŸ ืžืœื ืชื•ืš ืฉื‘ื•ืขื™ื™ื ื‘ืœื‘ื“, ืœืคื™ ื”ื ื—ื™ื™ืช ืกื’ืŸ ื”ืจืžื˜ื›”ืœ, ืืœื•ืฃ ืื™ื™ืœ ื–ืžื™ืจ, ืข”ื™ ืื ืฉื™ ื™ื—ื™ื“ืช ‘ืฉื—ืจ’ ื‘ืื’ืฃ ื”ืชืงืฉื•ื‘ ื•ื”ื”ื’ื ื” ื‘ืกื™ื™ื‘ืจ”. ื•ื‘ื›ืŸ, ืื—ืจื™ ืฉื‘ื—ื ื• ืืช ื›ืœ ื”ืžืžืฆืื™ื, ื›ืœ ืžื” ืฉื ื•ืชืจ ืœื ืขืืจ ืœื•ืžืจ ื–ื”:  “ืžื™ ื”ื™ื” ืžืืžื™ืŸ ืฉื™ื—ื™ื“ื” ืฉืœ ื—ื™ื™ืœื™ื ืžื‘ืจื™ืงื™ื ื•ืฆืขื™ืจื™ื ื‘ืœื™ ืฉื•ื ืžืคืชื— ื‘ื›ื™ืจ ื‘ืฉื˜ื—, ืฉืžืคืชื—ืช, ื‘ื•ื—ื ืช ื•ืžืžื‘ืฆืขืช(!) ืืคืœื™ืงืฆื™ื” ืชื•ืš ืฉื‘ื•ืขื™ื™ื ื‘ืœื‘ื“, ืชื’ืจื•ื ืœื‘ืขื™ื” ื›ื–ื•? ืื ื™ ื‘ื”ืœื!”. ืื ื™ ื—ื•ืฉืฉ ืฉื”ื•ื ื”ื™ื” ืกืจืงืกื˜ื™, ืื‘ืœ ืขื ื ืขืืจ ืื™ ืืคืฉืจ ืœื“ืขืช ืื™ืชื•. ืœื’ืจื‘ื™ื™ื ืฉืœ ืขื™ื“ื•ืง ืขืœื•ืœื•ืช ืœื”ื™ื•ืช ืชื•ืคืขื•ืช ืœื•ื•ืื™.

ืืช ื”ืื™ื™ื˜ื, ืžื•ื ื’ืฉ ืœืงื”ืœ ืžืขื˜ ืคื—ื•ืช ื˜ื›ื ื™ ื•ื”ืกื‘ืจื™ื ืžืขื˜ ื™ื•ืชืจ ืžืคื•ืจื˜ื™ื ืขืœ ืžื”ื•ืช ืคืจืฆื•ืช, ืื ื™ ืžืคืจืกื ื”ื™ื•ื ื‘”ื”ืืจืฅ”.

ื”ืชื’ื•ื‘ื” ืฉืœ ื“ื•ื‘ืจ ืฆื””ืœ ืœืขื ื™ื™ืŸ ื”ื™ืชื” ื ืžืจืฆืช – ื”ืืคืœื™ืงืฆื™ื” ื™ืจื“ื” ื‘ืžื”ื™ืจื•ืช ื•ืชื•ืงื ื”. ื”ืชื’ื•ื‘ื” ื”ืจืฉืžื™ืช ืฉืœื”ื ืœื ื”ืชื™ื™ื—ืกื” ืœื›ืฉืœ ื‘ืชื”ืœื™ืš, ืืœื ืจืง ืœืชื•ืฆืื” ืฉืœื•: “ื‘ื‘ื•ืงืจ ื–ื•ื”ืชื” ืชืงืœื” ื‘ืžืขืจื›ืช ืœืžื™ืœื•ื™ ืฉืืœื•ืŸ ื‘ืจื™ืื•ืช ื™ื•ืžื™ ื‘ืฆื””ืœ ื‘ื”ื™ื‘ื˜ ืฉืžื™ืจืช ื”ืžื™ื“ืข. ื”ืชืงืœื” ืชื•ืงื ื” ืœืื—ืจ ืžืกืคืจ ืฉืขื•ืช”.

____________________________

ยน ื™ืฉ ืžืฆื‘ ืฉื”ืกืฆื™ื ื” ืžื•ืžืฆืืช ื•ืงื™ื‘ืœื ื• ืžื™ื™ืœ ืคืฉื•ื˜ ื•ืื ื•ื ื™ืžื™ ืœืชื™ื‘ืช ื”ื”ื“ืœืคื•ืช ืฉืœ ื”ื‘ืœื•ื’. 

ืชืžื•ื ื” ืจืืฉื™ืช: ื—ื™ื™ืœื™ 8ื‘ื™ื˜ ๐Ÿ–ผ๏ธ Arrkyre