2 ms·
> key-value pair "key":"value" This reminds me of when I first started programming professionally. I’d write loops in PHP like foreach($orders_by_id as $key
by lcnPylGDnU4H9OF 3y ago
> key-value pair "key":"value"
This reminds me of when I first started programming professionally. I’d write loops in PHP like
foreach($orders_by_id as $key => $value) {
$id = $key;
$order = $value;
# ...
}
This was at a small logistics company you’ve never heard of (read: not the best development practices) so the habit was eventually caught in a code review and corrected. I must have written a dozen or so of those prior to that.