[閒聊] 你會如何寫一個getRandomName
public static function getRandomName($gender)
{
return 'Mary';
}
Mike writes, "Oh, the things that I find in our codebase."
"I have no idea who put this in, or why it was put in. But it's there, and
it's somehow called in a few places. As tempted as I was to investigate how
it was used, I figured I'd spare my sanity."
Mike adds, "should there come a day that I need an actually random name,
perhaps I'll look for getReallyRandomName."
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.195.16.113
推
02/15 03:08, , 1F
02/15 03:08, 1F
推
02/15 09:14, , 2F
02/15 09:14, 2F
→
02/15 09:15, , 3F
02/15 09:15, 3F
推
02/16 21:43, , 4F
02/16 21:43, 4F
推
02/16 22:11, , 5F
02/16 22:11, 5F
推
02/16 22:24, , 6F
02/16 22:24, 6F
推
02/16 23:19, , 7F
02/16 23:19, 7F
推
02/17 15:15, , 8F
02/17 15:15, 8F
→
02/17 15:35, , 9F
02/17 15:35, 9F
→
02/17 15:51, , 10F
02/17 15:51, 10F
→
02/17 15:56, , 11F
02/17 15:56, 11F
→
02/17 15:56, , 12F
02/17 15:56, 12F
推
02/17 16:04, , 13F
02/17 16:04, 13F